From 9e38bee936f7e81df0cb8fa81f34126305745113 Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Tue, 11 Apr 2023 08:51:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../appsettings.json | 4 +- .../appsettings.json | 4 +- .../appsettings.json | 4 +- .../Incoming/TyrpIncomingBackgroundWorker.cs | 114 +- .../TyrpAgentModule.cs | 14 +- ...s.Wms.DataExchange.Fawtyg.TyrpAgent.csproj | 9 +- .../appsettings.json | 19 +- .../AgentModule.cs | 16 +- .../IncomingToWmsExtensions.cs | 76 +- .../IncomingToWmsWorker.cs | 15 + .../Win_in.Sfs.Wms.DataExchange.Agent.csproj | 5 + .../appsettings.json | 18 +- .../appsettings.json | 6 +- .../20221020021656_202210200001.Designer.cs | 3178 ------------ .../Migrations/20221020021656_202210200001.cs | 1216 ----- .../20221025054822_202210250002.Designer.cs | 3179 ------------ .../Migrations/20221025054822_202210250002.cs | 74 - .../Migrations/20221028020303_202210280001.cs | 56 - ...> 20230410014843_20230410init.Designer.cs} | 286 +- .../Migrations/20230410014843_20230410init.cs | 1713 +++++++ .../DataExchangeDbContextModelSnapshot.cs | 282 +- .../Migrations/Init.Designer.cs | 1689 ------ .../Migrations/Init.cs | 664 --- .../Migrations/L7Part20220704.Designer.cs | 2080 -------- .../Migrations/L7Part20220704.cs | 76 - .../MesProductL7PartsNote20220826.Designer.cs | 4400 ---------------- .../MesProductL7PartsNote20220826.cs | 22 - .../MessageReceive20220817.Designer.cs | 4353 ---------------- .../Migrations/MessageReceive20220817.cs | 330 -- .../MessageReceive2022081702.Designer.cs | 4397 ---------------- .../Migrations/MessageReceive2022081702.cs | 37 - .../Migrations/Part20220815.Designer.cs | 4353 ---------------- .../Migrations/Part20220815.cs | 333 -- ...ist_add_Loc_status_20209040932.Designer.cs | 4543 ----------------- .../PrhHist_add_Loc_status_20209040932.cs | 33 - .../Migrations/ReceiptReturn.Designer.cs | 1968 ------- .../Migrations/ReceiptReturn.cs | 156 - .../Migrations/ReceiptReturn1.Designer.cs | 2007 -------- .../Migrations/ReceiptReturn1.cs | 884 ---- .../Migrations/_0608.Designer.cs | 1756 ------- .../Migrations/_0608.cs | 43 - .../Migrations/_20220524.Designer.cs | 1689 ------ .../Migrations/_20220524.cs | 16 - .../Migrations/abp.Designer.cs | 4350 ---------------- .../Migrations/abp.cs | 1361 ----- .../Migrations/mesproductL7part.Designer.cs | 1756 ------- .../Migrations/mesproductL7part.cs | 38 - .../Migrations/prhhist20220905.Designer.cs | 4537 ---------------- .../Migrations/prhhist20220905.cs | 66 - .../appsettings.json | 4 +- .../Boms/IBomAppService.cs | 1 + .../Customers/ICustomerAppService.cs | 2 + .../IInterfaceCalendarAppService.cs | 2 + .../ItemBasics/IItemBasicAppService.cs | 2 + .../Suppliers/ISupplierAppService.cs | 2 + .../Boms/BomAppService.cs | 13 + .../Calendars/InterfaceCalendarAppService.cs | 12 + .../Customers/CustomerAppService.cs | 8 + .../Dicts/DictAutoMapperProfile.cs | 6 +- .../Items/ItemBasicAppService.cs | 7 +- .../Suppliers/SupplierAppService.cs | 7 +- .../Boms/IBomRepository.cs | 1 + .../Customers/ICustomerRepository.cs | 1 + .../IInterfaceCalendarRepository.cs | 4 +- .../ItemBasics/IItemBasicRepository.cs | 2 + .../Suppliers/ISupplierRepository.cs | 1 + .../Boms/BomEfCoreRepository.cs | 31 +- .../Customers/CustomerEfCoreRepository.cs | 18 + .../InterfaceCalendarEfCoreRepository.cs | 18 + .../Items/ItemBasicEfCoreRepository.cs | 25 +- .../Suppliers/SupplierEfCoreRepository.cs | 23 + .../IMaterialRequestAppService.cs | 3 + .../BackFlushNotes/BackFlushNoteAppService.cs | 1 - .../Notes/IssueNotes/IssueNoteAppService.cs | 1 - .../MaterialRequestAppService.cs | 51 + .../Notes/IssueNotes/IIssueNoteManager.cs | 1 + .../Notes/IssueNotes/IssueNoteManager.cs | 1 - .../IMaterialRequestManager.cs | 2 + .../MaterialRequestManager.cs | 22 + 79 files changed, 2470 insertions(+), 56027 deletions(-) delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221020021656_202210200001.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221020021656_202210200001.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221025054822_202210250002.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221025054822_202210250002.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221028020303_202210280001.cs rename be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/{20221028020303_202210280001.Designer.cs => 20230410014843_20230410init.Designer.cs} (94%) create mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20230410014843_20230410init.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Init.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Init.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/L7Part20220704.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/L7Part20220704.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MesProductL7PartsNote20220826.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MesProductL7PartsNote20220826.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive20220817.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive20220817.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive2022081702.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive2022081702.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Part20220815.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Part20220815.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/PrhHist_add_Loc_status_20209040932.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/PrhHist_add_Loc_status_20209040932.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn1.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn1.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_0608.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_0608.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_20220524.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_20220524.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/abp.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/abp.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/mesproductL7part.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/mesproductL7part.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/prhhist20220905.Designer.cs delete mode 100644 be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/prhhist20220905.cs diff --git a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore.Fawtyg.Tyrp/appsettings.json b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore.Fawtyg.Tyrp/appsettings.json index 46662d4be..d10e09b0e 100644 --- a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore.Fawtyg.Tyrp/appsettings.json +++ b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore.Fawtyg.Tyrp/appsettings.json @@ -1,5 +1,5 @@ -{ +{ "ConnectionStrings": { - "TYRP": "Server=dev.ccwin-in.com,13319;Database=TYRP;Uid=ccwin-in;Pwd=Microsoft@2022;" + "TYRP": "Server=dev.ccwin-in.com,21195;Database=TYRP;Uid=sa;Pwd=aA123456!;" } } diff --git a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/appsettings.json b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/appsettings.json index 00c73059b..27882d40c 100644 --- a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/appsettings.json +++ b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent/appsettings.json @@ -1,7 +1,7 @@ -{ +{ "ConnectionStrings": { "Default": "Server=dev.ccwin-in.com,13319;Database=DyWmsAuth;uid=ccwin-in;pwd=Microsoft@2022;", - "DataExchange": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;", + "DataExchange": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;", "EOS": "Server=dev.ccwin-in.com,13319;Database=EOS;Uid=ccwin-in;Pwd=Microsoft@2022;" }, diff --git a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.MesAgent/appsettings.json b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.MesAgent/appsettings.json index 6cdced833..72ca5624c 100644 --- a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.MesAgent/appsettings.json +++ b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.MesAgent/appsettings.json @@ -1,7 +1,7 @@ -{ +{ "ConnectionStrings": { "Default": "Server=dev.ccwin-in.com,13319;Database=DyWmsAuth;uid=ccwin-in;pwd=Microsoft@2022;", - "DataExchange": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;", + "DataExchange": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;", "MES": "Server=dev.ccwin-in.com;Port=13306;Database=MES;Uid=ccwinin;Pwd=Microsoft@2022;" }, diff --git a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Incoming/TyrpIncomingBackgroundWorker.cs b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Incoming/TyrpIncomingBackgroundWorker.cs index be2a2ba52..e7227cd49 100644 --- a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Incoming/TyrpIncomingBackgroundWorker.cs +++ b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Incoming/TyrpIncomingBackgroundWorker.cs @@ -59,26 +59,26 @@ public class TyrpIncomingBackgroundWorker : AsyncPeriodicBackgroundWorkerBase common.updatedt = DateTime.Now; common.isupdate = false; - Logger.LogInformation($"Read ItemBasic");//零件 - var itemBasicReader = workerContext.ServiceProvider.GetRequiredService(); - var itemBasicConverter = workerContext.ServiceProvider.GetRequiredService(); - //读取并保存itemBasic - var itemBasicOutsFromExternalList = await itemBasicReader.ReadAsync().ConfigureAwait(false); - //转换itemBasic - await itemBasicConverter.ConvertAsync(itemBasicOutsFromExternalList).ConfigureAwait(false); - - Logger.LogInformation($"Read User");//用户和部门 - var userReader = workerContext.ServiceProvider.GetRequiredService(); - var userConverter = workerContext.ServiceProvider.GetRequiredService(); - var departmentConverter = workerContext.ServiceProvider.GetRequiredService(); - //读取并保存user - var outsFromExternalList = await userReader.ReadAsync().ConfigureAwait(false); - var userOutsFromExternalList = outsFromExternalList.Where(r => r.DataType == EnumIncomingDataType.User.ToString()).ToList(); - var departmentOutsFromExternalList = outsFromExternalList.Where(r => r.DataType == EnumIncomingDataType.Department.ToString()).ToList(); - //转换user - await userConverter.ConvertAsync(userOutsFromExternalList).ConfigureAwait(false); - //转换department - await departmentConverter.ConvertAsync(departmentOutsFromExternalList).ConfigureAwait(false); + //Logger.LogInformation($"Read ItemBasic");//零件 + //var itemBasicReader = workerContext.ServiceProvider.GetRequiredService(); + //var itemBasicConverter = workerContext.ServiceProvider.GetRequiredService(); + ////读取并保存itemBasic + //var itemBasicOutsFromExternalList = await itemBasicReader.ReadAsync().ConfigureAwait(false); + ////转换itemBasic + //await itemBasicConverter.ConvertAsync(itemBasicOutsFromExternalList).ConfigureAwait(false); + + //Logger.LogInformation($"Read User");//用户和部门 + //var userReader = workerContext.ServiceProvider.GetRequiredService(); + //var userConverter = workerContext.ServiceProvider.GetRequiredService(); + //var departmentConverter = workerContext.ServiceProvider.GetRequiredService(); + ////读取并保存user + //var outsFromExternalList = await userReader.ReadAsync().ConfigureAwait(false); + //var userOutsFromExternalList = outsFromExternalList.Where(r => r.DataType == EnumIncomingDataType.User.ToString()).ToList(); + //var departmentOutsFromExternalList = outsFromExternalList.Where(r => r.DataType == EnumIncomingDataType.Department.ToString()).ToList(); + ////转换user + //await userConverter.ConvertAsync(userOutsFromExternalList).ConfigureAwait(false); + ////转换department + //await departmentConverter.ConvertAsync(departmentOutsFromExternalList).ConfigureAwait(false); //Logger.LogInformation($"Read InterfaceCalendar");//账期 //var interfaceCalendarReader = workerContext.ServiceProvider.GetRequiredService(); @@ -96,49 +96,49 @@ public class TyrpIncomingBackgroundWorker : AsyncPeriodicBackgroundWorkerBase //转换Dict await dictConverter.ConvertAsync(dictOutsFromExternalList).ConfigureAwait(false); - Logger.LogInformation($"Read Bom"); - var BomReader = workerContext.ServiceProvider.GetRequiredService(); - var BomConverter = workerContext.ServiceProvider.GetRequiredService(); - //读取并保存Bom - var bomsFromExternalList = await BomReader.ReadAsync().ConfigureAwait(false); - //转换Bom - await BomConverter.ConvertAsync(bomsFromExternalList).ConfigureAwait(false); - - Logger.LogInformation($"Read Supplier");//供应商 - var SupplierReader = workerContext.ServiceProvider.GetRequiredService(); - var SupplierConverter = workerContext.ServiceProvider.GetRequiredService(); - //读取并保存Supplier - var suppliersFromExternalList = await SupplierReader.ReadAsync().ConfigureAwait(false); - //转换Supplier - await SupplierConverter.ConvertAsync(suppliersFromExternalList).ConfigureAwait(false); - - Logger.LogInformation($"Read Dictpj");//专案代码 - var DictpjReader = workerContext.ServiceProvider.GetRequiredService(); - //读取并保存Dictpj - var dictpjOutsFromExternalList = await DictpjReader.ReadAsync().ConfigureAwait(false); - //转换Dictpj - await dictConverter.ConvertAsync(dictOutsFromExternalList).ConfigureAwait(false); - - Logger.LogInformation($"Read Customer");//客户资料 - var CustomerReader = workerContext.ServiceProvider.GetRequiredService(); - var CustomerConverter = workerContext.ServiceProvider.GetRequiredService(); - //读取并保存Customer - var customersFromExternalList = await CustomerReader.ReadAsync().ConfigureAwait(false); - //转换Customer - await CustomerConverter.ConvertAsync(customersFromExternalList).ConfigureAwait(false); + //Logger.LogInformation($"Read Bom"); + //var BomReader = workerContext.ServiceProvider.GetRequiredService(); + //var BomConverter = workerContext.ServiceProvider.GetRequiredService(); + ////读取并保存Bom + //var bomsFromExternalList = await BomReader.ReadAsync().ConfigureAwait(false); + ////转换Bom + //await BomConverter.ConvertAsync(bomsFromExternalList).ConfigureAwait(false); + + //Logger.LogInformation($"Read Supplier");//供应商 + //var SupplierReader = workerContext.ServiceProvider.GetRequiredService(); + //var SupplierConverter = workerContext.ServiceProvider.GetRequiredService(); + ////读取并保存Supplier + //var suppliersFromExternalList = await SupplierReader.ReadAsync().ConfigureAwait(false); + ////转换Supplier + //await SupplierConverter.ConvertAsync(suppliersFromExternalList).ConfigureAwait(false); + + //Logger.LogInformation($"Read Dictpj");//专案代码 + //var DictpjReader = workerContext.ServiceProvider.GetRequiredService(); + ////读取并保存Dictpj + //var dictpjOutsFromExternalList = await DictpjReader.ReadAsync().ConfigureAwait(false); + ////转换Dictpj + //await dictConverter.ConvertAsync(dictOutsFromExternalList).ConfigureAwait(false); + + //Logger.LogInformation($"Read Customer");//客户资料 + //var CustomerReader = workerContext.ServiceProvider.GetRequiredService(); + //var CustomerConverter = workerContext.ServiceProvider.GetRequiredService(); + ////读取并保存Customer + //var customersFromExternalList = await CustomerReader.ReadAsync().ConfigureAwait(false); + ////转换Customer + //await CustomerConverter.ConvertAsync(customersFromExternalList).ConfigureAwait(false); } else { common.isupdate = true; } } - Logger.LogInformation($"Read BackFlush");//耗用单 - var BackFlushReader = workerContext.ServiceProvider.GetRequiredService(); - var BackFlushConverter = workerContext.ServiceProvider.GetRequiredService(); - //读取并保存Customer - var backFlushsFromExternalList = await BackFlushReader.ReadAsync().ConfigureAwait(false); - //转换Customer - await BackFlushConverter.ConvertAsync(backFlushsFromExternalList).ConfigureAwait(false); + //Logger.LogInformation($"Read BackFlush");//耗用单 + //var BackFlushReader = workerContext.ServiceProvider.GetRequiredService(); + //var BackFlushConverter = workerContext.ServiceProvider.GetRequiredService(); + ////读取并保存Customer + //var backFlushsFromExternalList = await BackFlushReader.ReadAsync().ConfigureAwait(false); + ////转换Customer + //await BackFlushConverter.ConvertAsync(backFlushsFromExternalList).ConfigureAwait(false); Logger.LogInformation($"Completed: Handling {Incoming}"); } diff --git a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/TyrpAgentModule.cs b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/TyrpAgentModule.cs index 87d53afdb..b982f9002 100644 --- a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/TyrpAgentModule.cs +++ b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/TyrpAgentModule.cs @@ -7,6 +7,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Polly; using Volo.Abp; +using Volo.Abp.Account; using Volo.Abp.Autofac; using Volo.Abp.AutoMapper; using Volo.Abp.BackgroundJobs; @@ -43,7 +44,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent; typeof(DataExchangeEntityFrameworkCoreModule), typeof(DataExchangeDomainFawtygTyrpModule), typeof(DataExchangeDapperFawtygModule), - typeof(DataExchangeEntityFrameworkCoreFawtygModule) + typeof(DataExchangeEntityFrameworkCoreFawtygModule), + typeof(AbpAccountApplicationContractsModule) )] public class TyrpAgentModule : AbpModule { @@ -149,6 +151,10 @@ public class TyrpAgentModule : AbpModule typeof(BasedataApplicationContractsModule).Assembly, "BaseData" ); + context.Services.AddHttpClientProxies( + typeof(AbpAccountApplicationContractsModule).Assembly, + "Auth" + ); context.Services.AddHttpClientProxies( typeof(StoreApplicationContractsModule).Assembly, "Store" @@ -162,12 +168,12 @@ public class TyrpAgentModule : AbpModule "Auth"); } - public override async Task OnApplicationInitializationAsync( + public override void OnApplicationInitialization( ApplicationInitializationContext context) { - await context.AddBackgroundWorkerAsync().ConfigureAwait(false); - await context.AddBackgroundWorkerAsync().ConfigureAwait(false); + context.AddBackgroundWorkerAsync(); + // context.AddBackgroundWorker(); } } diff --git a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent.csproj b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent.csproj index 35d391cb9..bdec28966 100644 --- a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent.csproj +++ b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent.csproj @@ -15,8 +15,15 @@ - + + + + + + + + diff --git a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/appsettings.json b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/appsettings.json index 5ae8cdc2c..39797ae0f 100644 --- a/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/appsettings.json +++ b/be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/appsettings.json @@ -1,13 +1,13 @@ -{ +{ "ConnectionStrings": { - "Default": "Server=dev.ccwin-in.com,13319;Database=DyWmsAuth;uid=ccwin-in;pwd=Microsoft@2022;", - "DataExchange": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;", - "TYRP": "Server=dev.ccwin-in.com,13319;Database=TYRP;Uid=ccwin-in;Pwd=Microsoft@2022;", - "SYBASE_TYRP": "Data Source=dev.ccwin-in.com; Port=15000; Database=TYRP; Uid=sa; Pwd=Microsoft2008;Charset=utf8;" //iso_1 + "Default": "Server=dev.ccwin-in.com,21195;Database=Wms;uid=sa;pwd=aA123456!;TrustServerCertificate=True", + "DataExchange": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;TrustServerCertificate=True", + "TYRP": "Server=dev.ccwin-in.com,21195;Database=TYRP;Uid=sa;Pwd=aA123456!;TrustServerCertificate=True", + "SYBASE_TYRP": "Data Source=10.164.1.11; Port=5000; Database=mesdb; Uid=mesuser; Pwd=mesuser1234;Charset=cp850;" //iso_1 }, "AuthServer": { - "Authority": "http://dev.ccwin-in.com:59093/", + "Authority": "http://dev.ccwin-in.com:21293/", "RequireHttpsMetadata": "false", "SwaggerClientId": "admin", "SwaggerClientSecret": "1q2w3E*", @@ -17,10 +17,11 @@ "Authentication": { "client_id": "Auth_App", - "client_secret": "1q2w3e*", + "client_secret": "1q2w3E*", "grant_type": "password", "username": "jiekou1", - "password": "1q2w3E*" + "password": "1q2w3E*", + "company": "Faty" }, "RemoteServices": { @@ -34,7 +35,7 @@ "BaseUrl": "http://dev.ccwin-in.com:59092/" }, "Auth": { - "BaseUrl": "http://dev.ccwin-in.com:59093/" + "BaseUrl": "http://dev.ccwin-in.com:21293/" } }, "TyrpOptions": { diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/AgentModule.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/AgentModule.cs index b08e9a685..a4efd96ae 100644 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/AgentModule.cs +++ b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/AgentModule.cs @@ -7,6 +7,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Polly; using Volo.Abp; +using Volo.Abp.Account; using Volo.Abp.Autofac; using Volo.Abp.AutoMapper; using Volo.Abp.BackgroundJobs; @@ -38,7 +39,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Agent; typeof(BasedataApplicationContractsModule), typeof(StoreApplicationContractsModule), typeof(LabelApplicationContractsModule), - typeof(AuthApplicationContractsModule) + typeof(AuthApplicationContractsModule), + typeof(AbpAccountApplicationContractsModule) )] public class AgentModule : AbpModule { @@ -128,6 +130,10 @@ public class AgentModule : AbpModule "BaseData" ); context.Services.AddHttpClientProxies( + typeof(AbpAccountApplicationContractsModule).Assembly, + "Auth" +); + context.Services.AddHttpClientProxies( typeof(StoreApplicationContractsModule).Assembly, "Store" ); @@ -140,10 +146,10 @@ public class AgentModule : AbpModule "Auth"); } - public override async Task OnApplicationInitializationAsync( - ApplicationInitializationContext context) + public override void OnApplicationInitialization( + ApplicationInitializationContext context) { - await context.AddBackgroundWorkerAsync().ConfigureAwait(false); - await context.AddBackgroundWorkerAsync().ConfigureAwait(false); + context.AddBackgroundWorkerAsync(); + // context.AddBackgroundWorker(); } } diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsExtensions.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsExtensions.cs index 992ab5cd5..0c7813de4 100644 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsExtensions.cs +++ b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsExtensions.cs @@ -1,3 +1,4 @@ +using System.Collections.Generic; using System.Text.Json; using System.Threading.Tasks; using Microsoft.Extensions.DependencyInjection; @@ -7,11 +8,12 @@ using Win_in.Sfs.Auth.Users; using Win_in.Sfs.Auth.Users.Inputs; using Win_in.Sfs.Basedata.Application.Contracts; using Win_in.Sfs.Label.Application.Contracts; +using Win_in.Sfs.Shared.Domain.Shared; using Win_in.Sfs.Wms.DataExchange.Domain; +using Win_in.Sfs.Wms.Inventory.Application.Contracts; using Win_in.Sfs.Wms.Store.Application.Contracts; namespace Win_in.Sfs.Wms.DataExchange.Agent; - public static class IncomingToWmsExtensions { public static async Task HandlePurchaseOrdersAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext) @@ -31,7 +33,16 @@ public static class IncomingToWmsExtensions { var Dict = JsonSerializer.Deserialize(incomingConverted.DataContent); var DictBasicAppService = workerContext.ServiceProvider.GetRequiredService(); - await DictBasicAppService.UpdateAsync(Dict).ConfigureAwait(false); + try + { + await DictBasicAppService.UpdateAsync(Dict).ConfigureAwait(false); + } + catch (System.Exception ex) + { + + throw; + } + } public static async Task HandleUsersAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext) { @@ -46,11 +57,12 @@ public static class IncomingToWmsExtensions await DepartmentBasicAppService.UpdateAsync(Department).ConfigureAwait(false); } + public static async Task HandleItemsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext) { var item = JsonSerializer.Deserialize(incomingConverted.DataContent); var itemBasicAppService = workerContext.ServiceProvider.GetRequiredService(); - await itemBasicAppService.UpsertAsync(item).ConfigureAwait(false); + await itemBasicAppService.UpsertAsyncByInterface(item).ConfigureAwait(false); } public static async Task HandleErpLocationsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext) @@ -64,14 +76,14 @@ public static class IncomingToWmsExtensions { var bom = JsonSerializer.Deserialize(incomingConverted.DataContent); var bomAppService = workerContext.ServiceProvider.GetRequiredService(); - await bomAppService.UpsertAsync(bom).ConfigureAwait(false); + await bomAppService.UpsertAsyncByInterface(bom).ConfigureAwait(false); } public static async Task HandleSuppliersAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext) { var supplier = JsonSerializer.Deserialize(incomingConverted.DataContent); var supplierAppService = workerContext.ServiceProvider.GetRequiredService(); - await supplierAppService.UpsertAsync(supplier).ConfigureAwait(false); + await supplierAppService.UpsertAsyncByInterface(supplier).ConfigureAwait(false); } public static async Task HandleSupplierItemsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext) @@ -92,7 +104,7 @@ public static class IncomingToWmsExtensions { var customer = JsonSerializer.Deserialize(incomingConverted.DataContent); var customerAppService = workerContext.ServiceProvider.GetRequiredService(); - await customerAppService.UpsertAsync(customer).ConfigureAwait(false); + await customerAppService.UpsertAsyncByInterface(customer).ConfigureAwait(false); } public static async Task HandleCustomerItemsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext) @@ -101,7 +113,12 @@ public static class IncomingToWmsExtensions var customerItemAppService = workerContext.ServiceProvider.GetRequiredService(); await customerItemAppService.UpsertAsync(customerItem).ConfigureAwait(false); } - + public static async Task HandleInterfaceCalendarsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext) + { + var interfaceCalendar = JsonSerializer.Deserialize(incomingConverted.DataContent); + var interfaceCalendarAppService = workerContext.ServiceProvider.GetRequiredService(); + await interfaceCalendarAppService.UpsertAsync(interfaceCalendar).ConfigureAwait(false); + } public static async Task HandleSaleOrdersAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext) { var saleOrder = JsonSerializer.Deserialize(incomingConverted.DataContent); @@ -120,7 +137,7 @@ public static class IncomingToWmsExtensions { var materialRequest = JsonSerializer.Deserialize(incomingConverted.DataContent); var materialRequestAppService = workerContext.ServiceProvider.GetRequiredService(); - await materialRequestAppService.CreateAndHandleAsync(materialRequest).ConfigureAwait(false); + await materialRequestAppService.CreateAndHandleByAPIAsync(materialRequest).ConfigureAwait(false); } public static async Task HandleScrapsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext) @@ -137,10 +154,53 @@ public static class IncomingToWmsExtensions await issueNoteAppService.ConfirmAsync(number).ConfigureAwait(false); } + public static async Task HandleInventoryLabelsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext) { var inventoryLabel = JsonSerializer.Deserialize(incomingConverted.DataContent); var inventoryLabelAppService = workerContext.ServiceProvider.GetRequiredService(); await inventoryLabelAppService.CreateAsync(inventoryLabel).ConfigureAwait(false); } + public static async Task HandleBackFlushsAsync(this IncomingToWms incomingConverted, PeriodicBackgroundWorkerContext workerContext) + { + var backFlush = JsonSerializer.Deserialize(incomingConverted.DataContent); + + var balanceAppService = workerContext.ServiceProvider.GetRequiredService(); + var balanceDtos = await balanceAppService.GetRecommendBalancesAsync(new RecommendBalanceRequestInput() + { + Qty = backFlush.Qty, + ItemCode = backFlush.ItemCode, + LocationAreas = new List() { backFlush.LocationArea }, + LocationTypes = new List() + { + EnumLocationType.WIP, + }, + Statuses = new List() + { + EnumInventoryStatus.OK, + } + }).ConfigureAwait(false); + + foreach (var balanceDto in balanceDtos) + { + backFlush.Details.Add(new BackFlushNoteDetailInput() + { + Qty = balanceDto.Qty, + ItemCode = balanceDto.ItemCode, + ArriveDate = balanceDto.ArriveDate, + BomVersion = string.Empty, + ContainerCode = string.Empty, + ExpireDate = balanceDto.ExpireDate, + Lot = balanceDto.Lot, + LocationCode = balanceDto.LocationCode, + LocationErpCode = balanceDto.LocationErpCode, + LocationArea = balanceDto.LocationArea, + LocationGroup = balanceDto.LocationGroup + + }); + } + + var backFlushAppService = workerContext.ServiceProvider.GetRequiredService(); + // await backFlushAppService.CreateAsync(backFlush); + } } diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsWorker.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsWorker.cs index 548f9ee23..907622f56 100644 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsWorker.cs +++ b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsWorker.cs @@ -78,6 +78,12 @@ public class IncomingToWmsWorker : AsyncPeriodicBackgroundWorkerBase //TODO 完成全部接口 switch (dataType) { + case EnumIncomingDataType.Department: + await incomingToWms.HandleDepartmentsAsync(workerContext).ConfigureAwait(false); + break; + case EnumIncomingDataType.User: + await incomingToWms.HandleUsersAsync(workerContext).ConfigureAwait(false); + break; case EnumIncomingDataType.Item: await incomingToWms.HandleItemsAsync(workerContext).ConfigureAwait(false); break; @@ -87,6 +93,9 @@ public class IncomingToWmsWorker : AsyncPeriodicBackgroundWorkerBase case EnumIncomingDataType.Bom: await incomingToWms.HandleBomsAsync(workerContext).ConfigureAwait(false); break; + case EnumIncomingDataType.Dict: + await incomingToWms.HandleDictsAsync(workerContext).ConfigureAwait(false); + break; case EnumIncomingDataType.Supplier: await incomingToWms.HandleSuppliersAsync(workerContext).ConfigureAwait(false); break; @@ -102,6 +111,9 @@ public class IncomingToWmsWorker : AsyncPeriodicBackgroundWorkerBase case EnumIncomingDataType.CustomerItem: await incomingToWms.HandleCustomerItemsAsync(workerContext).ConfigureAwait(false); break; + case EnumIncomingDataType.InterfaceCalendar: + await incomingToWms.HandleInterfaceCalendarsAsync(workerContext).ConfigureAwait(false); + break; case EnumIncomingDataType.PurchaseOrder: await incomingToWms.HandlePurchaseOrdersAsync(workerContext).ConfigureAwait(false); break; @@ -126,6 +138,9 @@ public class IncomingToWmsWorker : AsyncPeriodicBackgroundWorkerBase case EnumIncomingDataType.PurchaseLabel: await incomingToWms.HandleInventoryLabelsAsync(workerContext).ConfigureAwait(false); break; + case EnumIncomingDataType.BackFlush: + await incomingToWms.HandleBackFlushsAsync(workerContext).ConfigureAwait(false); + break; case EnumIncomingDataType.None: default: throw new ArgumentOutOfRangeException(); diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/Win_in.Sfs.Wms.DataExchange.Agent.csproj b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/Win_in.Sfs.Wms.DataExchange.Agent.csproj index e377135eb..484c87c87 100644 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/Win_in.Sfs.Wms.DataExchange.Agent.csproj +++ b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/Win_in.Sfs.Wms.DataExchange.Agent.csproj @@ -11,6 +11,11 @@ + + + + + diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/appsettings.json b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/appsettings.json index 31a2d2977..b88f61946 100644 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/appsettings.json +++ b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/appsettings.json @@ -1,13 +1,13 @@ -{ +{ "ConnectionStrings": { - "Default": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;", - "DataExchange": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;" + "Default": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;TrustServerCertificate=True", + "DataExchange": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;TrustServerCertificate=True" }, "AuthServer": { - "Authority": "http://dev.ccwin-in.com:59093/", + "Authority": "http://dev.ccwin-in.com:21293/", "RequireHttpsMetadata": "false", "SwaggerClientId": "admin", "SwaggerClientSecret": "1q2w3E*", @@ -17,7 +17,7 @@ "Authentication": { "client_id": "Auth_App", - "client_secret": "1q2w3e*", + "client_secret": "1q2w3E*", "grant_type": "password", "username": "jiekou1", "password": "1q2w3E*" @@ -26,16 +26,16 @@ "RemoteServices": { "BaseData": { - "BaseUrl": "http://localhost:59094/" + "BaseUrl": "http://dev.ccwin-in.com:21294/" }, "Store": { - "BaseUrl": "http://localhost:59095/" + "BaseUrl": "http://dev.ccwin-in.com:21295/" }, "Label": { - "BaseUrl": "http://localhost:59092/" + "BaseUrl": "http://dev.ccwin-in.com:21292/" }, "Auth": { - "BaseUrl": "http://localhost:59093/" + "BaseUrl": "http://dev.ccwin-in.com:21293/" } }, "DataExchangeOptions": { diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.DbMigrator/appsettings.json b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.DbMigrator/appsettings.json index 899c34103..dec61c81a 100644 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.DbMigrator/appsettings.json +++ b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.DbMigrator/appsettings.json @@ -1,7 +1,7 @@ { "ConnectionStrings": { - "Default": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;", - "DataExchange": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;" + "Default": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;", + "DataExchange": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;" }, "IdentityServer": { "Clients": { @@ -22,4 +22,4 @@ } } } -} \ No newline at end of file +} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221020021656_202210200001.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221020021656_202210200001.Designer.cs deleted file mode 100644 index c2ae1b1a8..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221020021656_202210200001.Designer.cs +++ /dev/null @@ -1,3178 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20221020021656_202210200001")] - partial class _202210200001 - { - 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("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasColumnType("nvarchar(max)"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpFeatureValues"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedAccessTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Type"); - - b.ToTable("IdentityServerApiResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiResourceId", "Key", "Value"); - - b.ToTable("IdentityServerApiResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Scope"); - - b.ToTable("IdentityServerApiResourceScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ApiResourceId", "Type", "Value"); - - b.ToTable("IdentityServerApiResourceSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiScopeId", "Type"); - - b.ToTable("IdentityServerApiScopeClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiScopeId", "Key", "Value"); - - b.ToTable("IdentityServerApiScopeProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AbsoluteRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenType") - .HasColumnType("int"); - - b.Property("AllowAccessTokensViaBrowser") - .HasColumnType("bit"); - - b.Property("AllowOfflineAccess") - .HasColumnType("bit"); - - b.Property("AllowPlainTextPkce") - .HasColumnType("bit"); - - b.Property("AllowRememberConsent") - .HasColumnType("bit"); - - b.Property("AllowedIdentityTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AlwaysIncludeUserClaimsInIdToken") - .HasColumnType("bit"); - - b.Property("AlwaysSendClientClaims") - .HasColumnType("bit"); - - b.Property("AuthorizationCodeLifetime") - .HasColumnType("int"); - - b.Property("BackChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("BackChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ClientClaimsPrefix") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentLifetime") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DeviceCodeLifetime") - .HasColumnType("int"); - - b.Property("EnableLocalLogin") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FrontChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("FrontChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("IdentityTokenLifetime") - .HasColumnType("int"); - - b.Property("IncludeJwtId") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("PairWiseSubjectSalt") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProtocolType") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RefreshTokenExpiration") - .HasColumnType("int"); - - b.Property("RefreshTokenUsage") - .HasColumnType("int"); - - b.Property("RequireClientSecret") - .HasColumnType("bit"); - - b.Property("RequireConsent") - .HasColumnType("bit"); - - b.Property("RequirePkce") - .HasColumnType("bit"); - - b.Property("RequireRequestObject") - .HasColumnType("bit"); - - b.Property("SlidingRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("UpdateAccessTokenClaimsOnRefresh") - .HasColumnType("bit"); - - b.Property("UserCodeType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserSsoLifetime") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("IdentityServerClients"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Origin") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.HasKey("ClientId", "Origin"); - - b.ToTable("IdentityServerClientCorsOrigins"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("GrantType") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "GrantType"); - - b.ToTable("IdentityServerClientGrantTypes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Provider") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Provider"); - - b.ToTable("IdentityServerClientIdPRestrictions"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PostLogoutRedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "PostLogoutRedirectUri"); - - b.ToTable("IdentityServerClientPostLogoutRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "Key", "Value"); - - b.ToTable("IdentityServerClientProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("RedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "RedirectUri"); - - b.ToTable("IdentityServerClientRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Scope"); - - b.ToTable("IdentityServerClientScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("DeviceCode") - .IsUnique(); - - b.HasIndex("Expiration"); - - b.HasIndex("UserCode"); - - b.ToTable("IdentityServerDeviceFlowCodes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => - { - b.Property("Key") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsumedTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Key"); - - b.HasIndex("Expiration"); - - b.HasIndex("SubjectId", "ClientId", "Type"); - - b.HasIndex("SubjectId", "SessionId", "Type"); - - b.ToTable("IdentityServerPersistedGrants"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerIdentityResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("IdentityResourceId", "Type"); - - b.ToTable("IdentityServerIdentityResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("IdentityResourceId", "Key", "Value"); - - b.ToTable("IdentityServerIdentityResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpPermissionGrants"); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", 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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedIncomingFromExternal", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationDataId") - .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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataDetailCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceDataGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceDataId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ArchivedIncomingFromExternal"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedIncomingToWms", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("DataType") - .HasColumnType("nvarchar(max)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SystemType") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("ArchivedIncomingToWms"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedOutgoingFromWms", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SystemType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ArchivedOutgoingFromWms"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedOutgoingToExternal", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .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("DataType") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationDataId") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationSystem") - .HasColumnType("nvarchar(max)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataDetailCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataGroupCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataId") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceSystem") - .HasColumnType("nvarchar(max)"); - - 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("ArchivedOutgoingToExternal"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingFromExternal", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationDataId") - .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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataDetailCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceDataGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceDataId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingFromExternal"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingToWms", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("DataType") - .HasColumnType("nvarchar(max)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SystemType") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("IncomingToWms"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MessageReceive", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ErrorCount") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastUpdateTime") - .HasColumnType("datetime2"); - - b.Property("MessageContent") - .HasColumnType("nvarchar(max)"); - - b.Property("MessageFileName") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveStatus") - .HasColumnType("int"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MessageReceive"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingFromWms", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("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("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SystemType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingFromWms"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingToExternal", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .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("DataType") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationDataId") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationSystem") - .HasColumnType("nvarchar(max)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataDetailCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataGroupCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataId") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceSystem") - .HasColumnType("nvarchar(max)"); - - 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("OutgoingToExternal"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("UserClaims") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Properties") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Scopes") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Secrets") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("UserClaims") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("Properties") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Claims") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedCorsOrigins") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedGrantTypes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("IdentityProviderRestrictions") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("PostLogoutRedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Properties") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("RedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedScopes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("ClientSecrets") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("UserClaims") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("Properties") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Navigation("Properties"); - - b.Navigation("Scopes"); - - b.Navigation("Secrets"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Navigation("AllowedCorsOrigins"); - - b.Navigation("AllowedGrantTypes"); - - b.Navigation("AllowedScopes"); - - b.Navigation("Claims"); - - b.Navigation("ClientSecrets"); - - b.Navigation("IdentityProviderRestrictions"); - - b.Navigation("PostLogoutRedirectUris"); - - b.Navigation("Properties"); - - b.Navigation("RedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221020021656_202210200001.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221020021656_202210200001.cs deleted file mode 100644 index 84edfcd27..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221020021656_202210200001.cs +++ /dev/null @@ -1,1216 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class _202210200001 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "DataExchange_AsnDet"); - - migrationBuilder.DropTable( - name: "DataExchange_Bom"); - - migrationBuilder.DropTable( - name: "DataExchange_Cust"); - - migrationBuilder.DropTable( - name: "DataExchange_CustPart"); - - migrationBuilder.DropTable( - name: "DataExchange_IncomingData"); - - migrationBuilder.DropTable( - name: "DataExchange_IncomingDataHistory"); - - migrationBuilder.DropTable( - name: "DataExchange_Inventory"); - - migrationBuilder.DropTable( - name: "DataExchange_Loc"); - - migrationBuilder.DropTable( - name: "DataExchange_MesProductL7PartsNote"); - - migrationBuilder.DropTable( - name: "DataExchange_OutgoingData"); - - migrationBuilder.DropTable( - name: "DataExchange_OutgoingDataHistory"); - - migrationBuilder.DropTable( - name: "DataExchange_Part"); - - migrationBuilder.DropTable( - name: "DataExchange_PoDet"); - - migrationBuilder.DropTable( - name: "DataExchange_PrhHist"); - - migrationBuilder.DropTable( - name: "DataExchange_ProdLine"); - - migrationBuilder.DropTable( - name: "DataExchange_ReceiptDet"); - - migrationBuilder.DropTable( - name: "DataExchange_ReturnDet"); - - migrationBuilder.DropTable( - name: "DataExchange_SodDet"); - - migrationBuilder.DropTable( - name: "DataExchange_Vend"); - - migrationBuilder.DropTable( - name: "DataExchange_VendPart"); - - migrationBuilder.DropTable( - name: "DataExchange_AsnMstr"); - - migrationBuilder.DropTable( - name: "DataExchange_PoMstr"); - - migrationBuilder.DropTable( - name: "DataExchange_ReceiptMstr"); - - migrationBuilder.DropTable( - name: "DataExchange_ReturnMstr"); - - migrationBuilder.CreateTable( - name: "ArchivedIncomingToWms", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Company = table.Column(type: "nvarchar(max)", nullable: true), - DataType = table.Column(type: "nvarchar(max)", nullable: true), - DataAction = table.Column(type: "int", nullable: false), - EffectiveDate = table.Column(type: "datetime2", nullable: false), - Status = table.Column(type: "int", nullable: false), - SystemType = table.Column(type: "nvarchar(max)", nullable: true), - DataIdentityCode = table.Column(type: "nvarchar(max)", nullable: true), - DataContent = table.Column(type: "nvarchar(max)", nullable: true), - WriteTime = table.Column(type: "datetime2", nullable: false), - ReadTime = table.Column(type: "datetime2", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - RetryTimes = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_ArchivedIncomingToWms", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "ArchivedOutgoingToExternal", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Company = table.Column(type: "nvarchar(max)", nullable: true), - DataType = table.Column(type: "nvarchar(max)", nullable: true), - DataAction = table.Column(type: "int", nullable: false), - EffectiveDate = table.Column(type: "datetime2", nullable: false), - Status = table.Column(type: "int", nullable: false), - SourceSystem = table.Column(type: "nvarchar(max)", nullable: true), - SourceDataId = table.Column(type: "nvarchar(max)", nullable: true), - SourceDataGroupCode = table.Column(type: "nvarchar(max)", nullable: true), - SourceDataDetailCode = table.Column(type: "nvarchar(max)", nullable: true), - SourceDataContent = table.Column(type: "nvarchar(max)", nullable: true), - WriteTime = table.Column(type: "datetime2", nullable: false), - Writer = table.Column(type: "nvarchar(max)", nullable: true), - DestinationDataId = table.Column(type: "nvarchar(max)", nullable: true), - DestinationDataContent = table.Column(type: "nvarchar(max)", nullable: true), - DestinationSystem = table.Column(type: "nvarchar(max)", nullable: true), - ReadTime = table.Column(type: "datetime2", nullable: true), - Reader = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - RetryTimes = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_ArchivedOutgoingToExternal", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_ArchivedIncomingFromExternal", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", 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), - 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), - SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SourceDataId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SourceDataGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SourceDataDetailCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SourceDataContent = table.Column(type: "nvarchar(max)", nullable: true), - WriteTime = table.Column(type: "datetime2", nullable: false), - Writer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DestinationDataId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DestinationDataContent = 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(64)", maxLength: 64, 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) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_ArchivedIncomingFromExternal", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_ArchivedOutgoingFromWms", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", 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), - 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), - SystemType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DataIdentityCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DataContent = table.Column(type: "nvarchar(max)", nullable: true), - WriteTime = table.Column(type: "datetime2", nullable: false), - ReadTime = table.Column(type: "datetime2", 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) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_ArchivedOutgoingFromWms", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_IncomingFromExternal", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.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), - 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), - SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SourceDataId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SourceDataGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SourceDataDetailCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SourceDataContent = table.Column(type: "nvarchar(max)", nullable: true), - WriteTime = table.Column(type: "datetime2", nullable: false), - Writer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DestinationDataId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DestinationDataContent = 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(64)", maxLength: 64, 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) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_IncomingFromExternal", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_OutgoingFromWms", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.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), - 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), - SystemType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DataIdentityCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DataContent = table.Column(type: "nvarchar(max)", nullable: true), - WriteTime = table.Column(type: "datetime2", nullable: false), - ReadTime = table.Column(type: "datetime2", 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) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_OutgoingFromWms", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "IncomingToWms", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Company = table.Column(type: "nvarchar(max)", nullable: true), - DataType = table.Column(type: "nvarchar(max)", nullable: true), - DataAction = table.Column(type: "int", nullable: false), - EffectiveDate = table.Column(type: "datetime2", nullable: false), - Status = table.Column(type: "int", nullable: false), - SystemType = table.Column(type: "nvarchar(max)", nullable: true), - DataIdentityCode = table.Column(type: "nvarchar(max)", nullable: true), - DataContent = table.Column(type: "nvarchar(max)", nullable: true), - WriteTime = table.Column(type: "datetime2", nullable: false), - ReadTime = table.Column(type: "datetime2", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - RetryTimes = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IncomingToWms", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "OutgoingToExternal", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Company = table.Column(type: "nvarchar(max)", nullable: true), - DataType = table.Column(type: "nvarchar(max)", nullable: true), - DataAction = table.Column(type: "int", nullable: false), - EffectiveDate = table.Column(type: "datetime2", nullable: false), - Status = table.Column(type: "int", nullable: false), - SourceSystem = table.Column(type: "nvarchar(max)", nullable: true), - SourceDataId = table.Column(type: "nvarchar(max)", nullable: true), - SourceDataGroupCode = table.Column(type: "nvarchar(max)", nullable: true), - SourceDataDetailCode = table.Column(type: "nvarchar(max)", nullable: true), - SourceDataContent = table.Column(type: "nvarchar(max)", nullable: true), - WriteTime = table.Column(type: "datetime2", nullable: false), - Writer = table.Column(type: "nvarchar(max)", nullable: true), - DestinationDataId = table.Column(type: "nvarchar(max)", nullable: true), - DestinationDataContent = table.Column(type: "nvarchar(max)", nullable: true), - DestinationSystem = table.Column(type: "nvarchar(max)", nullable: true), - ReadTime = table.Column(type: "datetime2", nullable: true), - Reader = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - RetryTimes = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_OutgoingToExternal", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "ArchivedIncomingToWms"); - - migrationBuilder.DropTable( - name: "ArchivedOutgoingToExternal"); - - migrationBuilder.DropTable( - name: "DataExchange_ArchivedIncomingFromExternal"); - - migrationBuilder.DropTable( - name: "DataExchange_ArchivedOutgoingFromWms"); - - migrationBuilder.DropTable( - name: "DataExchange_IncomingFromExternal"); - - migrationBuilder.DropTable( - name: "DataExchange_OutgoingFromWms"); - - migrationBuilder.DropTable( - name: "IncomingToWms"); - - migrationBuilder.DropTable( - name: "OutgoingToExternal"); - - migrationBuilder.CreateTable( - name: "DataExchange_AsnMstr", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - AsnNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - Contacts = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Dock = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - DueDate = table.Column(type: "datetime2", nullable: false), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - Phone = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PoNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - RpNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ShipDate = table.Column(type: "datetime2", nullable: false), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Status = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - TimeWindow = table.Column(type: "nvarchar(max)", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - TruckNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - VendorCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Whse = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_AsnMstr", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_Bom", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Component = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - EndDate = table.Column(type: "datetime2", nullable: false), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - Op = table.Column(type: "int", nullable: false), - OptionGroup = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Parent = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PerQty = table.Column(type: "decimal(18,6)", nullable: false), - Process = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Ref2 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ScrapPct = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - SeqNumber = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - StartDate = table.Column(type: "datetime2", nullable: false), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - Type = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_Bom", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_Cust", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Active = table.Column(type: "bit", nullable: false), - Addr1 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Addr2 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Addr3 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - City = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - Contacts = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Country = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Curr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - Fax = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Phone = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PstId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - Type = table.Column(type: "int", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_Cust", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_CustPart", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - CustCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - CustPackQty = table.Column(type: "decimal(18,6)", nullable: false), - CustPackUm = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_CustPart", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_IncomingData", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - DataContent = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DestinationSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - EffectiveDate = table.Column(type: "datetime2(7)", nullable: false), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ReadTime = table.Column(type: "datetime2", nullable: false), - Reader = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - RetryTimes = table.Column(type: "int", nullable: false), - SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Status = table.Column(type: "int", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - WriteTime = table.Column(type: "datetime2", nullable: false), - Writer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_IncomingData", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_IncomingDataHistory", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - DataContent = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DestinationSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - EffectiveDate = table.Column(type: "datetime2(7)", nullable: false), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "bigint", nullable: false), - ReadTime = table.Column(type: "datetime2", nullable: false), - Reader = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - RetryTimes = table.Column(type: "int", nullable: false), - SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Status = table.Column(type: "int", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - WriteTime = table.Column(type: "datetime2", nullable: false), - Writer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_IncomingDataHistory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_Inventory", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - CustConsignQty = table.Column(type: "decimal(18,6)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - Loc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Lot = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Part = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,6)", nullable: false), - Reference = table.Column(type: "nvarchar(max)", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Status = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - SuppConsignQty = table.Column(type: "decimal(18,6)", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - Um = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_Inventory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_Loc", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Desc = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - Type = table.Column(type: "nvarchar(max)", nullable: true), - Whse = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_Loc", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_MesProductL7PartsNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - Configuration = table.Column(type: "nvarchar(max)", nullable: true), - CreateDate = table.Column(type: "datetime2", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - FATA = table.Column(type: "nvarchar(max)", nullable: true), - L7Part = table.Column(type: "nvarchar(max)", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Position = table.Column(type: "nvarchar(max)", nullable: true), - ProductNo = table.Column(type: "nvarchar(max)", nullable: true), - Program = table.Column(type: "nvarchar(max)", nullable: true), - Qty = table.Column(type: "int", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - RowID = table.Column(type: "int", nullable: false), - State = table.Column(type: "int", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_MesProductL7PartsNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_OutgoingData", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - DataContent = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DestinationSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - EffectiveDate = table.Column(type: "datetime2(7)", nullable: false), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ReadTime = table.Column(type: "datetime2", nullable: false), - Reader = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - RetryTimes = table.Column(type: "int", nullable: false), - SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Status = table.Column(type: "int", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - WriteTime = table.Column(type: "datetime2", nullable: false), - Writer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_OutgoingData", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_OutgoingDataHistory", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - DataContent = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DestinationSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - EffectiveDate = table.Column(type: "datetime2(7)", nullable: false), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "bigint", nullable: false), - ReadTime = table.Column(type: "datetime2", nullable: false), - Reader = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - RetryTimes = table.Column(type: "int", nullable: false), - SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Status = table.Column(type: "int", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - WriteTime = table.Column(type: "datetime2", nullable: false), - Writer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_OutgoingDataHistory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_Part", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - AbcClass = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - CanBuy = table.Column(type: "bit", nullable: false), - CanMake = table.Column(type: "bit", nullable: false), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Color = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - Config = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Desc1 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Desc2 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Eco = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtPackQty = table.Column(type: "decimal(18,6)", nullable: false), - ExtPackUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - IsPhantom = table.Column(type: "bit", nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PartCatalog = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PartGroup = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PartType = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ProdKind = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Project = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Status = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - StdPackUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - Um = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Version = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_Part", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_PoMstr", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Buyer = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - Consignment = table.Column(type: "bit", nullable: false), - Contacts = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Contract = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - DueDate = table.Column(type: "datetime2", nullable: false), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ModType = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - OrderDate = table.Column(type: "datetime2", nullable: false), - PoNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Project = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Status = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - TaxRate = table.Column(type: "decimal(18,6)", nullable: false), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - VendorCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_PoMstr", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_PrhHist", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - AsnNumber = table.Column(type: "nvarchar(max)", nullable: true), - AsnQty = table.Column(type: "decimal(18,6)", nullable: false), - Buyer = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Dock = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - Line = table.Column(type: "int", nullable: false), - LocationCode = table.Column(type: "nvarchar(max)", nullable: true), - Lot = table.Column(type: "nvarchar(max)", nullable: true), - OrderQty = table.Column(type: "decimal(18,6)", nullable: false), - PackageNumber = table.Column(type: "nvarchar(max)", nullable: true), - PalletNumber = table.Column(type: "nvarchar(max)", nullable: true), - Part = table.Column(type: "nvarchar(max)", nullable: true), - PoNumber = table.Column(type: "nvarchar(max)", nullable: true), - PoSite = table.Column(type: "nvarchar(max)", nullable: true), - ProductionDate = table.Column(type: "datetime2", nullable: false), - Qty = table.Column(type: "decimal(18,6)", nullable: false), - Reason = table.Column(type: "nvarchar(max)", nullable: true), - ReceiveDate = table.Column(type: "datetime2", nullable: false), - ReceiveNumber = table.Column(type: "nvarchar(max)", nullable: true), - ReceiveType = table.Column(type: "nvarchar(max)", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Request = table.Column(type: "nvarchar(max)", nullable: true), - Rev = table.Column(type: "nvarchar(max)", nullable: true), - Rma_type = table.Column(type: "nvarchar(max)", nullable: true), - ShipDate = table.Column(type: "datetime2", nullable: false), - ShipTo = table.Column(type: "nvarchar(max)", nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Status = table.Column(type: "int", nullable: false), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - Type = table.Column(type: "nvarchar(max)", nullable: true), - Um = table.Column(type: "nvarchar(max)", nullable: true), - UmConv = table.Column(type: "decimal(18,6)", nullable: false), - Vendor = table.Column(type: "nvarchar(max)", nullable: true), - VendorLot = table.Column(type: "nvarchar(max)", nullable: true), - Whse = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_PrhHist", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_ProdLine", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Desc = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - Part = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Rate = table.Column(type: "int", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_ProdLine", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_ReceiptMstr", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - AsnNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - PoNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - RcNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - RcTime = table.Column(type: "datetime2", nullable: false), - RcWorker = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - RpNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - VendorCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Whse = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_ReceiptMstr", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_ReturnMstr", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - AsnNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - PoNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - RtNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - RtTime = table.Column(type: "datetime2", nullable: false), - RtWorker = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - VendorCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Whse = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_ReturnMstr", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_SodDet", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - CustCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - Loc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Project = table.Column(type: "nvarchar(max)", nullable: true), - Qty = table.Column(type: "decimal(18,6)", nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ShipTo = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - SoLine = table.Column(type: "int", nullable: false), - SoNbr = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - StdPackQty = table.Column(type: "nvarchar(max)", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - Um = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_SodDet", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_Vend", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Active = table.Column(type: "bit", nullable: false), - Addr1 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Addr2 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Addr3 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Bank = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - City = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - Contacts = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Country = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Curr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - Fax = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Phone = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PstId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - TaxRate = table.Column(type: "decimal(18,6)", nullable: false), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - Type = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_Vend", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_VendPart", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - VendPackQty = table.Column(type: "decimal(18,6)", nullable: false), - VendPackUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - VendPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - VendorCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_VendPart", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_AsnDet", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - AsnMstrId = table.Column(type: "uniqueidentifier", nullable: true), - AsnNbr = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - EntireBarCode = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), - LabelCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - LocUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Lot = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PalletLabelCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PartType = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PoLine = table.Column(type: "int", nullable: false), - PoNbr = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PoUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ProductionDate = table.Column(type: "datetime2", nullable: true), - Qty = table.Column(type: "decimal(18,6)", nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Status = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - Supplierlot = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - UmConv = table.Column(type: "decimal(18,6)", nullable: false), - WareClass = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - WareCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_AsnDet", x => x.Id); - table.ForeignKey( - name: "FK_DataExchange_AsnDet_DataExchange_AsnMstr_AsnMstrId", - column: x => x.AsnMstrId, - principalTable: "DataExchange_AsnMstr", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_PoDet", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Consignment = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - OrderQty = table.Column(type: "decimal(18,6)", nullable: false), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PoLine = table.Column(type: "int", nullable: false), - PoMstrId = table.Column(type: "uniqueidentifier", nullable: true), - PoNbr = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - RcQty = table.Column(type: "decimal(18,6)", nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Status = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: true), - StdPackUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Um = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - UmConv = table.Column(type: "decimal(18,6)", nullable: false), - VendPackQty = table.Column(type: "decimal(18,6)", nullable: false), - VendPackUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_PoDet", x => x.Id); - table.ForeignKey( - name: "FK_DataExchange_PoDet_DataExchange_PoMstr_PoMstrId", - column: x => x.PoMstrId, - principalTable: "DataExchange_PoMstr", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_ReceiptDet", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ContainerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Loc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Lot = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PackingCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PoLine = table.Column(type: "int", nullable: false), - ProductionDate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), - ReceiptMstrId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Status = table.Column(type: "int", nullable: false), - Um = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - VendorLot = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_ReceiptDet", x => x.Id); - table.ForeignKey( - name: "FK_DataExchange_ReceiptDet_DataExchange_ReceiptMstr_ReceiptMstrId", - column: x => x.ReceiptMstrId, - principalTable: "DataExchange_ReceiptMstr", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_ReturnDet", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ContainerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Loc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Lot = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PackingCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PoLine = table.Column(type: "int", nullable: false), - ProductionDate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ReturnMstrId = table.Column(type: "uniqueidentifier", nullable: true), - Status = table.Column(type: "int", nullable: false), - Um = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - VendorLot = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_ReturnDet", x => x.Id); - table.ForeignKey( - name: "FK_DataExchange_ReturnDet_DataExchange_ReturnMstr_ReturnMstrId", - column: x => x.ReturnMstrId, - principalTable: "DataExchange_ReturnMstr", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateIndex( - name: "IX_DataExchange_AsnDet_AsnMstrId", - table: "DataExchange_AsnDet", - column: "AsnMstrId"); - - migrationBuilder.CreateIndex( - name: "IX_DataExchange_PoDet_PoMstrId", - table: "DataExchange_PoDet", - column: "PoMstrId"); - - migrationBuilder.CreateIndex( - name: "IX_DataExchange_ReceiptDet_ReceiptMstrId", - table: "DataExchange_ReceiptDet", - column: "ReceiptMstrId"); - - migrationBuilder.CreateIndex( - name: "IX_DataExchange_ReturnDet_ReturnMstrId", - table: "DataExchange_ReturnDet", - column: "ReturnMstrId"); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221025054822_202210250002.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221025054822_202210250002.Designer.cs deleted file mode 100644 index 38feef35d..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221025054822_202210250002.Designer.cs +++ /dev/null @@ -1,3179 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20221025054822_202210250002")] - partial class _202210250002 - { - 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("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasColumnType("nvarchar(max)"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpFeatureValues"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedAccessTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Type"); - - b.ToTable("IdentityServerApiResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiResourceId", "Key", "Value"); - - b.ToTable("IdentityServerApiResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Scope"); - - b.ToTable("IdentityServerApiResourceScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ApiResourceId", "Type", "Value"); - - b.ToTable("IdentityServerApiResourceSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiScopeId", "Type"); - - b.ToTable("IdentityServerApiScopeClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiScopeId", "Key", "Value"); - - b.ToTable("IdentityServerApiScopeProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AbsoluteRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenType") - .HasColumnType("int"); - - b.Property("AllowAccessTokensViaBrowser") - .HasColumnType("bit"); - - b.Property("AllowOfflineAccess") - .HasColumnType("bit"); - - b.Property("AllowPlainTextPkce") - .HasColumnType("bit"); - - b.Property("AllowRememberConsent") - .HasColumnType("bit"); - - b.Property("AllowedIdentityTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AlwaysIncludeUserClaimsInIdToken") - .HasColumnType("bit"); - - b.Property("AlwaysSendClientClaims") - .HasColumnType("bit"); - - b.Property("AuthorizationCodeLifetime") - .HasColumnType("int"); - - b.Property("BackChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("BackChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ClientClaimsPrefix") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentLifetime") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DeviceCodeLifetime") - .HasColumnType("int"); - - b.Property("EnableLocalLogin") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FrontChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("FrontChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("IdentityTokenLifetime") - .HasColumnType("int"); - - b.Property("IncludeJwtId") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("PairWiseSubjectSalt") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProtocolType") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RefreshTokenExpiration") - .HasColumnType("int"); - - b.Property("RefreshTokenUsage") - .HasColumnType("int"); - - b.Property("RequireClientSecret") - .HasColumnType("bit"); - - b.Property("RequireConsent") - .HasColumnType("bit"); - - b.Property("RequirePkce") - .HasColumnType("bit"); - - b.Property("RequireRequestObject") - .HasColumnType("bit"); - - b.Property("SlidingRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("UpdateAccessTokenClaimsOnRefresh") - .HasColumnType("bit"); - - b.Property("UserCodeType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserSsoLifetime") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("IdentityServerClients"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Origin") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.HasKey("ClientId", "Origin"); - - b.ToTable("IdentityServerClientCorsOrigins"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("GrantType") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "GrantType"); - - b.ToTable("IdentityServerClientGrantTypes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Provider") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Provider"); - - b.ToTable("IdentityServerClientIdPRestrictions"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PostLogoutRedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "PostLogoutRedirectUri"); - - b.ToTable("IdentityServerClientPostLogoutRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "Key", "Value"); - - b.ToTable("IdentityServerClientProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("RedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "RedirectUri"); - - b.ToTable("IdentityServerClientRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Scope"); - - b.ToTable("IdentityServerClientScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("DeviceCode") - .IsUnique(); - - b.HasIndex("Expiration"); - - b.HasIndex("UserCode"); - - b.ToTable("IdentityServerDeviceFlowCodes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => - { - b.Property("Key") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsumedTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Key"); - - b.HasIndex("Expiration"); - - b.HasIndex("SubjectId", "ClientId", "Type"); - - b.HasIndex("SubjectId", "SessionId", "Type"); - - b.ToTable("IdentityServerPersistedGrants"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerIdentityResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("IdentityResourceId", "Type"); - - b.ToTable("IdentityServerIdentityResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("IdentityResourceId", "Key", "Value"); - - b.ToTable("IdentityServerIdentityResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpPermissionGrants"); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", 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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedIncomingFromExternal", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationDataId") - .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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataDetailCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceDataGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceDataId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ArchivedIncomingFromExternal"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedIncomingToWms", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("DataType") - .HasColumnType("nvarchar(max)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("ArchivedIncomingToWms"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedOutgoingFromWms", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ArchivedOutgoingFromWms"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedOutgoingToExternal", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .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("DataType") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationDataId") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationSystem") - .HasColumnType("nvarchar(max)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataDetailCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataGroupCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataId") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceSystem") - .HasColumnType("nvarchar(max)"); - - 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("ArchivedOutgoingToExternal"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingFromExternal", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationDataId") - .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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataDetailCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceDataGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceDataId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingFromExternal"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingToWms", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("DataType") - .HasColumnType("nvarchar(max)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("IncomingToWms"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MessageReceive", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ErrorCount") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastUpdateTime") - .HasColumnType("datetime2"); - - b.Property("MessageContent") - .HasColumnType("nvarchar(max)"); - - b.Property("MessageFileName") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveStatus") - .HasColumnType("int"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MessageReceive"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingFromWms", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingFromWms"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingToExternal", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .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("DataType") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationDataId") - .HasColumnType("nvarchar(max)"); - - b.Property("DestinationSystem") - .HasColumnType("nvarchar(max)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceDataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataDetailCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataGroupCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceDataId") - .HasColumnType("nvarchar(max)"); - - b.Property("SourceSystem") - .HasColumnType("nvarchar(max)"); - - 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("OutgoingToExternal"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("UserClaims") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Properties") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Scopes") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Secrets") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("UserClaims") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("Properties") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Claims") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedCorsOrigins") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedGrantTypes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("IdentityProviderRestrictions") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("PostLogoutRedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Properties") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("RedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedScopes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("ClientSecrets") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("UserClaims") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("Properties") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Navigation("Properties"); - - b.Navigation("Scopes"); - - b.Navigation("Secrets"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Navigation("AllowedCorsOrigins"); - - b.Navigation("AllowedGrantTypes"); - - b.Navigation("AllowedScopes"); - - b.Navigation("Claims"); - - b.Navigation("ClientSecrets"); - - b.Navigation("IdentityProviderRestrictions"); - - b.Navigation("PostLogoutRedirectUris"); - - b.Navigation("Properties"); - - b.Navigation("RedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221025054822_202210250002.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221025054822_202210250002.cs deleted file mode 100644 index 46061c062..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221025054822_202210250002.cs +++ /dev/null @@ -1,74 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class _202210250002 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "SystemType", - table: "DataExchange_ArchivedOutgoingFromWms"); - - migrationBuilder.RenameColumn( - name: "SystemType", - table: "IncomingToWms", - newName: "SourceSystem"); - - migrationBuilder.RenameColumn( - name: "SystemType", - table: "DataExchange_OutgoingFromWms", - newName: "DestinationSystem"); - - migrationBuilder.RenameColumn( - name: "SystemType", - table: "ArchivedIncomingToWms", - newName: "SourceSystem"); - - migrationBuilder.AddColumn( - name: "SourceSystem", - table: "DataExchange_OutgoingFromWms", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SourceSystem", - table: "DataExchange_ArchivedOutgoingFromWms", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "SourceSystem", - table: "DataExchange_OutgoingFromWms"); - - migrationBuilder.DropColumn( - name: "SourceSystem", - table: "DataExchange_ArchivedOutgoingFromWms"); - - migrationBuilder.RenameColumn( - name: "SourceSystem", - table: "IncomingToWms", - newName: "SystemType"); - - migrationBuilder.RenameColumn( - name: "DestinationSystem", - table: "DataExchange_OutgoingFromWms", - newName: "SystemType"); - - migrationBuilder.RenameColumn( - name: "SourceSystem", - table: "ArchivedIncomingToWms", - newName: "SystemType"); - - migrationBuilder.AddColumn( - name: "SystemType", - table: "DataExchange_ArchivedOutgoingFromWms", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221028020303_202210280001.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221028020303_202210280001.cs deleted file mode 100644 index 9c089dbf0..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221028020303_202210280001.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class _202210280001 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "TableType", - table: "OutgoingToExternal", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "TableType", - table: "DataExchange_IncomingFromExternal", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "TableType", - table: "DataExchange_ArchivedIncomingFromExternal", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "TableType", - table: "ArchivedOutgoingToExternal", - type: "int", - nullable: false, - defaultValue: 0); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "TableType", - table: "OutgoingToExternal"); - - migrationBuilder.DropColumn( - name: "TableType", - table: "DataExchange_IncomingFromExternal"); - - migrationBuilder.DropColumn( - name: "TableType", - table: "DataExchange_ArchivedIncomingFromExternal"); - - migrationBuilder.DropColumn( - name: "TableType", - table: "ArchivedOutgoingToExternal"); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221028020303_202210280001.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20230410014843_20230410init.Designer.cs similarity index 94% rename from be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221028020303_202210280001.Designer.cs rename to be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20230410014843_20230410init.Designer.cs index d586b1652..b9731e405 100644 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20221028020303_202210280001.Designer.cs +++ b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20230410014843_20230410init.Designer.cs @@ -8,20 +8,23 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Volo.Abp.EntityFrameworkCore; using Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore; +#nullable disable + namespace Win_in.Sfs.Wms.DataExchange.Migrations { [DbContext(typeof(DataExchangeDbContext))] - [Migration("20221028020303_202210280001")] - partial class _202210280001 + [Migration("20230410014843_20230410init")] + partial class _20230410init { 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); + .HasAnnotation("ProductVersion", "6.0.15") + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => { @@ -97,16 +100,28 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("ImpersonatorTenantId"); + b.Property("ImpersonatorTenantName") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ImpersonatorTenantName"); + b.Property("ImpersonatorUserId") .HasColumnType("uniqueidentifier") .HasColumnName("ImpersonatorUserId"); + b.Property("ImpersonatorUserName") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)") + .HasColumnName("ImpersonatorUserName"); + b.Property("TenantId") .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("TenantName") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("TenantName"); b.Property("Url") .HasMaxLength(256) @@ -128,7 +143,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("TenantId", "UserId", "ExecutionTime"); - b.ToTable("AbpAuditLogs"); + b.ToTable("AbpAuditLogs", (string)null); }); modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => @@ -178,7 +193,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - b.ToTable("AbpAuditLogActions"); + b.ToTable("AbpAuditLogActions", (string)null); }); modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => @@ -228,7 +243,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - b.ToTable("AbpEntityChanges"); + b.ToTable("AbpEntityChanges", (string)null); }); modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => @@ -270,7 +285,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("EntityChangeId"); - b.ToTable("AbpEntityPropertyChanges"); + b.ToTable("AbpEntityPropertyChanges", (string)null); }); modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => @@ -328,7 +343,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("IsAbandoned", "NextTryTime"); - b.ToTable("AbpBackgroundJobs"); + b.ToTable("AbpBackgroundJobs", (string)null); }); modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => @@ -357,9 +372,11 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.HasIndex("Name", "ProviderName", "ProviderKey"); + b.HasIndex("Name", "ProviderName", "ProviderKey") + .IsUnique() + .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); - b.ToTable("AbpFeatureValues"); + b.ToTable("AbpFeatureValues", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => @@ -405,7 +422,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("AbpClaimTypes"); + b.ToTable("AbpClaimTypes", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => @@ -431,7 +448,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .IsUnique() .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - b.ToTable("AbpLinkUsers"); + b.ToTable("AbpLinkUsers", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => @@ -479,7 +496,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("NormalizedName"); - b.ToTable("AbpRoles"); + b.ToTable("AbpRoles", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => @@ -507,7 +524,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("RoleId"); - b.ToTable("AbpRoleClaims"); + b.ToTable("AbpRoleClaims", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => @@ -581,7 +598,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("TenantId", "UserId"); - b.ToTable("AbpSecurityLogs"); + b.ToTable("AbpSecurityLogs", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => @@ -633,6 +650,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); + b.Property("IsActive") + .HasColumnType("bit"); + b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -732,7 +752,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("UserName"); - b.ToTable("AbpUsers"); + b.ToTable("AbpUsers", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => @@ -760,7 +780,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("UserId"); - b.ToTable("AbpUserClaims"); + b.ToTable("AbpUserClaims", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => @@ -789,7 +809,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("LoginProvider", "ProviderKey"); - b.ToTable("AbpUserLogins"); + b.ToTable("AbpUserLogins", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => @@ -816,7 +836,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("UserId", "OrganizationUnitId"); - b.ToTable("AbpUserOrganizationUnits"); + b.ToTable("AbpUserOrganizationUnits", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => @@ -835,7 +855,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("RoleId", "UserId"); - b.ToTable("AbpUserRoles"); + b.ToTable("AbpUserRoles", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => @@ -860,7 +880,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("UserId", "LoginProvider", "Name"); - b.ToTable("AbpUserTokens"); + b.ToTable("AbpUserTokens", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => @@ -933,7 +953,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("ParentId"); - b.ToTable("AbpOrganizationUnits"); + b.ToTable("AbpOrganizationUnits", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => @@ -960,7 +980,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("RoleId", "OrganizationUnitId"); - b.ToTable("AbpOrganizationUnitRoles"); + b.ToTable("AbpOrganizationUnitRoles", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => @@ -1034,7 +1054,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("IdentityServerApiResources"); + b.ToTable("IdentityServerApiResources", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => @@ -1048,7 +1068,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ApiResourceId", "Type"); - b.ToTable("IdentityServerApiResourceClaims"); + b.ToTable("IdentityServerApiResourceClaims", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => @@ -1066,7 +1086,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ApiResourceId", "Key", "Value"); - b.ToTable("IdentityServerApiResourceProperties"); + b.ToTable("IdentityServerApiResourceProperties", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => @@ -1080,7 +1100,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ApiResourceId", "Scope"); - b.ToTable("IdentityServerApiResourceScopes"); + b.ToTable("IdentityServerApiResourceScopes", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => @@ -1105,7 +1125,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ApiResourceId", "Type", "Value"); - b.ToTable("IdentityServerApiResourceSecrets"); + b.ToTable("IdentityServerApiResourceSecrets", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => @@ -1181,7 +1201,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("IdentityServerApiScopes"); + b.ToTable("IdentityServerApiScopes", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => @@ -1195,7 +1215,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ApiScopeId", "Type"); - b.ToTable("IdentityServerApiScopeClaims"); + b.ToTable("IdentityServerApiScopeClaims", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => @@ -1213,7 +1233,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ApiScopeId", "Key", "Value"); - b.ToTable("IdentityServerApiScopeProperties"); + b.ToTable("IdentityServerApiScopeProperties", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => @@ -1397,7 +1417,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("ClientId"); - b.ToTable("IdentityServerClients"); + b.ToTable("IdentityServerClients", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => @@ -1415,7 +1435,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "Type", "Value"); - b.ToTable("IdentityServerClientClaims"); + b.ToTable("IdentityServerClientClaims", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => @@ -1429,7 +1449,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "Origin"); - b.ToTable("IdentityServerClientCorsOrigins"); + b.ToTable("IdentityServerClientCorsOrigins", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => @@ -1443,7 +1463,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "GrantType"); - b.ToTable("IdentityServerClientGrantTypes"); + b.ToTable("IdentityServerClientGrantTypes", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => @@ -1457,7 +1477,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "Provider"); - b.ToTable("IdentityServerClientIdPRestrictions"); + b.ToTable("IdentityServerClientIdPRestrictions", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => @@ -1471,7 +1491,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "PostLogoutRedirectUri"); - b.ToTable("IdentityServerClientPostLogoutRedirectUris"); + b.ToTable("IdentityServerClientPostLogoutRedirectUris", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => @@ -1489,7 +1509,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "Key", "Value"); - b.ToTable("IdentityServerClientProperties"); + b.ToTable("IdentityServerClientProperties", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => @@ -1503,7 +1523,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "RedirectUri"); - b.ToTable("IdentityServerClientRedirectUris"); + b.ToTable("IdentityServerClientRedirectUris", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => @@ -1517,7 +1537,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "Scope"); - b.ToTable("IdentityServerClientScopes"); + b.ToTable("IdentityServerClientScopes", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => @@ -1542,7 +1562,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "Type", "Value"); - b.ToTable("IdentityServerClientSecrets"); + b.ToTable("IdentityServerClientSecrets", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => @@ -1614,7 +1634,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("UserCode"); - b.ToTable("IdentityServerDeviceFlowCodes"); + b.ToTable("IdentityServerDeviceFlowCodes", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => @@ -1680,7 +1700,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("SubjectId", "SessionId", "Type"); - b.ToTable("IdentityServerPersistedGrants"); + b.ToTable("IdentityServerPersistedGrants", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => @@ -1756,7 +1776,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("IdentityServerIdentityResources"); + b.ToTable("IdentityServerIdentityResources", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => @@ -1770,7 +1790,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("IdentityResourceId", "Type"); - b.ToTable("IdentityServerIdentityResourceClaims"); + b.ToTable("IdentityServerIdentityResourceClaims", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => @@ -1788,7 +1808,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("IdentityResourceId", "Key", "Value"); - b.ToTable("IdentityServerIdentityResourceProperties"); + b.ToTable("IdentityServerIdentityResourceProperties", (string)null); }); modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => @@ -1818,9 +1838,11 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.HasIndex("Name", "ProviderName", "ProviderKey"); + b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey") + .IsUnique() + .HasFilter("[TenantId] IS NOT NULL"); - b.ToTable("AbpPermissionGrants"); + b.ToTable("AbpPermissionGrants", (string)null); }); modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => @@ -1849,9 +1871,11 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.HasIndex("Name", "ProviderName", "ProviderKey"); + b.HasIndex("Name", "ProviderName", "ProviderKey") + .IsUnique() + .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); - b.ToTable("AbpSettings"); + b.ToTable("AbpSettings", (string)null); }); modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => @@ -1908,7 +1932,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("Name"); - b.ToTable("AbpTenants"); + b.ToTable("AbpTenants", (string)null); }); modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => @@ -1927,7 +1951,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("TenantId", "Name"); - b.ToTable("AbpTenantConnectionStrings"); + b.ToTable("AbpTenantConnectionStrings", (string)null); }); modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedIncomingFromExternal", b => @@ -1935,12 +1959,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -1978,12 +1996,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("EffectiveDate") .HasColumnType("datetime2(7)"); - b.Property("ErrorCode") - .HasColumnType("int"); + b.Property("ErrorCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ErrorMessage") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") @@ -2008,8 +2028,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasColumnType("nvarchar(64)"); b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)") .HasColumnName("Remark"); b.Property("RetryTimes") @@ -2037,8 +2057,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasMaxLength(64) .HasColumnType("nvarchar(64)"); - b.Property("Status") - .HasColumnType("int"); + b.Property("Status") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TableType") .HasColumnType("int"); @@ -2056,7 +2078,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("DataExchange_ArchivedIncomingFromExternal"); + b.ToTable("DataExchange_ArchivedIncomingFromExternal", (string)null); }); modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedIncomingToWms", b => @@ -2064,9 +2086,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .HasColumnType("nvarchar(max)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2149,12 +2168,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2188,12 +2201,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("EffectiveDate") .HasColumnType("datetime2(7)"); - b.Property("ErrorCode") - .HasColumnType("int"); + b.Property("ErrorCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ErrorMessage") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") @@ -2214,8 +2229,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasColumnType("datetime2"); b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)") .HasColumnName("Remark"); b.Property("RetryTimes") @@ -2224,8 +2239,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("SourceSystem") .HasColumnType("nvarchar(max)"); - b.Property("Status") - .HasColumnType("int"); + b.Property("Status") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2236,7 +2253,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("DataExchange_ArchivedOutgoingFromWms"); + b.ToTable("DataExchange_ArchivedOutgoingFromWms", (string)null); }); modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedOutgoingToExternal", b => @@ -2244,9 +2261,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .HasColumnType("nvarchar(max)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2353,12 +2367,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2396,12 +2404,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("EffectiveDate") .HasColumnType("datetime2(7)"); - b.Property("ErrorCode") - .HasColumnType("int"); + b.Property("ErrorCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ErrorMessage") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") @@ -2417,8 +2427,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Number") .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); b.Property("ReadTime") .HasColumnType("datetime2"); @@ -2428,8 +2439,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasColumnType("nvarchar(64)"); b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)") .HasColumnName("Remark"); b.Property("RetryTimes") @@ -2457,8 +2468,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasMaxLength(64) .HasColumnType("nvarchar(64)"); - b.Property("Status") - .HasColumnType("int"); + b.Property("Status") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TableType") .HasColumnType("int"); @@ -2476,7 +2489,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("DataExchange_IncomingFromExternal"); + b.ToTable("DataExchange_IncomingFromExternal", (string)null); }); modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingToWms", b => @@ -2484,9 +2497,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .HasColumnType("nvarchar(max)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2536,8 +2546,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Number") .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); b.Property("ReadTime") .HasColumnType("datetime2"); @@ -2596,8 +2607,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("MessageFileName") .HasColumnType("nvarchar(max)"); - b.Property("ReceiveStatus") - .HasColumnType("int"); + b.Property("ReceiveStatus") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ReceiveTime") .HasColumnType("datetime2"); @@ -2607,7 +2620,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("DataExchange_MessageReceive"); + b.ToTable("DataExchange_MessageReceive", (string)null); }); modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingFromWms", b => @@ -2615,12 +2628,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2659,12 +2666,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("EffectiveDate") .HasColumnType("datetime2(7)"); - b.Property("ErrorCode") - .HasColumnType("int"); + b.Property("ErrorCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ErrorMessage") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") @@ -2680,15 +2689,16 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Number") .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); b.Property("ReadTime") .HasColumnType("datetime2"); b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)") .HasColumnName("Remark"); b.Property("RetryTimes") @@ -2697,8 +2707,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("SourceSystem") .HasColumnType("nvarchar(max)"); - b.Property("Status") - .HasColumnType("int"); + b.Property("Status") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2709,7 +2721,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("DataExchange_OutgoingFromWms"); + b.ToTable("DataExchange_OutgoingFromWms", (string)null); }); modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingToExternal", b => @@ -2717,9 +2729,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .HasColumnType("nvarchar(max)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2772,8 +2781,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Number") .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); b.Property("ReadTime") .HasColumnType("datetime2"); diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20230410014843_20230410init.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20230410014843_20230410init.cs new file mode 100644 index 000000000..4ff1504a8 --- /dev/null +++ b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/20230410014843_20230410init.cs @@ -0,0 +1,1713 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Win_in.Sfs.Wms.DataExchange.Migrations +{ + public partial class _20230410init : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "AbpAuditLogs", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ApplicationName = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + TenantName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ImpersonatorUserId = table.Column(type: "uniqueidentifier", nullable: true), + ImpersonatorUserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ImpersonatorTenantId = table.Column(type: "uniqueidentifier", nullable: true), + ImpersonatorTenantName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExecutionTime = table.Column(type: "datetime2", nullable: false), + ExecutionDuration = table.Column(type: "int", nullable: false), + ClientIpAddress = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ClientName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + ClientId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CorrelationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BrowserInfo = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + HttpMethod = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + Url = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + Exceptions = table.Column(type: "nvarchar(max)", nullable: true), + Comments = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + HttpStatusCode = table.Column(type: "int", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpAuditLogs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpBackgroundJobs", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + JobArgs = table.Column(type: "nvarchar(max)", maxLength: 1048576, nullable: false), + TryCount = table.Column(type: "smallint", nullable: false, defaultValue: (short)0), + CreationTime = table.Column(type: "datetime2", nullable: false), + NextTryTime = table.Column(type: "datetime2", nullable: false), + LastTryTime = table.Column(type: "datetime2", nullable: true), + IsAbandoned = table.Column(type: "bit", nullable: false, defaultValue: false), + Priority = table.Column(type: "tinyint", nullable: false, defaultValue: (byte)15), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpBackgroundJobs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpClaimTypes", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Required = table.Column(type: "bit", nullable: false), + IsStatic = table.Column(type: "bit", nullable: false), + Regex = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + RegexDescription = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Description = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + ValueType = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpClaimTypes", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpFeatureValues", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Value = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpFeatureValues", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpLinkUsers", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SourceUserId = table.Column(type: "uniqueidentifier", nullable: false), + SourceTenantId = table.Column(type: "uniqueidentifier", nullable: true), + TargetUserId = table.Column(type: "uniqueidentifier", nullable: false), + TargetTenantId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpLinkUsers", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpOrganizationUnits", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ParentId = table.Column(type: "uniqueidentifier", nullable: true), + Code = table.Column(type: "nvarchar(95)", maxLength: 95, nullable: false), + DisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, 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), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id); + table.ForeignKey( + name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId", + column: x => x.ParentId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id"); + }); + + migrationBuilder.CreateTable( + name: "AbpPermissionGrants", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpPermissionGrants", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpRoles", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + NormalizedName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + IsDefault = table.Column(type: "bit", nullable: false), + IsStatic = table.Column(type: "bit", nullable: false), + IsPublic = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpRoles", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpSecurityLogs", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ApplicationName = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + Identity = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + Action = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), + UserId = table.Column(type: "uniqueidentifier", nullable: true), + UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + TenantName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ClientId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CorrelationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ClientIpAddress = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BrowserInfo = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpSettings", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + Value = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false), + ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpSettings", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpTenants", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = 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), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpTenants", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpUsers", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + NormalizedUserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Surname = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Email = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + NormalizedEmail = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + EmailConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false), + PasswordHash = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + SecurityStamp = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + IsExternal = table.Column(type: "bit", nullable: false, defaultValue: false), + PhoneNumber = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), + PhoneNumberConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false), + IsActive = table.Column(type: "bit", nullable: false), + TwoFactorEnabled = table.Column(type: "bit", nullable: false, defaultValue: false), + LockoutEnd = table.Column(type: "datetimeoffset", nullable: true), + LockoutEnabled = table.Column(type: "bit", nullable: false, defaultValue: false), + AccessFailedCount = table.Column(type: "int", nullable: false, defaultValue: 0), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUsers", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "ArchivedIncomingToWms", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Number = table.Column(type: "bigint", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + DataType = table.Column(type: "nvarchar(max)", nullable: true), + DataAction = table.Column(type: "int", nullable: false), + EffectiveDate = table.Column(type: "datetime2", nullable: false), + Status = table.Column(type: "int", nullable: false), + DataIdentityCode = table.Column(type: "nvarchar(max)", nullable: true), + DataContent = table.Column(type: "nvarchar(max)", nullable: true), + SourceSystem = table.Column(type: "nvarchar(max)", nullable: true), + WriteTime = table.Column(type: "datetime2", nullable: false), + ReadTime = table.Column(type: "datetime2", nullable: true), + ErrorCode = table.Column(type: "int", nullable: false), + ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), + RetryTimes = table.Column(type: "int", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ArchivedIncomingToWms", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "ArchivedOutgoingToExternal", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Number = table.Column(type: "bigint", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + DataType = table.Column(type: "nvarchar(max)", nullable: true), + TableType = table.Column(type: "int", nullable: false), + DataAction = table.Column(type: "int", nullable: false), + EffectiveDate = table.Column(type: "datetime2", nullable: false), + Status = table.Column(type: "int", nullable: false), + SourceSystem = table.Column(type: "nvarchar(max)", nullable: true), + SourceDataId = table.Column(type: "nvarchar(max)", nullable: true), + SourceDataGroupCode = table.Column(type: "nvarchar(max)", nullable: true), + SourceDataDetailCode = table.Column(type: "nvarchar(max)", nullable: true), + SourceDataContent = table.Column(type: "nvarchar(max)", nullable: true), + WriteTime = table.Column(type: "datetime2", nullable: false), + Writer = table.Column(type: "nvarchar(max)", nullable: true), + DestinationDataId = table.Column(type: "nvarchar(max)", nullable: true), + DestinationDataContent = table.Column(type: "nvarchar(max)", nullable: true), + DestinationSystem = table.Column(type: "nvarchar(max)", nullable: true), + ReadTime = table.Column(type: "datetime2", nullable: true), + Reader = table.Column(type: "nvarchar(max)", nullable: true), + ErrorCode = table.Column(type: "int", nullable: false), + ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), + RetryTimes = table.Column(type: "int", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ArchivedOutgoingToExternal", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "DataExchange_ArchivedIncomingFromExternal", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Number = table.Column(type: "bigint", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TableType = table.Column(type: "int", nullable: false), + DataAction = table.Column(type: "int", nullable: false), + EffectiveDate = table.Column(type: "datetime2(7)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SourceDataId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SourceDataGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SourceDataDetailCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SourceDataContent = table.Column(type: "nvarchar(max)", nullable: true), + WriteTime = table.Column(type: "datetime2", nullable: false), + Writer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DestinationDataId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DestinationDataContent = 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(64)", maxLength: 64, nullable: true), + ErrorCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ErrorMessage = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + RetryTimes = table.Column(type: "int", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DataExchange_ArchivedIncomingFromExternal", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "DataExchange_ArchivedOutgoingFromWms", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Number = table.Column(type: "bigint", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + 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: "nvarchar(64)", maxLength: 64, nullable: false), + DataIdentityCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + DataContent = table.Column(type: "nvarchar(max)", nullable: true), + SourceSystem = table.Column(type: "nvarchar(max)", nullable: true), + WriteTime = table.Column(type: "datetime2", nullable: false), + ReadTime = table.Column(type: "datetime2", nullable: true), + ErrorCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ErrorMessage = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + RetryTimes = table.Column(type: "int", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DataExchange_ArchivedOutgoingFromWms", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "DataExchange_IncomingFromExternal", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Number = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TableType = table.Column(type: "int", nullable: false), + DataAction = table.Column(type: "int", nullable: false), + EffectiveDate = table.Column(type: "datetime2(7)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SourceDataId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SourceDataGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SourceDataDetailCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SourceDataContent = table.Column(type: "nvarchar(max)", nullable: true), + WriteTime = table.Column(type: "datetime2", nullable: false), + Writer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DestinationDataId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DestinationDataContent = 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(64)", maxLength: 64, nullable: true), + ErrorCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ErrorMessage = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + RetryTimes = table.Column(type: "int", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DataExchange_IncomingFromExternal", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "DataExchange_MessageReceive", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MessageFileName = table.Column(type: "nvarchar(max)", nullable: true), + MessageContent = table.Column(type: "nvarchar(max)", nullable: true), + ReceiveStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ReceiveTime = table.Column(type: "datetime2", nullable: false), + LastUpdateTime = table.Column(type: "datetime2", nullable: true), + ErrorCount = table.Column(type: "int", nullable: true), + ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), + Type = 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) + }, + constraints: table => + { + table.PrimaryKey("PK_DataExchange_MessageReceive", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "DataExchange_OutgoingFromWms", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Number = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + DestinationSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + 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: "nvarchar(64)", maxLength: 64, nullable: false), + DataIdentityCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + DataContent = table.Column(type: "nvarchar(max)", nullable: true), + SourceSystem = table.Column(type: "nvarchar(max)", nullable: true), + WriteTime = table.Column(type: "datetime2", nullable: false), + ReadTime = table.Column(type: "datetime2", nullable: true), + ErrorCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ErrorMessage = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + RetryTimes = table.Column(type: "int", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DataExchange_OutgoingFromWms", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResources", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Enabled = table.Column(type: "bit", nullable: false), + AllowedAccessTokenSigningAlgorithms = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ShowInDiscoveryDocument = 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), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResources", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiScopes", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Enabled = table.Column(type: "bit", nullable: false), + Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Required = table.Column(type: "bit", nullable: false), + Emphasize = table.Column(type: "bit", nullable: false), + ShowInDiscoveryDocument = 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), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiScopes", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClients", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + ClientName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + ClientUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + LogoUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Enabled = table.Column(type: "bit", nullable: false), + ProtocolType = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + RequireClientSecret = table.Column(type: "bit", nullable: false), + RequireConsent = table.Column(type: "bit", nullable: false), + AllowRememberConsent = table.Column(type: "bit", nullable: false), + AlwaysIncludeUserClaimsInIdToken = table.Column(type: "bit", nullable: false), + RequirePkce = table.Column(type: "bit", nullable: false), + AllowPlainTextPkce = table.Column(type: "bit", nullable: false), + RequireRequestObject = table.Column(type: "bit", nullable: false), + AllowAccessTokensViaBrowser = table.Column(type: "bit", nullable: false), + FrontChannelLogoutUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + FrontChannelLogoutSessionRequired = table.Column(type: "bit", nullable: false), + BackChannelLogoutUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + BackChannelLogoutSessionRequired = table.Column(type: "bit", nullable: false), + AllowOfflineAccess = table.Column(type: "bit", nullable: false), + IdentityTokenLifetime = table.Column(type: "int", nullable: false), + AllowedIdentityTokenSigningAlgorithms = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + AccessTokenLifetime = table.Column(type: "int", nullable: false), + AuthorizationCodeLifetime = table.Column(type: "int", nullable: false), + ConsentLifetime = table.Column(type: "int", nullable: true), + AbsoluteRefreshTokenLifetime = table.Column(type: "int", nullable: false), + SlidingRefreshTokenLifetime = table.Column(type: "int", nullable: false), + RefreshTokenUsage = table.Column(type: "int", nullable: false), + UpdateAccessTokenClaimsOnRefresh = table.Column(type: "bit", nullable: false), + RefreshTokenExpiration = table.Column(type: "int", nullable: false), + AccessTokenType = table.Column(type: "int", nullable: false), + EnableLocalLogin = table.Column(type: "bit", nullable: false), + IncludeJwtId = table.Column(type: "bit", nullable: false), + AlwaysSendClientClaims = table.Column(type: "bit", nullable: false), + ClientClaimsPrefix = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + PairWiseSubjectSalt = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + UserSsoLifetime = table.Column(type: "int", nullable: true), + UserCodeType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + DeviceCodeLifetime = 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), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClients", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerDeviceFlowCodes", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DeviceCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + UserCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + SubjectId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + SessionId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + Description = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Expiration = table.Column(type: "datetime2", nullable: false), + Data = table.Column(type: "nvarchar(max)", maxLength: 50000, 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) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerDeviceFlowCodes", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerIdentityResources", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Enabled = table.Column(type: "bit", nullable: false), + Required = table.Column(type: "bit", nullable: false), + Emphasize = table.Column(type: "bit", nullable: false), + ShowInDiscoveryDocument = 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), + IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), + DeleterId = table.Column(type: "uniqueidentifier", nullable: true), + DeletionTime = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerIdentityResources", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerPersistedGrants", + columns: table => new + { + Key = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + SubjectId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + SessionId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + Description = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Expiration = table.Column(type: "datetime2", nullable: true), + ConsumedTime = table.Column(type: "datetime2", nullable: true), + Data = table.Column(type: "nvarchar(max)", maxLength: 50000, nullable: false), + 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) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerPersistedGrants", x => x.Key); + }); + + migrationBuilder.CreateTable( + name: "IncomingToWms", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Number = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + DataType = table.Column(type: "nvarchar(max)", nullable: true), + DataAction = table.Column(type: "int", nullable: false), + EffectiveDate = table.Column(type: "datetime2", nullable: false), + Status = table.Column(type: "int", nullable: false), + DataIdentityCode = table.Column(type: "nvarchar(max)", nullable: true), + DataContent = table.Column(type: "nvarchar(max)", nullable: true), + SourceSystem = table.Column(type: "nvarchar(max)", nullable: true), + WriteTime = table.Column(type: "datetime2", nullable: false), + ReadTime = table.Column(type: "datetime2", nullable: true), + ErrorCode = table.Column(type: "int", nullable: false), + ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), + RetryTimes = table.Column(type: "int", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IncomingToWms", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "OutgoingToExternal", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Number = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + DataType = table.Column(type: "nvarchar(max)", nullable: true), + TableType = table.Column(type: "int", nullable: false), + DataAction = table.Column(type: "int", nullable: false), + EffectiveDate = table.Column(type: "datetime2", nullable: false), + Status = table.Column(type: "int", nullable: false), + SourceSystem = table.Column(type: "nvarchar(max)", nullable: true), + SourceDataId = table.Column(type: "nvarchar(max)", nullable: true), + SourceDataGroupCode = table.Column(type: "nvarchar(max)", nullable: true), + SourceDataDetailCode = table.Column(type: "nvarchar(max)", nullable: true), + SourceDataContent = table.Column(type: "nvarchar(max)", nullable: true), + WriteTime = table.Column(type: "datetime2", nullable: false), + Writer = table.Column(type: "nvarchar(max)", nullable: true), + DestinationDataId = table.Column(type: "nvarchar(max)", nullable: true), + DestinationDataContent = table.Column(type: "nvarchar(max)", nullable: true), + DestinationSystem = table.Column(type: "nvarchar(max)", nullable: true), + ReadTime = table.Column(type: "datetime2", nullable: true), + Reader = table.Column(type: "nvarchar(max)", nullable: true), + ErrorCode = table.Column(type: "int", nullable: false), + ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), + RetryTimes = table.Column(type: "int", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_OutgoingToExternal", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AbpAuditLogActions", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + AuditLogId = table.Column(type: "uniqueidentifier", nullable: false), + ServiceName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), + MethodName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), + Parameters = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + ExecutionTime = table.Column(type: "datetime2", nullable: false), + ExecutionDuration = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpAuditLogActions", x => x.Id); + table.ForeignKey( + name: "FK_AbpAuditLogActions_AbpAuditLogs_AuditLogId", + column: x => x.AuditLogId, + principalTable: "AbpAuditLogs", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpEntityChanges", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + AuditLogId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ChangeTime = table.Column(type: "datetime2", nullable: false), + ChangeType = table.Column(type: "tinyint", nullable: false), + EntityTenantId = table.Column(type: "uniqueidentifier", nullable: true), + EntityId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + EntityTypeFullName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEntityChanges", x => x.Id); + table.ForeignKey( + name: "FK_AbpEntityChanges_AbpAuditLogs_AuditLogId", + column: x => x.AuditLogId, + principalTable: "AbpAuditLogs", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpOrganizationUnitRoles", + columns: table => new + { + RoleId = table.Column(type: "uniqueidentifier", nullable: false), + OrganizationUnitId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId }); + table.ForeignKey( + name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUnitId", + column: x => x.OrganizationUnitId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpOrganizationUnitRoles_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpRoleClaims", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RoleId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ClaimType = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + ClaimValue = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpRoleClaims", x => x.Id); + table.ForeignKey( + name: "FK_AbpRoleClaims_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpTenantConnectionStrings", + columns: table => new + { + TenantId = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Value = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name }); + table.ForeignKey( + name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId", + column: x => x.TenantId, + principalTable: "AbpTenants", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserClaims", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + UserId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ClaimType = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), + ClaimValue = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserClaims", x => x.Id); + table.ForeignKey( + name: "FK_AbpUserClaims_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserLogins", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + LoginProvider = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + ProviderKey = table.Column(type: "nvarchar(196)", maxLength: 196, nullable: false), + ProviderDisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserLogins", x => new { x.UserId, x.LoginProvider }); + table.ForeignKey( + name: "FK_AbpUserLogins_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserOrganizationUnits", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + OrganizationUnitId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId }); + table.ForeignKey( + name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUnitId", + column: x => x.OrganizationUnitId, + principalTable: "AbpOrganizationUnits", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpUserOrganizationUnits_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserRoles", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + RoleId = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserRoles", x => new { x.UserId, x.RoleId }); + table.ForeignKey( + name: "FK_AbpUserRoles_AbpRoles_RoleId", + column: x => x.RoleId, + principalTable: "AbpRoles", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_AbpUserRoles_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpUserTokens", + columns: table => new + { + UserId = table.Column(type: "uniqueidentifier", nullable: false), + LoginProvider = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Value = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpUserTokens", x => new { x.UserId, x.LoginProvider, x.Name }); + table.ForeignKey( + name: "FK_AbpUserTokens_AbpUsers_UserId", + column: x => x.UserId, + principalTable: "AbpUsers", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResourceClaims", + columns: table => new + { + Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResourceClaims", x => new { x.ApiResourceId, x.Type }); + table.ForeignKey( + name: "FK_IdentityServerApiResourceClaims_IdentityServerApiResources_ApiResourceId", + column: x => x.ApiResourceId, + principalTable: "IdentityServerApiResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResourceProperties", + columns: table => new + { + ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResourceProperties", x => new { x.ApiResourceId, x.Key, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerApiResourceProperties_IdentityServerApiResources_ApiResourceId", + column: x => x.ApiResourceId, + principalTable: "IdentityServerApiResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResourceScopes", + columns: table => new + { + ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), + Scope = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResourceScopes", x => new { x.ApiResourceId, x.Scope }); + table.ForeignKey( + name: "FK_IdentityServerApiResourceScopes_IdentityServerApiResources_ApiResourceId", + column: x => x.ApiResourceId, + principalTable: "IdentityServerApiResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiResourceSecrets", + columns: table => new + { + Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: false), + ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), + Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), + Expiration = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiResourceSecrets", x => new { x.ApiResourceId, x.Type, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerApiResourceSecrets_IdentityServerApiResources_ApiResourceId", + column: x => x.ApiResourceId, + principalTable: "IdentityServerApiResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiScopeClaims", + columns: table => new + { + Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + ApiScopeId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiScopeClaims", x => new { x.ApiScopeId, x.Type }); + table.ForeignKey( + name: "FK_IdentityServerApiScopeClaims_IdentityServerApiScopes_ApiScopeId", + column: x => x.ApiScopeId, + principalTable: "IdentityServerApiScopes", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerApiScopeProperties", + columns: table => new + { + ApiScopeId = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerApiScopeProperties", x => new { x.ApiScopeId, x.Key, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerApiScopeProperties_IdentityServerApiScopes_ApiScopeId", + column: x => x.ApiScopeId, + principalTable: "IdentityServerApiScopes", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientClaims", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientClaims", x => new { x.ClientId, x.Type, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerClientClaims_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientCorsOrigins", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Origin = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientCorsOrigins", x => new { x.ClientId, x.Origin }); + table.ForeignKey( + name: "FK_IdentityServerClientCorsOrigins_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientGrantTypes", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + GrantType = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientGrantTypes", x => new { x.ClientId, x.GrantType }); + table.ForeignKey( + name: "FK_IdentityServerClientGrantTypes_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientIdPRestrictions", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Provider = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientIdPRestrictions", x => new { x.ClientId, x.Provider }); + table.ForeignKey( + name: "FK_IdentityServerClientIdPRestrictions_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientPostLogoutRedirectUris", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + PostLogoutRedirectUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientPostLogoutRedirectUris", x => new { x.ClientId, x.PostLogoutRedirectUri }); + table.ForeignKey( + name: "FK_IdentityServerClientPostLogoutRedirectUris_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientProperties", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientProperties", x => new { x.ClientId, x.Key, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerClientProperties_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientRedirectUris", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + RedirectUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientRedirectUris", x => new { x.ClientId, x.RedirectUri }); + table.ForeignKey( + name: "FK_IdentityServerClientRedirectUris_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientScopes", + columns: table => new + { + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Scope = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientScopes", x => new { x.ClientId, x.Scope }); + table.ForeignKey( + name: "FK_IdentityServerClientScopes_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerClientSecrets", + columns: table => new + { + Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: false), + ClientId = table.Column(type: "uniqueidentifier", nullable: false), + Description = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), + Expiration = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerClientSecrets", x => new { x.ClientId, x.Type, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerClientSecrets_IdentityServerClients_ClientId", + column: x => x.ClientId, + principalTable: "IdentityServerClients", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerIdentityResourceClaims", + columns: table => new + { + Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), + IdentityResourceId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerIdentityResourceClaims", x => new { x.IdentityResourceId, x.Type }); + table.ForeignKey( + name: "FK_IdentityServerIdentityResourceClaims_IdentityServerIdentityResources_IdentityResourceId", + column: x => x.IdentityResourceId, + principalTable: "IdentityServerIdentityResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "IdentityServerIdentityResourceProperties", + columns: table => new + { + IdentityResourceId = table.Column(type: "uniqueidentifier", nullable: false), + Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), + Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_IdentityServerIdentityResourceProperties", x => new { x.IdentityResourceId, x.Key, x.Value }); + table.ForeignKey( + name: "FK_IdentityServerIdentityResourceProperties_IdentityServerIdentityResources_IdentityResourceId", + column: x => x.IdentityResourceId, + principalTable: "IdentityServerIdentityResources", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "AbpEntityPropertyChanges", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + EntityChangeId = table.Column(type: "uniqueidentifier", nullable: false), + NewValue = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + OriginalValue = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), + PropertyName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), + PropertyTypeFullName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_AbpEntityPropertyChanges", x => x.Id); + table.ForeignKey( + name: "FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId", + column: x => x.EntityChangeId, + principalTable: "AbpEntityChanges", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogActions_AuditLogId", + table: "AbpAuditLogActions", + column: "AuditLogId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_ExecutionTime", + table: "AbpAuditLogActions", + columns: new[] { "TenantId", "ServiceName", "MethodName", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogs_TenantId_ExecutionTime", + table: "AbpAuditLogs", + columns: new[] { "TenantId", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpAuditLogs_TenantId_UserId_ExecutionTime", + table: "AbpAuditLogs", + columns: new[] { "TenantId", "UserId", "ExecutionTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpBackgroundJobs_IsAbandoned_NextTryTime", + table: "AbpBackgroundJobs", + columns: new[] { "IsAbandoned", "NextTryTime" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChanges_AuditLogId", + table: "AbpEntityChanges", + column: "AuditLogId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityChanges_TenantId_EntityTypeFullName_EntityId", + table: "AbpEntityChanges", + columns: new[] { "TenantId", "EntityTypeFullName", "EntityId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpEntityPropertyChanges_EntityChangeId", + table: "AbpEntityPropertyChanges", + column: "EntityChangeId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey", + table: "AbpFeatureValues", + columns: new[] { "Name", "ProviderName", "ProviderKey" }, + unique: true, + filter: "[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_TargetTenantId", + table: "AbpLinkUsers", + columns: new[] { "SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId" }, + unique: true, + filter: "[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId", + table: "AbpOrganizationUnitRoles", + columns: new[] { "RoleId", "OrganizationUnitId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnits_Code", + table: "AbpOrganizationUnits", + column: "Code"); + + migrationBuilder.CreateIndex( + name: "IX_AbpOrganizationUnits_ParentId", + table: "AbpOrganizationUnits", + column: "ParentId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpPermissionGrants_TenantId_Name_ProviderName_ProviderKey", + table: "AbpPermissionGrants", + columns: new[] { "TenantId", "Name", "ProviderName", "ProviderKey" }, + unique: true, + filter: "[TenantId] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoleClaims_RoleId", + table: "AbpRoleClaims", + column: "RoleId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpRoles_NormalizedName", + table: "AbpRoles", + column: "NormalizedName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_Action", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "Action" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_ApplicationName", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "ApplicationName" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_Identity", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "Identity" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSecurityLogs_TenantId_UserId", + table: "AbpSecurityLogs", + columns: new[] { "TenantId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpSettings_Name_ProviderName_ProviderKey", + table: "AbpSettings", + columns: new[] { "Name", "ProviderName", "ProviderKey" }, + unique: true, + filter: "[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_AbpTenants_Name", + table: "AbpTenants", + column: "Name"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserClaims_UserId", + table: "AbpUserClaims", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserLogins_LoginProvider_ProviderKey", + table: "AbpUserLogins", + columns: new[] { "LoginProvider", "ProviderKey" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId", + table: "AbpUserOrganizationUnits", + columns: new[] { "UserId", "OrganizationUnitId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUserRoles_RoleId_UserId", + table: "AbpUserRoles", + columns: new[] { "RoleId", "UserId" }); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_Email", + table: "AbpUsers", + column: "Email"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_NormalizedEmail", + table: "AbpUsers", + column: "NormalizedEmail"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_NormalizedUserName", + table: "AbpUsers", + column: "NormalizedUserName"); + + migrationBuilder.CreateIndex( + name: "IX_AbpUsers_UserName", + table: "AbpUsers", + column: "UserName"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerClients_ClientId", + table: "IdentityServerClients", + column: "ClientId"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerDeviceFlowCodes_DeviceCode", + table: "IdentityServerDeviceFlowCodes", + column: "DeviceCode", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerDeviceFlowCodes_Expiration", + table: "IdentityServerDeviceFlowCodes", + column: "Expiration"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerDeviceFlowCodes_UserCode", + table: "IdentityServerDeviceFlowCodes", + column: "UserCode"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerPersistedGrants_Expiration", + table: "IdentityServerPersistedGrants", + column: "Expiration"); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerPersistedGrants_SubjectId_ClientId_Type", + table: "IdentityServerPersistedGrants", + columns: new[] { "SubjectId", "ClientId", "Type" }); + + migrationBuilder.CreateIndex( + name: "IX_IdentityServerPersistedGrants_SubjectId_SessionId_Type", + table: "IdentityServerPersistedGrants", + columns: new[] { "SubjectId", "SessionId", "Type" }); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "AbpAuditLogActions"); + + migrationBuilder.DropTable( + name: "AbpBackgroundJobs"); + + migrationBuilder.DropTable( + name: "AbpClaimTypes"); + + migrationBuilder.DropTable( + name: "AbpEntityPropertyChanges"); + + migrationBuilder.DropTable( + name: "AbpFeatureValues"); + + migrationBuilder.DropTable( + name: "AbpLinkUsers"); + + migrationBuilder.DropTable( + name: "AbpOrganizationUnitRoles"); + + migrationBuilder.DropTable( + name: "AbpPermissionGrants"); + + migrationBuilder.DropTable( + name: "AbpRoleClaims"); + + migrationBuilder.DropTable( + name: "AbpSecurityLogs"); + + migrationBuilder.DropTable( + name: "AbpSettings"); + + migrationBuilder.DropTable( + name: "AbpTenantConnectionStrings"); + + migrationBuilder.DropTable( + name: "AbpUserClaims"); + + migrationBuilder.DropTable( + name: "AbpUserLogins"); + + migrationBuilder.DropTable( + name: "AbpUserOrganizationUnits"); + + migrationBuilder.DropTable( + name: "AbpUserRoles"); + + migrationBuilder.DropTable( + name: "AbpUserTokens"); + + migrationBuilder.DropTable( + name: "ArchivedIncomingToWms"); + + migrationBuilder.DropTable( + name: "ArchivedOutgoingToExternal"); + + migrationBuilder.DropTable( + name: "DataExchange_ArchivedIncomingFromExternal"); + + migrationBuilder.DropTable( + name: "DataExchange_ArchivedOutgoingFromWms"); + + migrationBuilder.DropTable( + name: "DataExchange_IncomingFromExternal"); + + migrationBuilder.DropTable( + name: "DataExchange_MessageReceive"); + + migrationBuilder.DropTable( + name: "DataExchange_OutgoingFromWms"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResourceClaims"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResourceProperties"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResourceScopes"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResourceSecrets"); + + migrationBuilder.DropTable( + name: "IdentityServerApiScopeClaims"); + + migrationBuilder.DropTable( + name: "IdentityServerApiScopeProperties"); + + migrationBuilder.DropTable( + name: "IdentityServerClientClaims"); + + migrationBuilder.DropTable( + name: "IdentityServerClientCorsOrigins"); + + migrationBuilder.DropTable( + name: "IdentityServerClientGrantTypes"); + + migrationBuilder.DropTable( + name: "IdentityServerClientIdPRestrictions"); + + migrationBuilder.DropTable( + name: "IdentityServerClientPostLogoutRedirectUris"); + + migrationBuilder.DropTable( + name: "IdentityServerClientProperties"); + + migrationBuilder.DropTable( + name: "IdentityServerClientRedirectUris"); + + migrationBuilder.DropTable( + name: "IdentityServerClientScopes"); + + migrationBuilder.DropTable( + name: "IdentityServerClientSecrets"); + + migrationBuilder.DropTable( + name: "IdentityServerDeviceFlowCodes"); + + migrationBuilder.DropTable( + name: "IdentityServerIdentityResourceClaims"); + + migrationBuilder.DropTable( + name: "IdentityServerIdentityResourceProperties"); + + migrationBuilder.DropTable( + name: "IdentityServerPersistedGrants"); + + migrationBuilder.DropTable( + name: "IncomingToWms"); + + migrationBuilder.DropTable( + name: "OutgoingToExternal"); + + migrationBuilder.DropTable( + name: "AbpEntityChanges"); + + migrationBuilder.DropTable( + name: "AbpTenants"); + + migrationBuilder.DropTable( + name: "AbpOrganizationUnits"); + + migrationBuilder.DropTable( + name: "AbpRoles"); + + migrationBuilder.DropTable( + name: "AbpUsers"); + + migrationBuilder.DropTable( + name: "IdentityServerApiResources"); + + migrationBuilder.DropTable( + name: "IdentityServerApiScopes"); + + migrationBuilder.DropTable( + name: "IdentityServerClients"); + + migrationBuilder.DropTable( + name: "IdentityServerIdentityResources"); + + migrationBuilder.DropTable( + name: "AbpAuditLogs"); + } + } +} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/DataExchangeDbContextModelSnapshot.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/DataExchangeDbContextModelSnapshot.cs index ad8255c55..67b2b0b98 100644 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/DataExchangeDbContextModelSnapshot.cs +++ b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/DataExchangeDbContextModelSnapshot.cs @@ -7,6 +7,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Volo.Abp.EntityFrameworkCore; using Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore; +#nullable disable + namespace Win_in.Sfs.Wms.DataExchange.Migrations { [DbContext(typeof(DataExchangeDbContext))] @@ -17,9 +19,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations #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); + .HasAnnotation("ProductVersion", "6.0.15") + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => { @@ -95,16 +98,28 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("ImpersonatorTenantId"); + b.Property("ImpersonatorTenantName") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ImpersonatorTenantName"); + b.Property("ImpersonatorUserId") .HasColumnType("uniqueidentifier") .HasColumnName("ImpersonatorUserId"); + b.Property("ImpersonatorUserName") + .HasMaxLength(256) + .HasColumnType("nvarchar(256)") + .HasColumnName("ImpersonatorUserName"); + b.Property("TenantId") .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("TenantName") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("TenantName"); b.Property("Url") .HasMaxLength(256) @@ -126,7 +141,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("TenantId", "UserId", "ExecutionTime"); - b.ToTable("AbpAuditLogs"); + b.ToTable("AbpAuditLogs", (string)null); }); modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => @@ -176,7 +191,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - b.ToTable("AbpAuditLogActions"); + b.ToTable("AbpAuditLogActions", (string)null); }); modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => @@ -226,7 +241,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - b.ToTable("AbpEntityChanges"); + b.ToTable("AbpEntityChanges", (string)null); }); modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => @@ -268,7 +283,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("EntityChangeId"); - b.ToTable("AbpEntityPropertyChanges"); + b.ToTable("AbpEntityPropertyChanges", (string)null); }); modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => @@ -326,7 +341,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("IsAbandoned", "NextTryTime"); - b.ToTable("AbpBackgroundJobs"); + b.ToTable("AbpBackgroundJobs", (string)null); }); modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => @@ -355,9 +370,11 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.HasIndex("Name", "ProviderName", "ProviderKey"); + b.HasIndex("Name", "ProviderName", "ProviderKey") + .IsUnique() + .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); - b.ToTable("AbpFeatureValues"); + b.ToTable("AbpFeatureValues", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => @@ -403,7 +420,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("AbpClaimTypes"); + b.ToTable("AbpClaimTypes", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => @@ -429,7 +446,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .IsUnique() .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - b.ToTable("AbpLinkUsers"); + b.ToTable("AbpLinkUsers", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => @@ -477,7 +494,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("NormalizedName"); - b.ToTable("AbpRoles"); + b.ToTable("AbpRoles", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => @@ -505,7 +522,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("RoleId"); - b.ToTable("AbpRoleClaims"); + b.ToTable("AbpRoleClaims", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => @@ -579,7 +596,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("TenantId", "UserId"); - b.ToTable("AbpSecurityLogs"); + b.ToTable("AbpSecurityLogs", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => @@ -631,6 +648,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); + b.Property("IsActive") + .HasColumnType("bit"); + b.Property("IsDeleted") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -730,7 +750,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("UserName"); - b.ToTable("AbpUsers"); + b.ToTable("AbpUsers", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => @@ -758,7 +778,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("UserId"); - b.ToTable("AbpUserClaims"); + b.ToTable("AbpUserClaims", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => @@ -787,7 +807,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("LoginProvider", "ProviderKey"); - b.ToTable("AbpUserLogins"); + b.ToTable("AbpUserLogins", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => @@ -814,7 +834,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("UserId", "OrganizationUnitId"); - b.ToTable("AbpUserOrganizationUnits"); + b.ToTable("AbpUserOrganizationUnits", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => @@ -833,7 +853,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("RoleId", "UserId"); - b.ToTable("AbpUserRoles"); + b.ToTable("AbpUserRoles", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => @@ -858,7 +878,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("UserId", "LoginProvider", "Name"); - b.ToTable("AbpUserTokens"); + b.ToTable("AbpUserTokens", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => @@ -931,7 +951,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("ParentId"); - b.ToTable("AbpOrganizationUnits"); + b.ToTable("AbpOrganizationUnits", (string)null); }); modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => @@ -958,7 +978,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("RoleId", "OrganizationUnitId"); - b.ToTable("AbpOrganizationUnitRoles"); + b.ToTable("AbpOrganizationUnitRoles", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => @@ -1032,7 +1052,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("IdentityServerApiResources"); + b.ToTable("IdentityServerApiResources", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => @@ -1046,7 +1066,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ApiResourceId", "Type"); - b.ToTable("IdentityServerApiResourceClaims"); + b.ToTable("IdentityServerApiResourceClaims", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => @@ -1064,7 +1084,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ApiResourceId", "Key", "Value"); - b.ToTable("IdentityServerApiResourceProperties"); + b.ToTable("IdentityServerApiResourceProperties", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => @@ -1078,7 +1098,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ApiResourceId", "Scope"); - b.ToTable("IdentityServerApiResourceScopes"); + b.ToTable("IdentityServerApiResourceScopes", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => @@ -1103,7 +1123,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ApiResourceId", "Type", "Value"); - b.ToTable("IdentityServerApiResourceSecrets"); + b.ToTable("IdentityServerApiResourceSecrets", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => @@ -1179,7 +1199,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("IdentityServerApiScopes"); + b.ToTable("IdentityServerApiScopes", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => @@ -1193,7 +1213,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ApiScopeId", "Type"); - b.ToTable("IdentityServerApiScopeClaims"); + b.ToTable("IdentityServerApiScopeClaims", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => @@ -1211,7 +1231,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ApiScopeId", "Key", "Value"); - b.ToTable("IdentityServerApiScopeProperties"); + b.ToTable("IdentityServerApiScopeProperties", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => @@ -1395,7 +1415,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("ClientId"); - b.ToTable("IdentityServerClients"); + b.ToTable("IdentityServerClients", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => @@ -1413,7 +1433,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "Type", "Value"); - b.ToTable("IdentityServerClientClaims"); + b.ToTable("IdentityServerClientClaims", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => @@ -1427,7 +1447,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "Origin"); - b.ToTable("IdentityServerClientCorsOrigins"); + b.ToTable("IdentityServerClientCorsOrigins", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => @@ -1441,7 +1461,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "GrantType"); - b.ToTable("IdentityServerClientGrantTypes"); + b.ToTable("IdentityServerClientGrantTypes", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => @@ -1455,7 +1475,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "Provider"); - b.ToTable("IdentityServerClientIdPRestrictions"); + b.ToTable("IdentityServerClientIdPRestrictions", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => @@ -1469,7 +1489,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "PostLogoutRedirectUri"); - b.ToTable("IdentityServerClientPostLogoutRedirectUris"); + b.ToTable("IdentityServerClientPostLogoutRedirectUris", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => @@ -1487,7 +1507,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "Key", "Value"); - b.ToTable("IdentityServerClientProperties"); + b.ToTable("IdentityServerClientProperties", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => @@ -1501,7 +1521,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "RedirectUri"); - b.ToTable("IdentityServerClientRedirectUris"); + b.ToTable("IdentityServerClientRedirectUris", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => @@ -1515,7 +1535,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "Scope"); - b.ToTable("IdentityServerClientScopes"); + b.ToTable("IdentityServerClientScopes", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => @@ -1540,7 +1560,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("ClientId", "Type", "Value"); - b.ToTable("IdentityServerClientSecrets"); + b.ToTable("IdentityServerClientSecrets", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => @@ -1612,7 +1632,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("UserCode"); - b.ToTable("IdentityServerDeviceFlowCodes"); + b.ToTable("IdentityServerDeviceFlowCodes", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => @@ -1678,7 +1698,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("SubjectId", "SessionId", "Type"); - b.ToTable("IdentityServerPersistedGrants"); + b.ToTable("IdentityServerPersistedGrants", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => @@ -1754,7 +1774,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("IdentityServerIdentityResources"); + b.ToTable("IdentityServerIdentityResources", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => @@ -1768,7 +1788,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("IdentityResourceId", "Type"); - b.ToTable("IdentityServerIdentityResourceClaims"); + b.ToTable("IdentityServerIdentityResourceClaims", (string)null); }); modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => @@ -1786,7 +1806,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("IdentityResourceId", "Key", "Value"); - b.ToTable("IdentityServerIdentityResourceProperties"); + b.ToTable("IdentityServerIdentityResourceProperties", (string)null); }); modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => @@ -1816,9 +1836,11 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.HasIndex("Name", "ProviderName", "ProviderKey"); + b.HasIndex("TenantId", "Name", "ProviderName", "ProviderKey") + .IsUnique() + .HasFilter("[TenantId] IS NOT NULL"); - b.ToTable("AbpPermissionGrants"); + b.ToTable("AbpPermissionGrants", (string)null); }); modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => @@ -1847,9 +1869,11 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.HasIndex("Name", "ProviderName", "ProviderKey"); + b.HasIndex("Name", "ProviderName", "ProviderKey") + .IsUnique() + .HasFilter("[ProviderName] IS NOT NULL AND [ProviderKey] IS NOT NULL"); - b.ToTable("AbpSettings"); + b.ToTable("AbpSettings", (string)null); }); modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => @@ -1906,7 +1930,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasIndex("Name"); - b.ToTable("AbpTenants"); + b.ToTable("AbpTenants", (string)null); }); modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => @@ -1925,7 +1949,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("TenantId", "Name"); - b.ToTable("AbpTenantConnectionStrings"); + b.ToTable("AbpTenantConnectionStrings", (string)null); }); modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedIncomingFromExternal", b => @@ -1933,12 +1957,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -1976,12 +1994,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("EffectiveDate") .HasColumnType("datetime2(7)"); - b.Property("ErrorCode") - .HasColumnType("int"); + b.Property("ErrorCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ErrorMessage") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") @@ -2006,8 +2026,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasColumnType("nvarchar(64)"); b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)") .HasColumnName("Remark"); b.Property("RetryTimes") @@ -2035,8 +2055,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasMaxLength(64) .HasColumnType("nvarchar(64)"); - b.Property("Status") - .HasColumnType("int"); + b.Property("Status") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TableType") .HasColumnType("int"); @@ -2054,7 +2076,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("DataExchange_ArchivedIncomingFromExternal"); + b.ToTable("DataExchange_ArchivedIncomingFromExternal", (string)null); }); modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedIncomingToWms", b => @@ -2062,9 +2084,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .HasColumnType("nvarchar(max)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2147,12 +2166,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2186,12 +2199,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("EffectiveDate") .HasColumnType("datetime2(7)"); - b.Property("ErrorCode") - .HasColumnType("int"); + b.Property("ErrorCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ErrorMessage") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") @@ -2212,8 +2227,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasColumnType("datetime2"); b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)") .HasColumnName("Remark"); b.Property("RetryTimes") @@ -2222,8 +2237,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("SourceSystem") .HasColumnType("nvarchar(max)"); - b.Property("Status") - .HasColumnType("int"); + b.Property("Status") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2234,7 +2251,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("DataExchange_ArchivedOutgoingFromWms"); + b.ToTable("DataExchange_ArchivedOutgoingFromWms", (string)null); }); modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.ArchivedOutgoingToExternal", b => @@ -2242,9 +2259,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .HasColumnType("nvarchar(max)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2351,12 +2365,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2394,12 +2402,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("EffectiveDate") .HasColumnType("datetime2(7)"); - b.Property("ErrorCode") - .HasColumnType("int"); + b.Property("ErrorCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ErrorMessage") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") @@ -2415,8 +2425,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Number") .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); b.Property("ReadTime") .HasColumnType("datetime2"); @@ -2426,8 +2437,8 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasColumnType("nvarchar(64)"); b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)") .HasColumnName("Remark"); b.Property("RetryTimes") @@ -2455,8 +2466,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations .HasMaxLength(64) .HasColumnType("nvarchar(64)"); - b.Property("Status") - .HasColumnType("int"); + b.Property("Status") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TableType") .HasColumnType("int"); @@ -2474,7 +2487,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("DataExchange_IncomingFromExternal"); + b.ToTable("DataExchange_IncomingFromExternal", (string)null); }); modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingToWms", b => @@ -2482,9 +2495,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .HasColumnType("nvarchar(max)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2534,8 +2544,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Number") .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); b.Property("ReadTime") .HasColumnType("datetime2"); @@ -2594,8 +2605,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("MessageFileName") .HasColumnType("nvarchar(max)"); - b.Property("ReceiveStatus") - .HasColumnType("int"); + b.Property("ReceiveStatus") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ReceiveTime") .HasColumnType("datetime2"); @@ -2605,7 +2618,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("DataExchange_MessageReceive"); + b.ToTable("DataExchange_MessageReceive", (string)null); }); modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingFromWms", b => @@ -2613,12 +2626,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2657,12 +2664,14 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("EffectiveDate") .HasColumnType("datetime2(7)"); - b.Property("ErrorCode") - .HasColumnType("int"); + b.Property("ErrorCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("ErrorMessage") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)"); b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") @@ -2678,15 +2687,16 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Number") .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); b.Property("ReadTime") .HasColumnType("datetime2"); b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)") .HasColumnName("Remark"); b.Property("RetryTimes") @@ -2695,8 +2705,10 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("SourceSystem") .HasColumnType("nvarchar(max)"); - b.Property("Status") - .HasColumnType("int"); + b.Property("Status") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); b.Property("TenantId") .HasColumnType("uniqueidentifier") @@ -2707,7 +2719,7 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.HasKey("Id"); - b.ToTable("DataExchange_OutgoingFromWms"); + b.ToTable("DataExchange_OutgoingFromWms", (string)null); }); modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingToExternal", b => @@ -2715,9 +2727,6 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Company") - .HasColumnType("nvarchar(max)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2770,8 +2779,9 @@ namespace Win_in.Sfs.Wms.DataExchange.Migrations b.Property("Number") .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); b.Property("ReadTime") .HasColumnType("datetime2"); diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Init.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Init.Designer.cs deleted file mode 100644 index 459f0f6dc..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Init.Designer.cs +++ /dev/null @@ -1,1689 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220518052653_Init")] - partial class Init - { - 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.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Init.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Init.cs deleted file mode 100644 index dfecb9a66..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Init.cs +++ /dev/null @@ -1,664 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class Init : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "DataExchange_AsnMstr", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - AsnNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - RpNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PoNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - VendorCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Status = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Contacts = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Phone = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - TruckNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Whse = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Dock = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ShipDate = table.Column(type: "datetime2", nullable: false), - DueDate = table.Column(type: "datetime2", nullable: false), - TimeWindow = table.Column(type: "nvarchar(max)", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_AsnMstr", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_Bom", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Parent = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Component = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PerQty = table.Column(type: "decimal(18,2)", nullable: false), - Ref2 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - StartDate = table.Column(type: "datetime2", nullable: false), - EndDate = table.Column(type: "datetime2", nullable: false), - Type = table.Column(type: "nvarchar(max)", nullable: true), - Op = table.Column(type: "int", nullable: false), - ScrapPct = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - SeqNumber = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - OptionGroup = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Process = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_Bom", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_Cust", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Addr1 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Addr2 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Addr3 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Country = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - City = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Phone = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Fax = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PstId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Contacts = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Curr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Active = table.Column(type: "bit", nullable: false), - Type = table.Column(type: "int", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_Cust", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_CustPart", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - CustCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustPackQty = table.Column(type: "decimal(18,2)", nullable: false), - CustPackUm = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_CustPart", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_IncomingData", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.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), - DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - EffectiveDate = table.Column(type: "datetime2(7)", nullable: false), - Status = table.Column(type: "int", nullable: false), - DataContent = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - DestinationSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ReadTime = table.Column(type: "datetime2", nullable: false), - Reader = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WriteTime = table.Column(type: "datetime2", nullable: false), - Writer = table.Column(type: "nvarchar(64)", maxLength: 64, 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) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_IncomingData", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_IncomingDataHistory", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", 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), - DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - EffectiveDate = table.Column(type: "datetime2(7)", nullable: false), - Status = table.Column(type: "int", nullable: false), - DataContent = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - DestinationSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ReadTime = table.Column(type: "datetime2", nullable: false), - Reader = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WriteTime = table.Column(type: "datetime2", nullable: false), - Writer = table.Column(type: "nvarchar(64)", maxLength: 64, 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) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_IncomingDataHistory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_Inventory", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Part = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Lot = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Um = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Loc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SuppConsignQty = table.Column(type: "decimal(18,2)", nullable: true), - CustConsignQty = table.Column(type: "decimal(18,2)", nullable: true), - Status = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Reference = table.Column(type: "nvarchar(max)", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_Inventory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_Loc", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Whse = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Desc = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Type = table.Column(type: "nvarchar(max)", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_Loc", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_OutgoingData", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.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), - DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - EffectiveDate = table.Column(type: "datetime2(7)", nullable: false), - Status = table.Column(type: "int", nullable: false), - DataContent = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - DestinationSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ReadTime = table.Column(type: "datetime2", nullable: false), - Reader = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WriteTime = table.Column(type: "datetime2", nullable: false), - Writer = table.Column(type: "nvarchar(64)", maxLength: 64, 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) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_OutgoingData", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_OutgoingDataHistory", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", 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), - DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - EffectiveDate = table.Column(type: "datetime2(7)", nullable: false), - Status = table.Column(type: "int", nullable: false), - DataContent = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - DestinationSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ReadTime = table.Column(type: "datetime2", nullable: false), - Reader = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WriteTime = table.Column(type: "datetime2", nullable: false), - Writer = table.Column(type: "nvarchar(64)", maxLength: 64, 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) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_OutgoingDataHistory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_Part", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Desc1 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Desc2 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Status = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - CanMake = table.Column(type: "bit", nullable: false), - CanBuy = table.Column(type: "bit", nullable: false), - Um = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - AbcClass = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ProdKind = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PartType = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PartCatalog = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PartGroup = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Color = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Config = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Project = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Version = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Eco = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - StdPackUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - StdPackQty = table.Column(type: "decimal(18,2)", nullable: false), - ExtPackUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ExtPackQty = table.Column(type: "decimal(18,2)", nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_Part", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_PoMstr", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PoNbr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - VendorCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ModType = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Status = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Consignment = table.Column(type: "bit", nullable: false), - OrderDate = table.Column(type: "datetime2", nullable: false), - DueDate = table.Column(type: "datetime2", nullable: false), - TaxRate = table.Column(type: "decimal(18,2)", nullable: false), - Contacts = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Buyer = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Contract = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Project = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_PoMstr", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_ProdLine", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Code = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Desc = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Part = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Rate = table.Column(type: "int", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_ProdLine", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_SodDet", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - SoNbr = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SoLine = table.Column(type: "int", nullable: false), - CustCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Um = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - StdPackQty = table.Column(type: "nvarchar(max)", nullable: true), - Loc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Project = table.Column(type: "nvarchar(max)", nullable: true), - ShipTo = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_SodDet", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_Vend", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Code = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Addr1 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Addr2 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Addr3 = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Country = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - City = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Phone = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Fax = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PstId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Contacts = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Bank = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Curr = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - TaxRate = table.Column(type: "decimal(18,2)", nullable: false), - Active = table.Column(type: "bit", nullable: false), - Type = table.Column(type: "nvarchar(max)", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_Vend", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_VendPart", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - VendorCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - VendPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - VendPackQty = table.Column(type: "decimal(18,2)", nullable: false), - VendPackUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_VendPart", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_AsnDet", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - AsnNbr = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PoNbr = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PoLine = table.Column(type: "int", nullable: false), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Lot = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - ProductionDate = table.Column(type: "datetime2", nullable: true), - WareClass = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - WareCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - StdPackQty = table.Column(type: "decimal(18,2)", nullable: false), - PoUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - LocUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - UmConv = table.Column(type: "decimal(18,2)", nullable: false), - PartType = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Supplierlot = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Status = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - LabelCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - EntireBarCode = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), - PalletLabelCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - AsnMstrId = table.Column(type: "uniqueidentifier", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_AsnDet", x => x.Id); - table.ForeignKey( - name: "FK_DataExchange_AsnDet_DataExchange_AsnMstr_AsnMstrId", - column: x => x.AsnMstrId, - principalTable: "DataExchange_AsnMstr", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "DataExchange_PoDet", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNbr = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PoLine = table.Column(type: "int", nullable: false), - PartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Status = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Um = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - OrderQty = table.Column(type: "decimal(18,2)", nullable: false), - RcQty = table.Column(type: "decimal(18,2)", nullable: false), - StdPackUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - StdPackQty = table.Column(type: "decimal(18,2)", nullable: true), - VendPackUm = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - VendPackQty = table.Column(type: "decimal(18,2)", nullable: false), - UmConv = table.Column(type: "decimal(18,2)", nullable: false), - Consignment = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - PoMstrId = table.Column(type: "uniqueidentifier", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_PoDet", x => x.Id); - table.ForeignKey( - name: "FK_DataExchange_PoDet_DataExchange_PoMstr_PoMstrId", - column: x => x.PoMstrId, - principalTable: "DataExchange_PoMstr", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateIndex( - name: "IX_DataExchange_AsnDet_AsnMstrId", - table: "DataExchange_AsnDet", - column: "AsnMstrId"); - - migrationBuilder.CreateIndex( - name: "IX_DataExchange_PoDet_PoMstrId", - table: "DataExchange_PoDet", - column: "PoMstrId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "DataExchange_AsnDet"); - - migrationBuilder.DropTable( - name: "DataExchange_Bom"); - - migrationBuilder.DropTable( - name: "DataExchange_Cust"); - - migrationBuilder.DropTable( - name: "DataExchange_CustPart"); - - migrationBuilder.DropTable( - name: "DataExchange_IncomingData"); - - migrationBuilder.DropTable( - name: "DataExchange_IncomingDataHistory"); - - migrationBuilder.DropTable( - name: "DataExchange_Inventory"); - - migrationBuilder.DropTable( - name: "DataExchange_Loc"); - - migrationBuilder.DropTable( - name: "DataExchange_OutgoingData"); - - migrationBuilder.DropTable( - name: "DataExchange_OutgoingDataHistory"); - - migrationBuilder.DropTable( - name: "DataExchange_Part"); - - migrationBuilder.DropTable( - name: "DataExchange_PoDet"); - - migrationBuilder.DropTable( - name: "DataExchange_ProdLine"); - - migrationBuilder.DropTable( - name: "DataExchange_SodDet"); - - migrationBuilder.DropTable( - name: "DataExchange_Vend"); - - migrationBuilder.DropTable( - name: "DataExchange_VendPart"); - - migrationBuilder.DropTable( - name: "DataExchange_AsnMstr"); - - migrationBuilder.DropTable( - name: "DataExchange_PoMstr"); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/L7Part20220704.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/L7Part20220704.Designer.cs deleted file mode 100644 index d2b550103..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/L7Part20220704.Designer.cs +++ /dev/null @@ -1,2080 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220704064700_L7Part20220704")] - partial class L7Part20220704 - { - 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.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MesProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .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("L7Part") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MesProductL7PartsNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReceiptMstrId"); - - b.ToTable("DataExchange_ReceiptDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcTime") - .HasColumnType("datetime2"); - - b.Property("RcWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReceiptMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReturnMstrId"); - - b.ToTable("DataExchange_ReturnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RtNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RtTime") - .HasColumnType("datetime2"); - - b.Property("RtWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReturnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", null) - .WithMany("Details") - .HasForeignKey("ReceiptMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", null) - .WithMany("Details") - .HasForeignKey("ReturnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/L7Part20220704.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/L7Part20220704.cs deleted file mode 100644 index d0b2846a9..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/L7Part20220704.cs +++ /dev/null @@ -1,76 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class L7Part20220704 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "InfoType", - table: "DataExchange_MesProductL7PartsNote"); - - migrationBuilder.RenameColumn( - name: "ProjectNo", - table: "DataExchange_MesProductL7PartsNote", - newName: "Program"); - - migrationBuilder.RenameColumn( - name: "L7PartCode", - table: "DataExchange_MesProductL7PartsNote", - newName: "L7Part"); - - migrationBuilder.AddColumn( - name: "CreateDate", - table: "DataExchange_MesProductL7PartsNote", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "Qty", - table: "DataExchange_MesProductL7PartsNote", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "State", - table: "DataExchange_MesProductL7PartsNote", - type: "int", - nullable: false, - defaultValue: 0); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "CreateDate", - table: "DataExchange_MesProductL7PartsNote"); - - migrationBuilder.DropColumn( - name: "Qty", - table: "DataExchange_MesProductL7PartsNote"); - - migrationBuilder.DropColumn( - name: "State", - table: "DataExchange_MesProductL7PartsNote"); - - migrationBuilder.RenameColumn( - name: "Program", - table: "DataExchange_MesProductL7PartsNote", - newName: "ProjectNo"); - - migrationBuilder.RenameColumn( - name: "L7Part", - table: "DataExchange_MesProductL7PartsNote", - newName: "L7PartCode"); - - migrationBuilder.AddColumn( - name: "InfoType", - table: "DataExchange_MesProductL7PartsNote", - type: "nvarchar(max)", - nullable: true); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MesProductL7PartsNote20220826.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MesProductL7PartsNote20220826.Designer.cs deleted file mode 100644 index 7e10c0aa7..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MesProductL7PartsNote20220826.Designer.cs +++ /dev/null @@ -1,4400 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220826073553_MesProductL7PartsNote20220826")] - partial class MesProductL7PartsNote20220826 - { - 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("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasColumnType("nvarchar(max)"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpFeatureValues"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedAccessTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Type"); - - b.ToTable("IdentityServerApiResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiResourceId", "Key", "Value"); - - b.ToTable("IdentityServerApiResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Scope"); - - b.ToTable("IdentityServerApiResourceScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ApiResourceId", "Type", "Value"); - - b.ToTable("IdentityServerApiResourceSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiScopeId", "Type"); - - b.ToTable("IdentityServerApiScopeClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiScopeId", "Key", "Value"); - - b.ToTable("IdentityServerApiScopeProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AbsoluteRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenType") - .HasColumnType("int"); - - b.Property("AllowAccessTokensViaBrowser") - .HasColumnType("bit"); - - b.Property("AllowOfflineAccess") - .HasColumnType("bit"); - - b.Property("AllowPlainTextPkce") - .HasColumnType("bit"); - - b.Property("AllowRememberConsent") - .HasColumnType("bit"); - - b.Property("AllowedIdentityTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AlwaysIncludeUserClaimsInIdToken") - .HasColumnType("bit"); - - b.Property("AlwaysSendClientClaims") - .HasColumnType("bit"); - - b.Property("AuthorizationCodeLifetime") - .HasColumnType("int"); - - b.Property("BackChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("BackChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ClientClaimsPrefix") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentLifetime") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DeviceCodeLifetime") - .HasColumnType("int"); - - b.Property("EnableLocalLogin") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FrontChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("FrontChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("IdentityTokenLifetime") - .HasColumnType("int"); - - b.Property("IncludeJwtId") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("PairWiseSubjectSalt") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProtocolType") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RefreshTokenExpiration") - .HasColumnType("int"); - - b.Property("RefreshTokenUsage") - .HasColumnType("int"); - - b.Property("RequireClientSecret") - .HasColumnType("bit"); - - b.Property("RequireConsent") - .HasColumnType("bit"); - - b.Property("RequirePkce") - .HasColumnType("bit"); - - b.Property("RequireRequestObject") - .HasColumnType("bit"); - - b.Property("SlidingRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("UpdateAccessTokenClaimsOnRefresh") - .HasColumnType("bit"); - - b.Property("UserCodeType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserSsoLifetime") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("IdentityServerClients"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Origin") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.HasKey("ClientId", "Origin"); - - b.ToTable("IdentityServerClientCorsOrigins"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("GrantType") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "GrantType"); - - b.ToTable("IdentityServerClientGrantTypes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Provider") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Provider"); - - b.ToTable("IdentityServerClientIdPRestrictions"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PostLogoutRedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "PostLogoutRedirectUri"); - - b.ToTable("IdentityServerClientPostLogoutRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "Key", "Value"); - - b.ToTable("IdentityServerClientProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("RedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "RedirectUri"); - - b.ToTable("IdentityServerClientRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Scope"); - - b.ToTable("IdentityServerClientScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("DeviceCode") - .IsUnique(); - - b.HasIndex("Expiration"); - - b.HasIndex("UserCode"); - - b.ToTable("IdentityServerDeviceFlowCodes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => - { - b.Property("Key") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsumedTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Key"); - - b.HasIndex("Expiration"); - - b.HasIndex("SubjectId", "ClientId", "Type"); - - b.HasIndex("SubjectId", "SessionId", "Type"); - - b.ToTable("IdentityServerPersistedGrants"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerIdentityResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("IdentityResourceId", "Type"); - - b.ToTable("IdentityServerIdentityResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("IdentityResourceId", "Key", "Value"); - - b.ToTable("IdentityServerIdentityResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpPermissionGrants"); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", 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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MesProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .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("L7Part") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MesProductL7PartsNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MessageReceive", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ErrorCount") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastUpdateTime") - .HasColumnType("datetime2"); - - b.Property("MessageContent") - .HasColumnType("nvarchar(max)"); - - b.Property("MessageFileName") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveStatus") - .HasColumnType("int"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MessageReceive"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,6)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReceiptMstrId"); - - b.ToTable("DataExchange_ReceiptDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcTime") - .HasColumnType("datetime2"); - - b.Property("RcWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReceiptMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReturnMstrId"); - - b.ToTable("DataExchange_ReturnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RtNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RtTime") - .HasColumnType("datetime2"); - - b.Property("RtWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReturnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("UserClaims") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Properties") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Scopes") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Secrets") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("UserClaims") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("Properties") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Claims") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedCorsOrigins") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedGrantTypes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("IdentityProviderRestrictions") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("PostLogoutRedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Properties") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("RedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedScopes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("ClientSecrets") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("UserClaims") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("Properties") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", null) - .WithMany("Details") - .HasForeignKey("ReceiptMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", null) - .WithMany("Details") - .HasForeignKey("ReturnMstrId"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Navigation("Properties"); - - b.Navigation("Scopes"); - - b.Navigation("Secrets"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Navigation("AllowedCorsOrigins"); - - b.Navigation("AllowedGrantTypes"); - - b.Navigation("AllowedScopes"); - - b.Navigation("Claims"); - - b.Navigation("ClientSecrets"); - - b.Navigation("IdentityProviderRestrictions"); - - b.Navigation("PostLogoutRedirectUris"); - - b.Navigation("Properties"); - - b.Navigation("RedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MesProductL7PartsNote20220826.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MesProductL7PartsNote20220826.cs deleted file mode 100644 index cb1abd9d2..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MesProductL7PartsNote20220826.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class MesProductL7PartsNote20220826 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Year", - table: "DataExchange_MesProductL7PartsNote", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Year", - table: "DataExchange_MesProductL7PartsNote"); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive20220817.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive20220817.Designer.cs deleted file mode 100644 index 63f93ed2f..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive20220817.Designer.cs +++ /dev/null @@ -1,4353 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220817022401_MessageReceive20220817")] - partial class MessageReceive20220817 - { - 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("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasColumnType("nvarchar(max)"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpFeatureValues"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedAccessTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Type"); - - b.ToTable("IdentityServerApiResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiResourceId", "Key", "Value"); - - b.ToTable("IdentityServerApiResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Scope"); - - b.ToTable("IdentityServerApiResourceScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ApiResourceId", "Type", "Value"); - - b.ToTable("IdentityServerApiResourceSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiScopeId", "Type"); - - b.ToTable("IdentityServerApiScopeClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiScopeId", "Key", "Value"); - - b.ToTable("IdentityServerApiScopeProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AbsoluteRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenType") - .HasColumnType("int"); - - b.Property("AllowAccessTokensViaBrowser") - .HasColumnType("bit"); - - b.Property("AllowOfflineAccess") - .HasColumnType("bit"); - - b.Property("AllowPlainTextPkce") - .HasColumnType("bit"); - - b.Property("AllowRememberConsent") - .HasColumnType("bit"); - - b.Property("AllowedIdentityTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AlwaysIncludeUserClaimsInIdToken") - .HasColumnType("bit"); - - b.Property("AlwaysSendClientClaims") - .HasColumnType("bit"); - - b.Property("AuthorizationCodeLifetime") - .HasColumnType("int"); - - b.Property("BackChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("BackChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ClientClaimsPrefix") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentLifetime") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DeviceCodeLifetime") - .HasColumnType("int"); - - b.Property("EnableLocalLogin") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FrontChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("FrontChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("IdentityTokenLifetime") - .HasColumnType("int"); - - b.Property("IncludeJwtId") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("PairWiseSubjectSalt") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProtocolType") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RefreshTokenExpiration") - .HasColumnType("int"); - - b.Property("RefreshTokenUsage") - .HasColumnType("int"); - - b.Property("RequireClientSecret") - .HasColumnType("bit"); - - b.Property("RequireConsent") - .HasColumnType("bit"); - - b.Property("RequirePkce") - .HasColumnType("bit"); - - b.Property("RequireRequestObject") - .HasColumnType("bit"); - - b.Property("SlidingRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("UpdateAccessTokenClaimsOnRefresh") - .HasColumnType("bit"); - - b.Property("UserCodeType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserSsoLifetime") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("IdentityServerClients"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Origin") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.HasKey("ClientId", "Origin"); - - b.ToTable("IdentityServerClientCorsOrigins"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("GrantType") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "GrantType"); - - b.ToTable("IdentityServerClientGrantTypes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Provider") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Provider"); - - b.ToTable("IdentityServerClientIdPRestrictions"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PostLogoutRedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "PostLogoutRedirectUri"); - - b.ToTable("IdentityServerClientPostLogoutRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "Key", "Value"); - - b.ToTable("IdentityServerClientProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("RedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "RedirectUri"); - - b.ToTable("IdentityServerClientRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Scope"); - - b.ToTable("IdentityServerClientScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("DeviceCode") - .IsUnique(); - - b.HasIndex("Expiration"); - - b.HasIndex("UserCode"); - - b.ToTable("IdentityServerDeviceFlowCodes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => - { - b.Property("Key") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsumedTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Key"); - - b.HasIndex("Expiration"); - - b.HasIndex("SubjectId", "ClientId", "Type"); - - b.HasIndex("SubjectId", "SessionId", "Type"); - - b.ToTable("IdentityServerPersistedGrants"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerIdentityResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("IdentityResourceId", "Type"); - - b.ToTable("IdentityServerIdentityResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("IdentityResourceId", "Key", "Value"); - - b.ToTable("IdentityServerIdentityResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpPermissionGrants"); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", 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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MesProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .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("L7Part") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MesProductL7PartsNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,6)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReceiptMstrId"); - - b.ToTable("DataExchange_ReceiptDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcTime") - .HasColumnType("datetime2"); - - b.Property("RcWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReceiptMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReturnMstrId"); - - b.ToTable("DataExchange_ReturnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RtNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RtTime") - .HasColumnType("datetime2"); - - b.Property("RtWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReturnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("UserClaims") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Properties") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Scopes") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Secrets") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("UserClaims") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("Properties") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Claims") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedCorsOrigins") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedGrantTypes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("IdentityProviderRestrictions") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("PostLogoutRedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Properties") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("RedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedScopes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("ClientSecrets") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("UserClaims") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("Properties") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", null) - .WithMany("Details") - .HasForeignKey("ReceiptMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", null) - .WithMany("Details") - .HasForeignKey("ReturnMstrId"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Navigation("Properties"); - - b.Navigation("Scopes"); - - b.Navigation("Secrets"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Navigation("AllowedCorsOrigins"); - - b.Navigation("AllowedGrantTypes"); - - b.Navigation("AllowedScopes"); - - b.Navigation("Claims"); - - b.Navigation("ClientSecrets"); - - b.Navigation("IdentityProviderRestrictions"); - - b.Navigation("PostLogoutRedirectUris"); - - b.Navigation("Properties"); - - b.Navigation("RedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive20220817.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive20220817.cs deleted file mode 100644 index 7d35efc09..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive20220817.cs +++ /dev/null @@ -1,330 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class MessageReceive20220817 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "VendPackQty", - table: "DataExchange_VendPart", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "TaxRate", - table: "DataExchange_Vend", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_SodDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "TaxRate", - table: "DataExchange_PoMstr", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "VendPackQty", - table: "DataExchange_PoDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "UmConv", - table: "DataExchange_PoDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "StdPackQty", - table: "DataExchange_PoDet", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RcQty", - table: "DataExchange_PoDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "OrderQty", - table: "DataExchange_PoDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "StdPackQty", - table: "DataExchange_Part", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "ExtPackQty", - table: "DataExchange_Part", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AddColumn( - name: "IsPhantom", - table: "DataExchange_Part", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AlterColumn( - name: "SuppConsignQty", - table: "DataExchange_Inventory", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_Inventory", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "CustConsignQty", - table: "DataExchange_Inventory", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPackQty", - table: "DataExchange_CustPart", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "PerQty", - table: "DataExchange_Bom", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "UmConv", - table: "DataExchange_AsnDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "StdPackQty", - table: "DataExchange_AsnDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_AsnDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - - migrationBuilder.AlterColumn( - name: "VendPackQty", - table: "DataExchange_VendPart", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "TaxRate", - table: "DataExchange_Vend", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_SodDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "TaxRate", - table: "DataExchange_PoMstr", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "VendPackQty", - table: "DataExchange_PoDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "UmConv", - table: "DataExchange_PoDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "StdPackQty", - table: "DataExchange_PoDet", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RcQty", - table: "DataExchange_PoDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "OrderQty", - table: "DataExchange_PoDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "StdPackQty", - table: "DataExchange_Part", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "ExtPackQty", - table: "DataExchange_Part", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "SuppConsignQty", - table: "DataExchange_Inventory", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_Inventory", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "CustConsignQty", - table: "DataExchange_Inventory", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPackQty", - table: "DataExchange_CustPart", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "PerQty", - table: "DataExchange_Bom", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "UmConv", - table: "DataExchange_AsnDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "StdPackQty", - table: "DataExchange_AsnDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_AsnDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive2022081702.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive2022081702.Designer.cs deleted file mode 100644 index 8eeaae24a..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive2022081702.Designer.cs +++ /dev/null @@ -1,4397 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220817025807_MessageReceive2022081702")] - partial class MessageReceive2022081702 - { - 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("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasColumnType("nvarchar(max)"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpFeatureValues"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedAccessTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Type"); - - b.ToTable("IdentityServerApiResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiResourceId", "Key", "Value"); - - b.ToTable("IdentityServerApiResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Scope"); - - b.ToTable("IdentityServerApiResourceScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ApiResourceId", "Type", "Value"); - - b.ToTable("IdentityServerApiResourceSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiScopeId", "Type"); - - b.ToTable("IdentityServerApiScopeClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiScopeId", "Key", "Value"); - - b.ToTable("IdentityServerApiScopeProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AbsoluteRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenType") - .HasColumnType("int"); - - b.Property("AllowAccessTokensViaBrowser") - .HasColumnType("bit"); - - b.Property("AllowOfflineAccess") - .HasColumnType("bit"); - - b.Property("AllowPlainTextPkce") - .HasColumnType("bit"); - - b.Property("AllowRememberConsent") - .HasColumnType("bit"); - - b.Property("AllowedIdentityTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AlwaysIncludeUserClaimsInIdToken") - .HasColumnType("bit"); - - b.Property("AlwaysSendClientClaims") - .HasColumnType("bit"); - - b.Property("AuthorizationCodeLifetime") - .HasColumnType("int"); - - b.Property("BackChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("BackChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ClientClaimsPrefix") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentLifetime") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DeviceCodeLifetime") - .HasColumnType("int"); - - b.Property("EnableLocalLogin") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FrontChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("FrontChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("IdentityTokenLifetime") - .HasColumnType("int"); - - b.Property("IncludeJwtId") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("PairWiseSubjectSalt") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProtocolType") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RefreshTokenExpiration") - .HasColumnType("int"); - - b.Property("RefreshTokenUsage") - .HasColumnType("int"); - - b.Property("RequireClientSecret") - .HasColumnType("bit"); - - b.Property("RequireConsent") - .HasColumnType("bit"); - - b.Property("RequirePkce") - .HasColumnType("bit"); - - b.Property("RequireRequestObject") - .HasColumnType("bit"); - - b.Property("SlidingRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("UpdateAccessTokenClaimsOnRefresh") - .HasColumnType("bit"); - - b.Property("UserCodeType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserSsoLifetime") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("IdentityServerClients"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Origin") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.HasKey("ClientId", "Origin"); - - b.ToTable("IdentityServerClientCorsOrigins"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("GrantType") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "GrantType"); - - b.ToTable("IdentityServerClientGrantTypes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Provider") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Provider"); - - b.ToTable("IdentityServerClientIdPRestrictions"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PostLogoutRedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "PostLogoutRedirectUri"); - - b.ToTable("IdentityServerClientPostLogoutRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "Key", "Value"); - - b.ToTable("IdentityServerClientProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("RedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "RedirectUri"); - - b.ToTable("IdentityServerClientRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Scope"); - - b.ToTable("IdentityServerClientScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("DeviceCode") - .IsUnique(); - - b.HasIndex("Expiration"); - - b.HasIndex("UserCode"); - - b.ToTable("IdentityServerDeviceFlowCodes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => - { - b.Property("Key") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsumedTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Key"); - - b.HasIndex("Expiration"); - - b.HasIndex("SubjectId", "ClientId", "Type"); - - b.HasIndex("SubjectId", "SessionId", "Type"); - - b.ToTable("IdentityServerPersistedGrants"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerIdentityResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("IdentityResourceId", "Type"); - - b.ToTable("IdentityServerIdentityResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("IdentityResourceId", "Key", "Value"); - - b.ToTable("IdentityServerIdentityResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpPermissionGrants"); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", 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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MesProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .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("L7Part") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MesProductL7PartsNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MessageReceive", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ErrorCount") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastUpdateTime") - .HasColumnType("datetime2"); - - b.Property("MessageContent") - .HasColumnType("nvarchar(max)"); - - b.Property("MessageFileName") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveStatus") - .HasColumnType("int"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MessageReceive"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,6)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReceiptMstrId"); - - b.ToTable("DataExchange_ReceiptDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcTime") - .HasColumnType("datetime2"); - - b.Property("RcWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReceiptMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReturnMstrId"); - - b.ToTable("DataExchange_ReturnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RtNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RtTime") - .HasColumnType("datetime2"); - - b.Property("RtWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReturnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("UserClaims") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Properties") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Scopes") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Secrets") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("UserClaims") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("Properties") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Claims") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedCorsOrigins") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedGrantTypes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("IdentityProviderRestrictions") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("PostLogoutRedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Properties") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("RedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedScopes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("ClientSecrets") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("UserClaims") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("Properties") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", null) - .WithMany("Details") - .HasForeignKey("ReceiptMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", null) - .WithMany("Details") - .HasForeignKey("ReturnMstrId"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Navigation("Properties"); - - b.Navigation("Scopes"); - - b.Navigation("Secrets"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Navigation("AllowedCorsOrigins"); - - b.Navigation("AllowedGrantTypes"); - - b.Navigation("AllowedScopes"); - - b.Navigation("Claims"); - - b.Navigation("ClientSecrets"); - - b.Navigation("IdentityProviderRestrictions"); - - b.Navigation("PostLogoutRedirectUris"); - - b.Navigation("Properties"); - - b.Navigation("RedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive2022081702.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive2022081702.cs deleted file mode 100644 index bf2dac090..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/MessageReceive2022081702.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class MessageReceive2022081702 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "DataExchange_MessageReceive", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - MessageFileName = table.Column(type: "nvarchar(max)", nullable: true), - MessageContent = table.Column(type: "nvarchar(max)", nullable: true), - ReceiveStatus = table.Column(type: "int", nullable: false), - ReceiveTime = table.Column(type: "datetime2", nullable: false), - LastUpdateTime = table.Column(type: "datetime2", nullable: true), - ErrorCount = table.Column(type: "int", nullable: true), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true), - Type = 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) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_MessageReceive", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "DataExchange_MessageReceive"); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Part20220815.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Part20220815.Designer.cs deleted file mode 100644 index da8c6ba7a..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Part20220815.Designer.cs +++ /dev/null @@ -1,4353 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220815054542_Part20220815")] - partial class Part20220815 - { - 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("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasColumnType("nvarchar(max)"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpFeatureValues"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedAccessTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Type"); - - b.ToTable("IdentityServerApiResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiResourceId", "Key", "Value"); - - b.ToTable("IdentityServerApiResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Scope"); - - b.ToTable("IdentityServerApiResourceScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ApiResourceId", "Type", "Value"); - - b.ToTable("IdentityServerApiResourceSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiScopeId", "Type"); - - b.ToTable("IdentityServerApiScopeClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiScopeId", "Key", "Value"); - - b.ToTable("IdentityServerApiScopeProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AbsoluteRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenType") - .HasColumnType("int"); - - b.Property("AllowAccessTokensViaBrowser") - .HasColumnType("bit"); - - b.Property("AllowOfflineAccess") - .HasColumnType("bit"); - - b.Property("AllowPlainTextPkce") - .HasColumnType("bit"); - - b.Property("AllowRememberConsent") - .HasColumnType("bit"); - - b.Property("AllowedIdentityTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AlwaysIncludeUserClaimsInIdToken") - .HasColumnType("bit"); - - b.Property("AlwaysSendClientClaims") - .HasColumnType("bit"); - - b.Property("AuthorizationCodeLifetime") - .HasColumnType("int"); - - b.Property("BackChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("BackChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ClientClaimsPrefix") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentLifetime") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DeviceCodeLifetime") - .HasColumnType("int"); - - b.Property("EnableLocalLogin") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FrontChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("FrontChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("IdentityTokenLifetime") - .HasColumnType("int"); - - b.Property("IncludeJwtId") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("PairWiseSubjectSalt") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProtocolType") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RefreshTokenExpiration") - .HasColumnType("int"); - - b.Property("RefreshTokenUsage") - .HasColumnType("int"); - - b.Property("RequireClientSecret") - .HasColumnType("bit"); - - b.Property("RequireConsent") - .HasColumnType("bit"); - - b.Property("RequirePkce") - .HasColumnType("bit"); - - b.Property("RequireRequestObject") - .HasColumnType("bit"); - - b.Property("SlidingRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("UpdateAccessTokenClaimsOnRefresh") - .HasColumnType("bit"); - - b.Property("UserCodeType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserSsoLifetime") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("IdentityServerClients"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Origin") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.HasKey("ClientId", "Origin"); - - b.ToTable("IdentityServerClientCorsOrigins"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("GrantType") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "GrantType"); - - b.ToTable("IdentityServerClientGrantTypes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Provider") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Provider"); - - b.ToTable("IdentityServerClientIdPRestrictions"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PostLogoutRedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "PostLogoutRedirectUri"); - - b.ToTable("IdentityServerClientPostLogoutRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "Key", "Value"); - - b.ToTable("IdentityServerClientProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("RedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "RedirectUri"); - - b.ToTable("IdentityServerClientRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Scope"); - - b.ToTable("IdentityServerClientScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("DeviceCode") - .IsUnique(); - - b.HasIndex("Expiration"); - - b.HasIndex("UserCode"); - - b.ToTable("IdentityServerDeviceFlowCodes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => - { - b.Property("Key") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsumedTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Key"); - - b.HasIndex("Expiration"); - - b.HasIndex("SubjectId", "ClientId", "Type"); - - b.HasIndex("SubjectId", "SessionId", "Type"); - - b.ToTable("IdentityServerPersistedGrants"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerIdentityResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("IdentityResourceId", "Type"); - - b.ToTable("IdentityServerIdentityResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("IdentityResourceId", "Key", "Value"); - - b.ToTable("IdentityServerIdentityResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpPermissionGrants"); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", 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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MesProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .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("L7Part") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MesProductL7PartsNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,6)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReceiptMstrId"); - - b.ToTable("DataExchange_ReceiptDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcTime") - .HasColumnType("datetime2"); - - b.Property("RcWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReceiptMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReturnMstrId"); - - b.ToTable("DataExchange_ReturnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RtNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RtTime") - .HasColumnType("datetime2"); - - b.Property("RtWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReturnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("UserClaims") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Properties") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Scopes") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Secrets") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("UserClaims") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("Properties") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Claims") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedCorsOrigins") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedGrantTypes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("IdentityProviderRestrictions") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("PostLogoutRedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Properties") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("RedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedScopes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("ClientSecrets") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("UserClaims") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("Properties") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", null) - .WithMany("Details") - .HasForeignKey("ReceiptMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", null) - .WithMany("Details") - .HasForeignKey("ReturnMstrId"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Navigation("Properties"); - - b.Navigation("Scopes"); - - b.Navigation("Secrets"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Navigation("AllowedCorsOrigins"); - - b.Navigation("AllowedGrantTypes"); - - b.Navigation("AllowedScopes"); - - b.Navigation("Claims"); - - b.Navigation("ClientSecrets"); - - b.Navigation("IdentityProviderRestrictions"); - - b.Navigation("PostLogoutRedirectUris"); - - b.Navigation("Properties"); - - b.Navigation("RedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Part20220815.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Part20220815.cs deleted file mode 100644 index 263de9d8d..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/Part20220815.cs +++ /dev/null @@ -1,333 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class Part20220815 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "VendPackQty", - table: "DataExchange_VendPart", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "TaxRate", - table: "DataExchange_Vend", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_SodDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "TaxRate", - table: "DataExchange_PoMstr", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "VendPackQty", - table: "DataExchange_PoDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "UmConv", - table: "DataExchange_PoDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "StdPackQty", - table: "DataExchange_PoDet", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RcQty", - table: "DataExchange_PoDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "OrderQty", - table: "DataExchange_PoDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "StdPackQty", - table: "DataExchange_Part", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "ExtPackQty", - table: "DataExchange_Part", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AddColumn( - name: "IsPhantom", - table: "DataExchange_Part", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AlterColumn( - name: "SuppConsignQty", - table: "DataExchange_Inventory", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_Inventory", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "CustConsignQty", - table: "DataExchange_Inventory", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPackQty", - table: "DataExchange_CustPart", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "PerQty", - table: "DataExchange_Bom", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "UmConv", - table: "DataExchange_AsnDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "StdPackQty", - table: "DataExchange_AsnDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_AsnDet", - type: "decimal(18,6)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "IsPhantom", - table: "DataExchange_Part"); - - migrationBuilder.AlterColumn( - name: "VendPackQty", - table: "DataExchange_VendPart", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "TaxRate", - table: "DataExchange_Vend", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_SodDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "TaxRate", - table: "DataExchange_PoMstr", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "VendPackQty", - table: "DataExchange_PoDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "UmConv", - table: "DataExchange_PoDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "StdPackQty", - table: "DataExchange_PoDet", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RcQty", - table: "DataExchange_PoDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "OrderQty", - table: "DataExchange_PoDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "StdPackQty", - table: "DataExchange_Part", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "ExtPackQty", - table: "DataExchange_Part", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "SuppConsignQty", - table: "DataExchange_Inventory", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_Inventory", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "CustConsignQty", - table: "DataExchange_Inventory", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustPackQty", - table: "DataExchange_CustPart", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "PerQty", - table: "DataExchange_Bom", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "UmConv", - table: "DataExchange_AsnDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "StdPackQty", - table: "DataExchange_AsnDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_AsnDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/PrhHist_add_Loc_status_20209040932.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/PrhHist_add_Loc_status_20209040932.Designer.cs deleted file mode 100644 index 0220faa19..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/PrhHist_add_Loc_status_20209040932.Designer.cs +++ /dev/null @@ -1,4543 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220914024119_PrhHist_add_Loc_status_20209040932")] - partial class PrhHist_add_Loc_status_20209040932 - { - 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("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasColumnType("nvarchar(max)"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpFeatureValues"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedAccessTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Type"); - - b.ToTable("IdentityServerApiResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiResourceId", "Key", "Value"); - - b.ToTable("IdentityServerApiResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Scope"); - - b.ToTable("IdentityServerApiResourceScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ApiResourceId", "Type", "Value"); - - b.ToTable("IdentityServerApiResourceSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiScopeId", "Type"); - - b.ToTable("IdentityServerApiScopeClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiScopeId", "Key", "Value"); - - b.ToTable("IdentityServerApiScopeProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AbsoluteRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenType") - .HasColumnType("int"); - - b.Property("AllowAccessTokensViaBrowser") - .HasColumnType("bit"); - - b.Property("AllowOfflineAccess") - .HasColumnType("bit"); - - b.Property("AllowPlainTextPkce") - .HasColumnType("bit"); - - b.Property("AllowRememberConsent") - .HasColumnType("bit"); - - b.Property("AllowedIdentityTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AlwaysIncludeUserClaimsInIdToken") - .HasColumnType("bit"); - - b.Property("AlwaysSendClientClaims") - .HasColumnType("bit"); - - b.Property("AuthorizationCodeLifetime") - .HasColumnType("int"); - - b.Property("BackChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("BackChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ClientClaimsPrefix") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentLifetime") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DeviceCodeLifetime") - .HasColumnType("int"); - - b.Property("EnableLocalLogin") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FrontChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("FrontChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("IdentityTokenLifetime") - .HasColumnType("int"); - - b.Property("IncludeJwtId") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("PairWiseSubjectSalt") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProtocolType") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RefreshTokenExpiration") - .HasColumnType("int"); - - b.Property("RefreshTokenUsage") - .HasColumnType("int"); - - b.Property("RequireClientSecret") - .HasColumnType("bit"); - - b.Property("RequireConsent") - .HasColumnType("bit"); - - b.Property("RequirePkce") - .HasColumnType("bit"); - - b.Property("RequireRequestObject") - .HasColumnType("bit"); - - b.Property("SlidingRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("UpdateAccessTokenClaimsOnRefresh") - .HasColumnType("bit"); - - b.Property("UserCodeType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserSsoLifetime") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("IdentityServerClients"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Origin") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.HasKey("ClientId", "Origin"); - - b.ToTable("IdentityServerClientCorsOrigins"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("GrantType") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "GrantType"); - - b.ToTable("IdentityServerClientGrantTypes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Provider") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Provider"); - - b.ToTable("IdentityServerClientIdPRestrictions"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PostLogoutRedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "PostLogoutRedirectUri"); - - b.ToTable("IdentityServerClientPostLogoutRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "Key", "Value"); - - b.ToTable("IdentityServerClientProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("RedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "RedirectUri"); - - b.ToTable("IdentityServerClientRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Scope"); - - b.ToTable("IdentityServerClientScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("DeviceCode") - .IsUnique(); - - b.HasIndex("Expiration"); - - b.HasIndex("UserCode"); - - b.ToTable("IdentityServerDeviceFlowCodes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => - { - b.Property("Key") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsumedTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Key"); - - b.HasIndex("Expiration"); - - b.HasIndex("SubjectId", "ClientId", "Type"); - - b.HasIndex("SubjectId", "SessionId", "Type"); - - b.ToTable("IdentityServerPersistedGrants"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerIdentityResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("IdentityResourceId", "Type"); - - b.ToTable("IdentityServerIdentityResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("IdentityResourceId", "Key", "Value"); - - b.ToTable("IdentityServerIdentityResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpPermissionGrants"); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", 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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MesProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .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("L7Part") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MesProductL7PartsNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MessageReceive", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ErrorCount") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastUpdateTime") - .HasColumnType("datetime2"); - - b.Property("MessageContent") - .HasColumnType("nvarchar(max)"); - - b.Property("MessageFileName") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveStatus") - .HasColumnType("int"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MessageReceive"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,6)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PrhHist", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AsnQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasColumnType("nvarchar(max)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Line") - .HasColumnType("int"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Lot") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,6)"); - - b.Property("PackageNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PalletNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Part") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PoSite") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveType") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Request") - .HasColumnType("nvarchar(max)"); - - b.Property("Rev") - .HasColumnType("nvarchar(max)"); - - b.Property("Rma_type") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("ShipTo") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasColumnType("nvarchar(max)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("Vendor") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorLot") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PrhHist"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReceiptMstrId"); - - b.ToTable("DataExchange_ReceiptDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcTime") - .HasColumnType("datetime2"); - - b.Property("RcWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReceiptMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReturnMstrId"); - - b.ToTable("DataExchange_ReturnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RtNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RtTime") - .HasColumnType("datetime2"); - - b.Property("RtWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReturnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("UserClaims") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Properties") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Scopes") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Secrets") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("UserClaims") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("Properties") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Claims") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedCorsOrigins") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedGrantTypes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("IdentityProviderRestrictions") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("PostLogoutRedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Properties") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("RedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedScopes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("ClientSecrets") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("UserClaims") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("Properties") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", null) - .WithMany("Details") - .HasForeignKey("ReceiptMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", null) - .WithMany("Details") - .HasForeignKey("ReturnMstrId"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Navigation("Properties"); - - b.Navigation("Scopes"); - - b.Navigation("Secrets"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Navigation("AllowedCorsOrigins"); - - b.Navigation("AllowedGrantTypes"); - - b.Navigation("AllowedScopes"); - - b.Navigation("Claims"); - - b.Navigation("ClientSecrets"); - - b.Navigation("IdentityProviderRestrictions"); - - b.Navigation("PostLogoutRedirectUris"); - - b.Navigation("Properties"); - - b.Navigation("RedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/PrhHist_add_Loc_status_20209040932.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/PrhHist_add_Loc_status_20209040932.cs deleted file mode 100644 index de93d74f7..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/PrhHist_add_Loc_status_20209040932.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class PrhHist_add_Loc_status_20209040932 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "LocationCode", - table: "DataExchange_PrhHist", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Status", - table: "DataExchange_PrhHist", - type: "int", - nullable: false, - defaultValue: 0); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "LocationCode", - table: "DataExchange_PrhHist"); - - migrationBuilder.DropColumn( - name: "Status", - table: "DataExchange_PrhHist"); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn.Designer.cs deleted file mode 100644 index 83f43f543..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn.Designer.cs +++ /dev/null @@ -1,1968 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220613083226_ReceiptReturn")] - partial class ReceiptReturn - { - 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.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasColumnType("nvarchar(max)"); - - b.Property("Lot") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("ReceiptMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorLot") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ReceiptMstrId"); - - b.ToTable("ReceiptDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasColumnType("nvarchar(max)"); - - b.Property("Company") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasColumnType("nvarchar(max)"); - - b.Property("RcNbr") - .HasColumnType("nvarchar(max)"); - - b.Property("RcTime") - .HasColumnType("datetime2"); - - b.Property("RcWorker") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Receipts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasColumnType("nvarchar(max)"); - - b.Property("Lot") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorLot") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ReturnMstrId"); - - b.ToTable("ReturnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasColumnType("nvarchar(max)"); - - b.Property("Company") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RtNbr") - .HasColumnType("nvarchar(max)"); - - b.Property("RtTime") - .HasColumnType("datetime2"); - - b.Property("RtWorker") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Returns"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", null) - .WithMany("Details") - .HasForeignKey("ReceiptMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", null) - .WithMany("Details") - .HasForeignKey("ReturnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn.cs deleted file mode 100644 index cbaa5e8bc..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn.cs +++ /dev/null @@ -1,156 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class ReceiptReturn : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Receipts", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(max)", nullable: true), - Site = table.Column(type: "nvarchar(max)", nullable: true), - PoNbr = table.Column(type: "nvarchar(max)", nullable: true), - RpNbr = table.Column(type: "nvarchar(max)", nullable: true), - AsnNbr = table.Column(type: "nvarchar(max)", nullable: true), - RcNbr = table.Column(type: "nvarchar(max)", nullable: true), - RcTime = table.Column(type: "datetime2", nullable: false), - RcWorker = table.Column(type: "nvarchar(max)", nullable: true), - Whse = table.Column(type: "nvarchar(max)", nullable: true), - VendorCode = table.Column(type: "nvarchar(max)", nullable: true), - Remark = 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), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Receipts", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Returns", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(max)", nullable: true), - Site = table.Column(type: "nvarchar(max)", nullable: true), - PoNbr = table.Column(type: "nvarchar(max)", nullable: true), - AsnNbr = table.Column(type: "nvarchar(max)", nullable: true), - RtNbr = table.Column(type: "nvarchar(max)", nullable: true), - RtTime = table.Column(type: "datetime2", nullable: false), - RtWorker = table.Column(type: "nvarchar(max)", nullable: true), - Whse = table.Column(type: "nvarchar(max)", nullable: true), - VendorCode = table.Column(type: "nvarchar(max)", nullable: true), - Remark = 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), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Returns", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "ReceiptDet", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoLine = table.Column(type: "int", nullable: false), - PartCode = table.Column(type: "nvarchar(max)", nullable: true), - PackingCode = table.Column(type: "nvarchar(max)", nullable: true), - ContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - Lot = table.Column(type: "nvarchar(max)", nullable: true), - VendorLot = table.Column(type: "nvarchar(max)", nullable: true), - ProductionDate = table.Column(type: "nvarchar(max)", nullable: true), - Loc = table.Column(type: "nvarchar(max)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Um = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - ReceiptMstrId = table.Column(type: "uniqueidentifier", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_ReceiptDet", x => x.Id); - table.ForeignKey( - name: "FK_ReceiptDet_Receipts_ReceiptMstrId", - column: x => x.ReceiptMstrId, - principalTable: "Receipts", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "ReturnDet", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoLine = table.Column(type: "int", nullable: false), - PartCode = table.Column(type: "nvarchar(max)", nullable: true), - PackingCode = table.Column(type: "nvarchar(max)", nullable: true), - ContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - Lot = table.Column(type: "nvarchar(max)", nullable: true), - VendorLot = table.Column(type: "nvarchar(max)", nullable: true), - ProductionDate = table.Column(type: "nvarchar(max)", nullable: true), - Loc = table.Column(type: "nvarchar(max)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Um = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - ReturnMstrId = table.Column(type: "uniqueidentifier", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_ReturnDet", x => x.Id); - table.ForeignKey( - name: "FK_ReturnDet_Returns_ReturnMstrId", - column: x => x.ReturnMstrId, - principalTable: "Returns", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateIndex( - name: "IX_ReceiptDet_ReceiptMstrId", - table: "ReceiptDet", - column: "ReceiptMstrId"); - - migrationBuilder.CreateIndex( - name: "IX_ReturnDet_ReturnMstrId", - table: "ReturnDet", - column: "ReturnMstrId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "ReceiptDet"); - - migrationBuilder.DropTable( - name: "ReturnDet"); - - migrationBuilder.DropTable( - name: "Receipts"); - - migrationBuilder.DropTable( - name: "Returns"); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn1.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn1.Designer.cs deleted file mode 100644 index 881ee7552..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn1.Designer.cs +++ /dev/null @@ -1,2007 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220613083405_ReceiptReturn1")] - partial class ReceiptReturn1 - { - 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.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReceiptMstrId"); - - b.ToTable("DataExchange_ReceiptDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcTime") - .HasColumnType("datetime2"); - - b.Property("RcWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReceiptMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReturnMstrId"); - - b.ToTable("DataExchange_ReturnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RtNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RtTime") - .HasColumnType("datetime2"); - - b.Property("RtWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReturnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", null) - .WithMany("Details") - .HasForeignKey("ReceiptMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", null) - .WithMany("Details") - .HasForeignKey("ReturnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn1.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn1.cs deleted file mode 100644 index 5da51a955..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/ReceiptReturn1.cs +++ /dev/null @@ -1,884 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class ReceiptReturn1 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_ReceiptDet_Receipts_ReceiptMstrId", - table: "ReceiptDet"); - - migrationBuilder.DropForeignKey( - name: "FK_ReturnDet_Returns_ReturnMstrId", - table: "ReturnDet"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Returns", - table: "Returns"); - - migrationBuilder.DropPrimaryKey( - name: "PK_ReturnDet", - table: "ReturnDet"); - - migrationBuilder.DropPrimaryKey( - name: "PK_Receipts", - table: "Receipts"); - - migrationBuilder.DropPrimaryKey( - name: "PK_ReceiptDet", - table: "ReceiptDet"); - - migrationBuilder.RenameTable( - name: "Returns", - newName: "DataExchange_ReturnMstr"); - - migrationBuilder.RenameTable( - name: "ReturnDet", - newName: "DataExchange_ReturnDet"); - - migrationBuilder.RenameTable( - name: "Receipts", - newName: "DataExchange_ReceiptMstr"); - - migrationBuilder.RenameTable( - name: "ReceiptDet", - newName: "DataExchange_ReceiptDet"); - - migrationBuilder.RenameIndex( - name: "IX_ReturnDet_ReturnMstrId", - table: "DataExchange_ReturnDet", - newName: "IX_DataExchange_ReturnDet_ReturnMstrId"); - - migrationBuilder.RenameIndex( - name: "IX_ReceiptDet_ReceiptMstrId", - table: "DataExchange_ReceiptDet", - newName: "IX_DataExchange_ReceiptDet_ReceiptMstrId"); - - migrationBuilder.AlterColumn( - name: "Whse", - table: "DataExchange_ReturnMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VendorCode", - table: "DataExchange_ReturnMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Site", - table: "DataExchange_ReturnMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RtWorker", - table: "DataExchange_ReturnMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RtNbr", - table: "DataExchange_ReturnMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PoNbr", - table: "DataExchange_ReturnMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Company", - table: "DataExchange_ReturnMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AsnNbr", - table: "DataExchange_ReturnMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VendorLot", - table: "DataExchange_ReturnDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Um", - table: "DataExchange_ReturnDet", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_ReturnDet", - type: "decimal(18,6)", - precision: 18, - scale: 6, - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "ProductionDate", - table: "DataExchange_ReturnDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "DataExchange_ReturnDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PackingCode", - table: "DataExchange_ReturnDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Lot", - table: "DataExchange_ReturnDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Loc", - table: "DataExchange_ReturnDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ContainerCode", - table: "DataExchange_ReturnDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Whse", - table: "DataExchange_ReceiptMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VendorCode", - table: "DataExchange_ReceiptMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Site", - table: "DataExchange_ReceiptMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RpNbr", - table: "DataExchange_ReceiptMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RcWorker", - table: "DataExchange_ReceiptMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RcNbr", - table: "DataExchange_ReceiptMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PoNbr", - table: "DataExchange_ReceiptMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Company", - table: "DataExchange_ReceiptMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AsnNbr", - table: "DataExchange_ReceiptMstr", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VendorLot", - table: "DataExchange_ReceiptDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Um", - table: "DataExchange_ReceiptDet", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "DataExchange_ReceiptDet", - type: "decimal(18,6)", - precision: 18, - scale: 6, - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "ProductionDate", - table: "DataExchange_ReceiptDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "DataExchange_ReceiptDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PackingCode", - table: "DataExchange_ReceiptDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Lot", - table: "DataExchange_ReceiptDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Loc", - table: "DataExchange_ReceiptDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ContainerCode", - table: "DataExchange_ReceiptDet", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddPrimaryKey( - name: "PK_DataExchange_ReturnMstr", - table: "DataExchange_ReturnMstr", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_DataExchange_ReturnDet", - table: "DataExchange_ReturnDet", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_DataExchange_ReceiptMstr", - table: "DataExchange_ReceiptMstr", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_DataExchange_ReceiptDet", - table: "DataExchange_ReceiptDet", - column: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_DataExchange_ReceiptDet_DataExchange_ReceiptMstr_ReceiptMstrId", - table: "DataExchange_ReceiptDet", - column: "ReceiptMstrId", - principalTable: "DataExchange_ReceiptMstr", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - - migrationBuilder.AddForeignKey( - name: "FK_DataExchange_ReturnDet_DataExchange_ReturnMstr_ReturnMstrId", - table: "DataExchange_ReturnDet", - column: "ReturnMstrId", - principalTable: "DataExchange_ReturnMstr", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_DataExchange_ReceiptDet_DataExchange_ReceiptMstr_ReceiptMstrId", - table: "DataExchange_ReceiptDet"); - - migrationBuilder.DropForeignKey( - name: "FK_DataExchange_ReturnDet_DataExchange_ReturnMstr_ReturnMstrId", - table: "DataExchange_ReturnDet"); - - migrationBuilder.DropPrimaryKey( - name: "PK_DataExchange_ReturnMstr", - table: "DataExchange_ReturnMstr"); - - migrationBuilder.DropPrimaryKey( - name: "PK_DataExchange_ReturnDet", - table: "DataExchange_ReturnDet"); - - migrationBuilder.DropPrimaryKey( - name: "PK_DataExchange_ReceiptMstr", - table: "DataExchange_ReceiptMstr"); - - migrationBuilder.DropPrimaryKey( - name: "PK_DataExchange_ReceiptDet", - table: "DataExchange_ReceiptDet"); - - migrationBuilder.RenameTable( - name: "DataExchange_ReturnMstr", - newName: "Returns"); - - migrationBuilder.RenameTable( - name: "DataExchange_ReturnDet", - newName: "ReturnDet"); - - migrationBuilder.RenameTable( - name: "DataExchange_ReceiptMstr", - newName: "Receipts"); - - migrationBuilder.RenameTable( - name: "DataExchange_ReceiptDet", - newName: "ReceiptDet"); - - migrationBuilder.RenameIndex( - name: "IX_DataExchange_ReturnDet_ReturnMstrId", - table: "ReturnDet", - newName: "IX_ReturnDet_ReturnMstrId"); - - migrationBuilder.RenameIndex( - name: "IX_DataExchange_ReceiptDet_ReceiptMstrId", - table: "ReceiptDet", - newName: "IX_ReceiptDet_ReceiptMstrId"); - - migrationBuilder.AlterColumn( - name: "Whse", - table: "Returns", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VendorCode", - table: "Returns", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Site", - table: "Returns", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RtWorker", - table: "Returns", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RtNbr", - table: "Returns", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PoNbr", - table: "Returns", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Company", - table: "Returns", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AsnNbr", - table: "Returns", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VendorLot", - table: "ReturnDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Um", - table: "ReturnDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "ReturnDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldPrecision: 18, - oldScale: 6); - - migrationBuilder.AlterColumn( - name: "ProductionDate", - table: "ReturnDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "ReturnDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PackingCode", - table: "ReturnDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Lot", - table: "ReturnDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Loc", - table: "ReturnDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ContainerCode", - table: "ReturnDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Whse", - table: "Receipts", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VendorCode", - table: "Receipts", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Site", - table: "Receipts", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RpNbr", - table: "Receipts", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RcWorker", - table: "Receipts", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RcNbr", - table: "Receipts", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PoNbr", - table: "Receipts", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Company", - table: "Receipts", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AsnNbr", - table: "Receipts", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VendorLot", - table: "ReceiptDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Um", - table: "ReceiptDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "ReceiptDet", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldPrecision: 18, - oldScale: 6); - - migrationBuilder.AlterColumn( - name: "ProductionDate", - table: "ReceiptDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PartCode", - table: "ReceiptDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PackingCode", - table: "ReceiptDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Lot", - table: "ReceiptDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Loc", - table: "ReceiptDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ContainerCode", - table: "ReceiptDet", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AddPrimaryKey( - name: "PK_Returns", - table: "Returns", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_ReturnDet", - table: "ReturnDet", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Receipts", - table: "Receipts", - column: "Id"); - - migrationBuilder.AddPrimaryKey( - name: "PK_ReceiptDet", - table: "ReceiptDet", - column: "Id"); - - migrationBuilder.AddForeignKey( - name: "FK_ReceiptDet_Receipts_ReceiptMstrId", - table: "ReceiptDet", - column: "ReceiptMstrId", - principalTable: "Receipts", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - - migrationBuilder.AddForeignKey( - name: "FK_ReturnDet_Returns_ReturnMstrId", - table: "ReturnDet", - column: "ReturnMstrId", - principalTable: "Returns", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_0608.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_0608.Designer.cs deleted file mode 100644 index f8bfb7560..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_0608.Designer.cs +++ /dev/null @@ -1,1756 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220608063823_0608")] - partial class _0608 - { - 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.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MesProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .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("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("InfoType") - .HasColumnType("nvarchar(max)"); - - b.Property("L7PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("MesProductL7PartsNotes"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_0608.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_0608.cs deleted file mode 100644 index 1c0e5e2eb..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_0608.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class _0608 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "MesProductL7PartsNotes", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RowID = table.Column(type: "int", nullable: false), - InfoType = table.Column(type: "nvarchar(max)", nullable: true), - ProductNo = table.Column(type: "nvarchar(max)", nullable: true), - ProjectNo = 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), - L7PartCode = 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)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_MesProductL7PartsNotes", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "MesProductL7PartsNotes"); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_20220524.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_20220524.Designer.cs deleted file mode 100644 index e1c3d7e05..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_20220524.Designer.cs +++ /dev/null @@ -1,1689 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220524051130_20220524")] - partial class _20220524 - { - 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.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_20220524.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_20220524.cs deleted file mode 100644 index 19c41e40f..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/_20220524.cs +++ /dev/null @@ -1,16 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class _20220524 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/abp.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/abp.Designer.cs deleted file mode 100644 index 74d61774b..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/abp.Designer.cs +++ /dev/null @@ -1,4350 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220713081810_abp")] - partial class abp - { - 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("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasColumnType("nvarchar(max)"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpFeatureValues"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedAccessTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Type"); - - b.ToTable("IdentityServerApiResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiResourceId", "Key", "Value"); - - b.ToTable("IdentityServerApiResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Scope"); - - b.ToTable("IdentityServerApiResourceScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ApiResourceId", "Type", "Value"); - - b.ToTable("IdentityServerApiResourceSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiScopeId", "Type"); - - b.ToTable("IdentityServerApiScopeClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiScopeId", "Key", "Value"); - - b.ToTable("IdentityServerApiScopeProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AbsoluteRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenType") - .HasColumnType("int"); - - b.Property("AllowAccessTokensViaBrowser") - .HasColumnType("bit"); - - b.Property("AllowOfflineAccess") - .HasColumnType("bit"); - - b.Property("AllowPlainTextPkce") - .HasColumnType("bit"); - - b.Property("AllowRememberConsent") - .HasColumnType("bit"); - - b.Property("AllowedIdentityTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AlwaysIncludeUserClaimsInIdToken") - .HasColumnType("bit"); - - b.Property("AlwaysSendClientClaims") - .HasColumnType("bit"); - - b.Property("AuthorizationCodeLifetime") - .HasColumnType("int"); - - b.Property("BackChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("BackChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ClientClaimsPrefix") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentLifetime") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DeviceCodeLifetime") - .HasColumnType("int"); - - b.Property("EnableLocalLogin") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FrontChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("FrontChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("IdentityTokenLifetime") - .HasColumnType("int"); - - b.Property("IncludeJwtId") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("PairWiseSubjectSalt") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProtocolType") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RefreshTokenExpiration") - .HasColumnType("int"); - - b.Property("RefreshTokenUsage") - .HasColumnType("int"); - - b.Property("RequireClientSecret") - .HasColumnType("bit"); - - b.Property("RequireConsent") - .HasColumnType("bit"); - - b.Property("RequirePkce") - .HasColumnType("bit"); - - b.Property("RequireRequestObject") - .HasColumnType("bit"); - - b.Property("SlidingRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("UpdateAccessTokenClaimsOnRefresh") - .HasColumnType("bit"); - - b.Property("UserCodeType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserSsoLifetime") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("IdentityServerClients"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Origin") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.HasKey("ClientId", "Origin"); - - b.ToTable("IdentityServerClientCorsOrigins"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("GrantType") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "GrantType"); - - b.ToTable("IdentityServerClientGrantTypes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Provider") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Provider"); - - b.ToTable("IdentityServerClientIdPRestrictions"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PostLogoutRedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "PostLogoutRedirectUri"); - - b.ToTable("IdentityServerClientPostLogoutRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "Key", "Value"); - - b.ToTable("IdentityServerClientProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("RedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "RedirectUri"); - - b.ToTable("IdentityServerClientRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Scope"); - - b.ToTable("IdentityServerClientScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("DeviceCode") - .IsUnique(); - - b.HasIndex("Expiration"); - - b.HasIndex("UserCode"); - - b.ToTable("IdentityServerDeviceFlowCodes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => - { - b.Property("Key") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsumedTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Key"); - - b.HasIndex("Expiration"); - - b.HasIndex("SubjectId", "ClientId", "Type"); - - b.HasIndex("SubjectId", "SessionId", "Type"); - - b.ToTable("IdentityServerPersistedGrants"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerIdentityResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("IdentityResourceId", "Type"); - - b.ToTable("IdentityServerIdentityResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("IdentityResourceId", "Key", "Value"); - - b.ToTable("IdentityServerIdentityResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpPermissionGrants"); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", 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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MesProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .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("L7Part") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MesProductL7PartsNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReceiptMstrId"); - - b.ToTable("DataExchange_ReceiptDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcTime") - .HasColumnType("datetime2"); - - b.Property("RcWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReceiptMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReturnMstrId"); - - b.ToTable("DataExchange_ReturnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RtNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RtTime") - .HasColumnType("datetime2"); - - b.Property("RtWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReturnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("UserClaims") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Properties") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Scopes") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Secrets") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("UserClaims") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("Properties") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Claims") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedCorsOrigins") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedGrantTypes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("IdentityProviderRestrictions") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("PostLogoutRedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Properties") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("RedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedScopes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("ClientSecrets") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("UserClaims") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("Properties") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", null) - .WithMany("Details") - .HasForeignKey("ReceiptMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", null) - .WithMany("Details") - .HasForeignKey("ReturnMstrId"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Navigation("Properties"); - - b.Navigation("Scopes"); - - b.Navigation("Secrets"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Navigation("AllowedCorsOrigins"); - - b.Navigation("AllowedGrantTypes"); - - b.Navigation("AllowedScopes"); - - b.Navigation("Claims"); - - b.Navigation("ClientSecrets"); - - b.Navigation("IdentityProviderRestrictions"); - - b.Navigation("PostLogoutRedirectUris"); - - b.Navigation("Properties"); - - b.Navigation("RedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/abp.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/abp.cs deleted file mode 100644 index 5deeccee2..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/abp.cs +++ /dev/null @@ -1,1361 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class abp : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "AbpAuditLogs", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ApplicationName = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), - UserId = table.Column(type: "uniqueidentifier", nullable: true), - UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - TenantName = table.Column(type: "nvarchar(max)", nullable: true), - ImpersonatorUserId = table.Column(type: "uniqueidentifier", nullable: true), - ImpersonatorTenantId = table.Column(type: "uniqueidentifier", nullable: true), - ExecutionTime = table.Column(type: "datetime2", nullable: false), - ExecutionDuration = table.Column(type: "int", nullable: false), - ClientIpAddress = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ClientName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), - ClientId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CorrelationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - BrowserInfo = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), - HttpMethod = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), - Url = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - Exceptions = table.Column(type: "nvarchar(max)", nullable: true), - Comments = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - HttpStatusCode = table.Column(type: "int", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpAuditLogs", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpBackgroundJobs", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - JobName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - JobArgs = table.Column(type: "nvarchar(max)", maxLength: 1048576, nullable: false), - TryCount = table.Column(type: "smallint", nullable: false, defaultValue: (short)0), - CreationTime = table.Column(type: "datetime2", nullable: false), - NextTryTime = table.Column(type: "datetime2", nullable: false), - LastTryTime = table.Column(type: "datetime2", nullable: true), - IsAbandoned = table.Column(type: "bit", nullable: false, defaultValue: false), - Priority = table.Column(type: "tinyint", nullable: false, defaultValue: (byte)15), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpBackgroundJobs", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpClaimTypes", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - Required = table.Column(type: "bit", nullable: false), - IsStatic = table.Column(type: "bit", nullable: false), - Regex = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), - RegexDescription = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), - Description = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - ValueType = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpClaimTypes", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpFeatureValues", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - Value = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpFeatureValues", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpLinkUsers", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SourceUserId = table.Column(type: "uniqueidentifier", nullable: false), - SourceTenantId = table.Column(type: "uniqueidentifier", nullable: true), - TargetUserId = table.Column(type: "uniqueidentifier", nullable: false), - TargetTenantId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpLinkUsers", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpOrganizationUnits", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - ParentId = table.Column(type: "uniqueidentifier", nullable: true), - Code = table.Column(type: "nvarchar(95)", maxLength: 95, nullable: false), - DisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, 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), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpOrganizationUnits", x => x.Id); - table.ForeignKey( - name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId", - column: x => x.ParentId, - principalTable: "AbpOrganizationUnits", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateTable( - name: "AbpPermissionGrants", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpPermissionGrants", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpRoles", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - NormalizedName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - IsDefault = table.Column(type: "bit", nullable: false), - IsStatic = table.Column(type: "bit", nullable: false), - IsPublic = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpRoles", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpSecurityLogs", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - ApplicationName = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), - Identity = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), - Action = table.Column(type: "nvarchar(96)", maxLength: 96, nullable: true), - UserId = table.Column(type: "uniqueidentifier", nullable: true), - UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - TenantName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ClientId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CorrelationId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ClientIpAddress = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - BrowserInfo = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpSecurityLogs", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpSettings", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - Value = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: false), - ProviderName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProviderKey = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpSettings", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpTenants", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = 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), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpTenants", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "AbpUsers", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - UserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - NormalizedUserName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Surname = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Email = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - NormalizedEmail = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - EmailConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false), - PasswordHash = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - SecurityStamp = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - IsExternal = table.Column(type: "bit", nullable: false, defaultValue: false), - PhoneNumber = table.Column(type: "nvarchar(16)", maxLength: 16, nullable: true), - PhoneNumberConfirmed = table.Column(type: "bit", nullable: false, defaultValue: false), - TwoFactorEnabled = table.Column(type: "bit", nullable: false, defaultValue: false), - LockoutEnd = table.Column(type: "datetimeoffset", nullable: true), - LockoutEnabled = table.Column(type: "bit", nullable: false, defaultValue: false), - AccessFailedCount = table.Column(type: "int", nullable: false, defaultValue: 0), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUsers", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerApiResources", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - AllowedAccessTokenSigningAlgorithms = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - ShowInDiscoveryDocument = 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), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerApiResources", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerApiScopes", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Required = table.Column(type: "bit", nullable: false), - Emphasize = table.Column(type: "bit", nullable: false), - ShowInDiscoveryDocument = 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), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerApiScopes", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerClients", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - ClientName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - ClientUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), - LogoUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - ProtocolType = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - RequireClientSecret = table.Column(type: "bit", nullable: false), - RequireConsent = table.Column(type: "bit", nullable: false), - AllowRememberConsent = table.Column(type: "bit", nullable: false), - AlwaysIncludeUserClaimsInIdToken = table.Column(type: "bit", nullable: false), - RequirePkce = table.Column(type: "bit", nullable: false), - AllowPlainTextPkce = table.Column(type: "bit", nullable: false), - RequireRequestObject = table.Column(type: "bit", nullable: false), - AllowAccessTokensViaBrowser = table.Column(type: "bit", nullable: false), - FrontChannelLogoutUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), - FrontChannelLogoutSessionRequired = table.Column(type: "bit", nullable: false), - BackChannelLogoutUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), - BackChannelLogoutSessionRequired = table.Column(type: "bit", nullable: false), - AllowOfflineAccess = table.Column(type: "bit", nullable: false), - IdentityTokenLifetime = table.Column(type: "int", nullable: false), - AllowedIdentityTokenSigningAlgorithms = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - AccessTokenLifetime = table.Column(type: "int", nullable: false), - AuthorizationCodeLifetime = table.Column(type: "int", nullable: false), - ConsentLifetime = table.Column(type: "int", nullable: true), - AbsoluteRefreshTokenLifetime = table.Column(type: "int", nullable: false), - SlidingRefreshTokenLifetime = table.Column(type: "int", nullable: false), - RefreshTokenUsage = table.Column(type: "int", nullable: false), - UpdateAccessTokenClaimsOnRefresh = table.Column(type: "bit", nullable: false), - RefreshTokenExpiration = table.Column(type: "int", nullable: false), - AccessTokenType = table.Column(type: "int", nullable: false), - EnableLocalLogin = table.Column(type: "bit", nullable: false), - IncludeJwtId = table.Column(type: "bit", nullable: false), - AlwaysSendClientClaims = table.Column(type: "bit", nullable: false), - ClientClaimsPrefix = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - PairWiseSubjectSalt = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - UserSsoLifetime = table.Column(type: "int", nullable: true), - UserCodeType = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - DeviceCodeLifetime = 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), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerClients", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerDeviceFlowCodes", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - DeviceCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - UserCode = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - SubjectId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - SessionId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Expiration = table.Column(type: "datetime2", nullable: false), - Data = table.Column(type: "nvarchar(max)", maxLength: 50000, 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) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerDeviceFlowCodes", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerIdentityResources", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - DisplayName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - Required = table.Column(type: "bit", nullable: false), - Emphasize = table.Column(type: "bit", nullable: false), - ShowInDiscoveryDocument = 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), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerIdentityResources", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerPersistedGrants", - columns: table => new - { - Key = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - SubjectId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - SessionId = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - ClientId = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - Description = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - Expiration = table.Column(type: "datetime2", nullable: true), - ConsumedTime = table.Column(type: "datetime2", nullable: true), - Data = table.Column(type: "nvarchar(max)", maxLength: 50000, nullable: false), - 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) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerPersistedGrants", x => x.Key); - }); - - migrationBuilder.CreateTable( - name: "AbpAuditLogActions", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - AuditLogId = table.Column(type: "uniqueidentifier", nullable: false), - ServiceName = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: true), - MethodName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true), - Parameters = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), - ExecutionTime = table.Column(type: "datetime2", nullable: false), - ExecutionDuration = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpAuditLogActions", x => x.Id); - table.ForeignKey( - name: "FK_AbpAuditLogActions_AbpAuditLogs_AuditLogId", - column: x => x.AuditLogId, - principalTable: "AbpAuditLogs", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpEntityChanges", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - AuditLogId = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - ChangeTime = table.Column(type: "datetime2", nullable: false), - ChangeType = table.Column(type: "tinyint", nullable: false), - EntityTenantId = table.Column(type: "uniqueidentifier", nullable: true), - EntityId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - EntityTypeFullName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityChanges", x => x.Id); - table.ForeignKey( - name: "FK_AbpEntityChanges_AbpAuditLogs_AuditLogId", - column: x => x.AuditLogId, - principalTable: "AbpAuditLogs", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpOrganizationUnitRoles", - columns: table => new - { - RoleId = table.Column(type: "uniqueidentifier", nullable: false), - OrganizationUnitId = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpOrganizationUnitRoles", x => new { x.OrganizationUnitId, x.RoleId }); - table.ForeignKey( - name: "FK_AbpOrganizationUnitRoles_AbpOrganizationUnits_OrganizationUnitId", - column: x => x.OrganizationUnitId, - principalTable: "AbpOrganizationUnits", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_AbpOrganizationUnitRoles_AbpRoles_RoleId", - column: x => x.RoleId, - principalTable: "AbpRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpRoleClaims", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RoleId = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - ClaimType = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - ClaimValue = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpRoleClaims", x => x.Id); - table.ForeignKey( - name: "FK_AbpRoleClaims_AbpRoles_RoleId", - column: x => x.RoleId, - principalTable: "AbpRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpTenantConnectionStrings", - columns: table => new - { - TenantId = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Value = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpTenantConnectionStrings", x => new { x.TenantId, x.Name }); - table.ForeignKey( - name: "FK_AbpTenantConnectionStrings_AbpTenants_TenantId", - column: x => x.TenantId, - principalTable: "AbpTenants", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserClaims", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - UserId = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - ClaimType = table.Column(type: "nvarchar(256)", maxLength: 256, nullable: false), - ClaimValue = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserClaims", x => x.Id); - table.ForeignKey( - name: "FK_AbpUserClaims_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserLogins", - columns: table => new - { - UserId = table.Column(type: "uniqueidentifier", nullable: false), - LoginProvider = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - ProviderKey = table.Column(type: "nvarchar(196)", maxLength: 196, nullable: false), - ProviderDisplayName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserLogins", x => new { x.UserId, x.LoginProvider }); - table.ForeignKey( - name: "FK_AbpUserLogins_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserOrganizationUnits", - columns: table => new - { - UserId = table.Column(type: "uniqueidentifier", nullable: false), - OrganizationUnitId = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserOrganizationUnits", x => new { x.OrganizationUnitId, x.UserId }); - table.ForeignKey( - name: "FK_AbpUserOrganizationUnits_AbpOrganizationUnits_OrganizationUnitId", - column: x => x.OrganizationUnitId, - principalTable: "AbpOrganizationUnits", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_AbpUserOrganizationUnits_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserRoles", - columns: table => new - { - UserId = table.Column(type: "uniqueidentifier", nullable: false), - RoleId = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserRoles", x => new { x.UserId, x.RoleId }); - table.ForeignKey( - name: "FK_AbpUserRoles_AbpRoles_RoleId", - column: x => x.RoleId, - principalTable: "AbpRoles", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - table.ForeignKey( - name: "FK_AbpUserRoles_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpUserTokens", - columns: table => new - { - UserId = table.Column(type: "uniqueidentifier", nullable: false), - LoginProvider = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Value = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpUserTokens", x => new { x.UserId, x.LoginProvider, x.Name }); - table.ForeignKey( - name: "FK_AbpUserTokens_AbpUsers_UserId", - column: x => x.UserId, - principalTable: "AbpUsers", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerApiResourceClaims", - columns: table => new - { - Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerApiResourceClaims", x => new { x.ApiResourceId, x.Type }); - table.ForeignKey( - name: "FK_IdentityServerApiResourceClaims_IdentityServerApiResources_ApiResourceId", - column: x => x.ApiResourceId, - principalTable: "IdentityServerApiResources", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerApiResourceProperties", - columns: table => new - { - ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), - Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), - Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerApiResourceProperties", x => new { x.ApiResourceId, x.Key, x.Value }); - table.ForeignKey( - name: "FK_IdentityServerApiResourceProperties_IdentityServerApiResources_ApiResourceId", - column: x => x.ApiResourceId, - principalTable: "IdentityServerApiResources", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerApiResourceScopes", - columns: table => new - { - ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), - Scope = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerApiResourceScopes", x => new { x.ApiResourceId, x.Scope }); - table.ForeignKey( - name: "FK_IdentityServerApiResourceScopes_IdentityServerApiResources_ApiResourceId", - column: x => x.ApiResourceId, - principalTable: "IdentityServerApiResources", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerApiResourceSecrets", - columns: table => new - { - Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), - Value = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: false), - ApiResourceId = table.Column(type: "uniqueidentifier", nullable: false), - Description = table.Column(type: "nvarchar(1000)", maxLength: 1000, nullable: true), - Expiration = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerApiResourceSecrets", x => new { x.ApiResourceId, x.Type, x.Value }); - table.ForeignKey( - name: "FK_IdentityServerApiResourceSecrets_IdentityServerApiResources_ApiResourceId", - column: x => x.ApiResourceId, - principalTable: "IdentityServerApiResources", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerApiScopeClaims", - columns: table => new - { - Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - ApiScopeId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerApiScopeClaims", x => new { x.ApiScopeId, x.Type }); - table.ForeignKey( - name: "FK_IdentityServerApiScopeClaims_IdentityServerApiScopes_ApiScopeId", - column: x => x.ApiScopeId, - principalTable: "IdentityServerApiScopes", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerApiScopeProperties", - columns: table => new - { - ApiScopeId = table.Column(type: "uniqueidentifier", nullable: false), - Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), - Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerApiScopeProperties", x => new { x.ApiScopeId, x.Key, x.Value }); - table.ForeignKey( - name: "FK_IdentityServerApiScopeProperties_IdentityServerApiScopes_ApiScopeId", - column: x => x.ApiScopeId, - principalTable: "IdentityServerApiScopes", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerClientClaims", - columns: table => new - { - ClientId = table.Column(type: "uniqueidentifier", nullable: false), - Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), - Value = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerClientClaims", x => new { x.ClientId, x.Type, x.Value }); - table.ForeignKey( - name: "FK_IdentityServerClientClaims_IdentityServerClients_ClientId", - column: x => x.ClientId, - principalTable: "IdentityServerClients", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerClientCorsOrigins", - columns: table => new - { - ClientId = table.Column(type: "uniqueidentifier", nullable: false), - Origin = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerClientCorsOrigins", x => new { x.ClientId, x.Origin }); - table.ForeignKey( - name: "FK_IdentityServerClientCorsOrigins_IdentityServerClients_ClientId", - column: x => x.ClientId, - principalTable: "IdentityServerClients", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerClientGrantTypes", - columns: table => new - { - ClientId = table.Column(type: "uniqueidentifier", nullable: false), - GrantType = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerClientGrantTypes", x => new { x.ClientId, x.GrantType }); - table.ForeignKey( - name: "FK_IdentityServerClientGrantTypes_IdentityServerClients_ClientId", - column: x => x.ClientId, - principalTable: "IdentityServerClients", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerClientIdPRestrictions", - columns: table => new - { - ClientId = table.Column(type: "uniqueidentifier", nullable: false), - Provider = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerClientIdPRestrictions", x => new { x.ClientId, x.Provider }); - table.ForeignKey( - name: "FK_IdentityServerClientIdPRestrictions_IdentityServerClients_ClientId", - column: x => x.ClientId, - principalTable: "IdentityServerClients", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerClientPostLogoutRedirectUris", - columns: table => new - { - ClientId = table.Column(type: "uniqueidentifier", nullable: false), - PostLogoutRedirectUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerClientPostLogoutRedirectUris", x => new { x.ClientId, x.PostLogoutRedirectUri }); - table.ForeignKey( - name: "FK_IdentityServerClientPostLogoutRedirectUris_IdentityServerClients_ClientId", - column: x => x.ClientId, - principalTable: "IdentityServerClients", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerClientProperties", - columns: table => new - { - ClientId = table.Column(type: "uniqueidentifier", nullable: false), - Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), - Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerClientProperties", x => new { x.ClientId, x.Key, x.Value }); - table.ForeignKey( - name: "FK_IdentityServerClientProperties_IdentityServerClients_ClientId", - column: x => x.ClientId, - principalTable: "IdentityServerClients", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerClientRedirectUris", - columns: table => new - { - ClientId = table.Column(type: "uniqueidentifier", nullable: false), - RedirectUri = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerClientRedirectUris", x => new { x.ClientId, x.RedirectUri }); - table.ForeignKey( - name: "FK_IdentityServerClientRedirectUris_IdentityServerClients_ClientId", - column: x => x.ClientId, - principalTable: "IdentityServerClients", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerClientScopes", - columns: table => new - { - ClientId = table.Column(type: "uniqueidentifier", nullable: false), - Scope = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerClientScopes", x => new { x.ClientId, x.Scope }); - table.ForeignKey( - name: "FK_IdentityServerClientScopes_IdentityServerClients_ClientId", - column: x => x.ClientId, - principalTable: "IdentityServerClients", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerClientSecrets", - columns: table => new - { - Type = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), - Value = table.Column(type: "nvarchar(4000)", maxLength: 4000, nullable: false), - ClientId = table.Column(type: "uniqueidentifier", nullable: false), - Description = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: true), - Expiration = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerClientSecrets", x => new { x.ClientId, x.Type, x.Value }); - table.ForeignKey( - name: "FK_IdentityServerClientSecrets_IdentityServerClients_ClientId", - column: x => x.ClientId, - principalTable: "IdentityServerClients", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerIdentityResourceClaims", - columns: table => new - { - Type = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), - IdentityResourceId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerIdentityResourceClaims", x => new { x.IdentityResourceId, x.Type }); - table.ForeignKey( - name: "FK_IdentityServerIdentityResourceClaims_IdentityServerIdentityResources_IdentityResourceId", - column: x => x.IdentityResourceId, - principalTable: "IdentityServerIdentityResources", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "IdentityServerIdentityResourceProperties", - columns: table => new - { - IdentityResourceId = table.Column(type: "uniqueidentifier", nullable: false), - Key = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: false), - Value = table.Column(type: "nvarchar(2000)", maxLength: 2000, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_IdentityServerIdentityResourceProperties", x => new { x.IdentityResourceId, x.Key, x.Value }); - table.ForeignKey( - name: "FK_IdentityServerIdentityResourceProperties_IdentityServerIdentityResources_IdentityResourceId", - column: x => x.IdentityResourceId, - principalTable: "IdentityServerIdentityResources", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "AbpEntityPropertyChanges", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - EntityChangeId = table.Column(type: "uniqueidentifier", nullable: false), - NewValue = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), - OriginalValue = table.Column(type: "nvarchar(512)", maxLength: 512, nullable: true), - PropertyName = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: false), - PropertyTypeFullName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_AbpEntityPropertyChanges", x => x.Id); - table.ForeignKey( - name: "FK_AbpEntityPropertyChanges_AbpEntityChanges_EntityChangeId", - column: x => x.EntityChangeId, - principalTable: "AbpEntityChanges", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogActions_AuditLogId", - table: "AbpAuditLogActions", - column: "AuditLogId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogActions_TenantId_ServiceName_MethodName_ExecutionTime", - table: "AbpAuditLogActions", - columns: new[] { "TenantId", "ServiceName", "MethodName", "ExecutionTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogs_TenantId_ExecutionTime", - table: "AbpAuditLogs", - columns: new[] { "TenantId", "ExecutionTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpAuditLogs_TenantId_UserId_ExecutionTime", - table: "AbpAuditLogs", - columns: new[] { "TenantId", "UserId", "ExecutionTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpBackgroundJobs_IsAbandoned_NextTryTime", - table: "AbpBackgroundJobs", - columns: new[] { "IsAbandoned", "NextTryTime" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChanges_AuditLogId", - table: "AbpEntityChanges", - column: "AuditLogId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityChanges_TenantId_EntityTypeFullName_EntityId", - table: "AbpEntityChanges", - columns: new[] { "TenantId", "EntityTypeFullName", "EntityId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpEntityPropertyChanges_EntityChangeId", - table: "AbpEntityPropertyChanges", - column: "EntityChangeId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpFeatureValues_Name_ProviderName_ProviderKey", - table: "AbpFeatureValues", - columns: new[] { "Name", "ProviderName", "ProviderKey" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpLinkUsers_SourceUserId_SourceTenantId_TargetUserId_TargetTenantId", - table: "AbpLinkUsers", - columns: new[] { "SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId" }, - unique: true, - filter: "[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnitRoles_RoleId_OrganizationUnitId", - table: "AbpOrganizationUnitRoles", - columns: new[] { "RoleId", "OrganizationUnitId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnits_Code", - table: "AbpOrganizationUnits", - column: "Code"); - - migrationBuilder.CreateIndex( - name: "IX_AbpOrganizationUnits_ParentId", - table: "AbpOrganizationUnits", - column: "ParentId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpPermissionGrants_Name_ProviderName_ProviderKey", - table: "AbpPermissionGrants", - columns: new[] { "Name", "ProviderName", "ProviderKey" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoleClaims_RoleId", - table: "AbpRoleClaims", - column: "RoleId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpRoles_NormalizedName", - table: "AbpRoles", - column: "NormalizedName"); - - migrationBuilder.CreateIndex( - name: "IX_AbpSecurityLogs_TenantId_Action", - table: "AbpSecurityLogs", - columns: new[] { "TenantId", "Action" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpSecurityLogs_TenantId_ApplicationName", - table: "AbpSecurityLogs", - columns: new[] { "TenantId", "ApplicationName" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpSecurityLogs_TenantId_Identity", - table: "AbpSecurityLogs", - columns: new[] { "TenantId", "Identity" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpSecurityLogs_TenantId_UserId", - table: "AbpSecurityLogs", - columns: new[] { "TenantId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpSettings_Name_ProviderName_ProviderKey", - table: "AbpSettings", - columns: new[] { "Name", "ProviderName", "ProviderKey" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpTenants_Name", - table: "AbpTenants", - column: "Name"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserClaims_UserId", - table: "AbpUserClaims", - column: "UserId"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserLogins_LoginProvider_ProviderKey", - table: "AbpUserLogins", - columns: new[] { "LoginProvider", "ProviderKey" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserOrganizationUnits_UserId_OrganizationUnitId", - table: "AbpUserOrganizationUnits", - columns: new[] { "UserId", "OrganizationUnitId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUserRoles_RoleId_UserId", - table: "AbpUserRoles", - columns: new[] { "RoleId", "UserId" }); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_Email", - table: "AbpUsers", - column: "Email"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_NormalizedEmail", - table: "AbpUsers", - column: "NormalizedEmail"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_NormalizedUserName", - table: "AbpUsers", - column: "NormalizedUserName"); - - migrationBuilder.CreateIndex( - name: "IX_AbpUsers_UserName", - table: "AbpUsers", - column: "UserName"); - - migrationBuilder.CreateIndex( - name: "IX_IdentityServerClients_ClientId", - table: "IdentityServerClients", - column: "ClientId"); - - migrationBuilder.CreateIndex( - name: "IX_IdentityServerDeviceFlowCodes_DeviceCode", - table: "IdentityServerDeviceFlowCodes", - column: "DeviceCode", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_IdentityServerDeviceFlowCodes_Expiration", - table: "IdentityServerDeviceFlowCodes", - column: "Expiration"); - - migrationBuilder.CreateIndex( - name: "IX_IdentityServerDeviceFlowCodes_UserCode", - table: "IdentityServerDeviceFlowCodes", - column: "UserCode"); - - migrationBuilder.CreateIndex( - name: "IX_IdentityServerPersistedGrants_Expiration", - table: "IdentityServerPersistedGrants", - column: "Expiration"); - - migrationBuilder.CreateIndex( - name: "IX_IdentityServerPersistedGrants_SubjectId_ClientId_Type", - table: "IdentityServerPersistedGrants", - columns: new[] { "SubjectId", "ClientId", "Type" }); - - migrationBuilder.CreateIndex( - name: "IX_IdentityServerPersistedGrants_SubjectId_SessionId_Type", - table: "IdentityServerPersistedGrants", - columns: new[] { "SubjectId", "SessionId", "Type" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "AbpAuditLogActions"); - - migrationBuilder.DropTable( - name: "AbpBackgroundJobs"); - - migrationBuilder.DropTable( - name: "AbpClaimTypes"); - - migrationBuilder.DropTable( - name: "AbpEntityPropertyChanges"); - - migrationBuilder.DropTable( - name: "AbpFeatureValues"); - - migrationBuilder.DropTable( - name: "AbpLinkUsers"); - - migrationBuilder.DropTable( - name: "AbpOrganizationUnitRoles"); - - migrationBuilder.DropTable( - name: "AbpPermissionGrants"); - - migrationBuilder.DropTable( - name: "AbpRoleClaims"); - - migrationBuilder.DropTable( - name: "AbpSecurityLogs"); - - migrationBuilder.DropTable( - name: "AbpSettings"); - - migrationBuilder.DropTable( - name: "AbpTenantConnectionStrings"); - - migrationBuilder.DropTable( - name: "AbpUserClaims"); - - migrationBuilder.DropTable( - name: "AbpUserLogins"); - - migrationBuilder.DropTable( - name: "AbpUserOrganizationUnits"); - - migrationBuilder.DropTable( - name: "AbpUserRoles"); - - migrationBuilder.DropTable( - name: "AbpUserTokens"); - - migrationBuilder.DropTable( - name: "IdentityServerApiResourceClaims"); - - migrationBuilder.DropTable( - name: "IdentityServerApiResourceProperties"); - - migrationBuilder.DropTable( - name: "IdentityServerApiResourceScopes"); - - migrationBuilder.DropTable( - name: "IdentityServerApiResourceSecrets"); - - migrationBuilder.DropTable( - name: "IdentityServerApiScopeClaims"); - - migrationBuilder.DropTable( - name: "IdentityServerApiScopeProperties"); - - migrationBuilder.DropTable( - name: "IdentityServerClientClaims"); - - migrationBuilder.DropTable( - name: "IdentityServerClientCorsOrigins"); - - migrationBuilder.DropTable( - name: "IdentityServerClientGrantTypes"); - - migrationBuilder.DropTable( - name: "IdentityServerClientIdPRestrictions"); - - migrationBuilder.DropTable( - name: "IdentityServerClientPostLogoutRedirectUris"); - - migrationBuilder.DropTable( - name: "IdentityServerClientProperties"); - - migrationBuilder.DropTable( - name: "IdentityServerClientRedirectUris"); - - migrationBuilder.DropTable( - name: "IdentityServerClientScopes"); - - migrationBuilder.DropTable( - name: "IdentityServerClientSecrets"); - - migrationBuilder.DropTable( - name: "IdentityServerDeviceFlowCodes"); - - migrationBuilder.DropTable( - name: "IdentityServerIdentityResourceClaims"); - - migrationBuilder.DropTable( - name: "IdentityServerIdentityResourceProperties"); - - migrationBuilder.DropTable( - name: "IdentityServerPersistedGrants"); - - migrationBuilder.DropTable( - name: "AbpEntityChanges"); - - migrationBuilder.DropTable( - name: "AbpTenants"); - - migrationBuilder.DropTable( - name: "AbpOrganizationUnits"); - - migrationBuilder.DropTable( - name: "AbpRoles"); - - migrationBuilder.DropTable( - name: "AbpUsers"); - - migrationBuilder.DropTable( - name: "IdentityServerApiResources"); - - migrationBuilder.DropTable( - name: "IdentityServerApiScopes"); - - migrationBuilder.DropTable( - name: "IdentityServerClients"); - - migrationBuilder.DropTable( - name: "IdentityServerIdentityResources"); - - migrationBuilder.DropTable( - name: "AbpAuditLogs"); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/mesproductL7part.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/mesproductL7part.Designer.cs deleted file mode 100644 index 91255d896..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/mesproductL7part.Designer.cs +++ /dev/null @@ -1,1756 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220615085529_mesproductL7part")] - partial class mesproductL7part - { - 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.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MesProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .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("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("InfoType") - .HasColumnType("nvarchar(max)"); - - b.Property("L7PartCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MesProductL7PartsNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,2)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,2)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/mesproductL7part.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/mesproductL7part.cs deleted file mode 100644 index 9c625bed0..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/mesproductL7part.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class mesproductL7part : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropPrimaryKey( - name: "PK_MesProductL7PartsNotes", - table: "MesProductL7PartsNotes"); - - migrationBuilder.RenameTable( - name: "MesProductL7PartsNotes", - newName: "DataExchange_MesProductL7PartsNote"); - - migrationBuilder.AddPrimaryKey( - name: "PK_DataExchange_MesProductL7PartsNote", - table: "DataExchange_MesProductL7PartsNote", - column: "Id"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropPrimaryKey( - name: "PK_DataExchange_MesProductL7PartsNote", - table: "DataExchange_MesProductL7PartsNote"); - - migrationBuilder.RenameTable( - name: "DataExchange_MesProductL7PartsNote", - newName: "MesProductL7PartsNotes"); - - migrationBuilder.AddPrimaryKey( - name: "PK_MesProductL7PartsNotes", - table: "MesProductL7PartsNotes", - column: "Id"); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/prhhist20220905.Designer.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/prhhist20220905.Designer.cs deleted file mode 100644 index f7f11c62d..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/prhhist20220905.Designer.cs +++ /dev/null @@ -1,4537 +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.DataExchange.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations -{ - [DbContext(typeof(DataExchangeDbContext))] - [Migration("20220905091719_prhhist20220905")] - partial class prhhist20220905 - { - 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("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)") - .HasColumnName("ApplicationName"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("BrowserInfo"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientId"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ClientIpAddress"); - - b.Property("ClientName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("ClientName"); - - b.Property("Comments") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Comments"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("CorrelationId"); - - b.Property("Exceptions") - .HasColumnType("nvarchar(max)"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HttpMethod") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("HttpMethod"); - - b.Property("HttpStatusCode") - .HasColumnType("int") - .HasColumnName("HttpStatusCode"); - - b.Property("ImpersonatorTenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorTenantId"); - - b.Property("ImpersonatorUserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("ImpersonatorUserId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Url"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier") - .HasColumnName("UserId"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "ExecutionTime"); - - b.HasIndex("TenantId", "UserId", "ExecutionTime"); - - b.ToTable("AbpAuditLogs"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ExecutionDuration") - .HasColumnType("int") - .HasColumnName("ExecutionDuration"); - - b.Property("ExecutionTime") - .HasColumnType("datetime2") - .HasColumnName("ExecutionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("MethodName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("MethodName"); - - b.Property("Parameters") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)") - .HasColumnName("Parameters"); - - b.Property("ServiceName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("ServiceName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "ServiceName", "MethodName", "ExecutionTime"); - - b.ToTable("AbpAuditLogActions"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AuditLogId") - .HasColumnType("uniqueidentifier") - .HasColumnName("AuditLogId"); - - b.Property("ChangeTime") - .HasColumnType("datetime2") - .HasColumnName("ChangeTime"); - - b.Property("ChangeType") - .HasColumnType("tinyint") - .HasColumnName("ChangeType"); - - b.Property("EntityId") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityId"); - - b.Property("EntityTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("EntityTypeFullName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("EntityTypeFullName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("AuditLogId"); - - b.HasIndex("TenantId", "EntityTypeFullName", "EntityId"); - - b.ToTable("AbpEntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("EntityChangeId") - .HasColumnType("uniqueidentifier"); - - b.Property("NewValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("NewValue"); - - b.Property("OriginalValue") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)") - .HasColumnName("OriginalValue"); - - b.Property("PropertyName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("PropertyName"); - - b.Property("PropertyTypeFullName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PropertyTypeFullName"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("EntityChangeId"); - - b.ToTable("AbpEntityPropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAbandoned") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobArgs") - .IsRequired() - .HasMaxLength(1048576) - .HasColumnType("nvarchar(max)"); - - b.Property("JobName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("LastTryTime") - .HasColumnType("datetime2"); - - b.Property("NextTryTime") - .HasColumnType("datetime2"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint") - .HasDefaultValue((byte)15); - - b.Property("TryCount") - .ValueGeneratedOnAdd() - .HasColumnType("smallint") - .HasDefaultValue((short)0); - - b.HasKey("Id"); - - b.HasIndex("IsAbandoned", "NextTryTime"); - - b.ToTable("AbpBackgroundJobs"); - }); - - modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpFeatureValues"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Description") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStatic") - .HasColumnType("bit"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("Regex") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("RegexDescription") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("AbpClaimTypes"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("SourceUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetTenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("TargetUserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("SourceUserId", "SourceTenantId", "TargetUserId", "TargetTenantId") - .IsUnique() - .HasFilter("[SourceTenantId] IS NOT NULL AND [TargetTenantId] IS NOT NULL"); - - b.ToTable("AbpLinkUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDefault") - .HasColumnType("bit") - .HasColumnName("IsDefault"); - - b.Property("IsPublic") - .HasColumnType("bit") - .HasColumnName("IsPublic"); - - b.Property("IsStatic") - .HasColumnType("bit") - .HasColumnName("IsStatic"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("NormalizedName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("NormalizedName"); - - b.ToTable("AbpRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("RoleId"); - - b.ToTable("AbpRoleClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Action") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("ApplicationName") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("BrowserInfo") - .HasMaxLength(512) - .HasColumnType("nvarchar(512)"); - - b.Property("ClientId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ClientIpAddress") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CorrelationId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Identity") - .HasMaxLength(96) - .HasColumnType("nvarchar(96)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TenantName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserName") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Action"); - - b.HasIndex("TenantId", "ApplicationName"); - - b.HasIndex("TenantId", "Identity"); - - b.HasIndex("TenantId", "UserId"); - - b.ToTable("AbpSecurityLogs"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AccessFailedCount") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0) - .HasColumnName("AccessFailedCount"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Email") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("Email"); - - b.Property("EmailConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("EmailConfirmed"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsExternal") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsExternal"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LockoutEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("LockoutEnabled"); - - b.Property("LockoutEnd") - .HasColumnType("datetimeoffset"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Name"); - - b.Property("NormalizedEmail") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedEmail"); - - b.Property("NormalizedUserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("NormalizedUserName"); - - b.Property("PasswordHash") - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("PasswordHash"); - - b.Property("PhoneNumber") - .HasMaxLength(16) - .HasColumnType("nvarchar(16)") - .HasColumnName("PhoneNumber"); - - b.Property("PhoneNumberConfirmed") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("PhoneNumberConfirmed"); - - b.Property("SecurityStamp") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("SecurityStamp"); - - b.Property("Surname") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Surname"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TwoFactorEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("TwoFactorEnabled"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)") - .HasColumnName("UserName"); - - b.HasKey("Id"); - - b.HasIndex("Email"); - - b.HasIndex("NormalizedEmail"); - - b.HasIndex("NormalizedUserName"); - - b.HasIndex("UserName"); - - b.ToTable("AbpUsers"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ClaimType") - .IsRequired() - .HasMaxLength(256) - .HasColumnType("nvarchar(256)"); - - b.Property("ClaimValue") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("UserId"); - - b.ToTable("AbpUserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderDisplayName") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(196) - .HasColumnType("nvarchar(196)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "LoginProvider"); - - b.HasIndex("LoginProvider", "ProviderKey"); - - b.ToTable("AbpUserLogins"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "UserId"); - - b.HasIndex("UserId", "OrganizationUnitId"); - - b.ToTable("AbpUserOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("UserId", "RoleId"); - - b.HasIndex("RoleId", "UserId"); - - b.ToTable("AbpUserRoles"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.Property("UserId") - .HasColumnType("uniqueidentifier"); - - b.Property("LoginProvider") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("UserId", "LoginProvider", "Name"); - - b.ToTable("AbpUserTokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(95) - .HasColumnType("nvarchar(95)") - .HasColumnName("Code"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DisplayName") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)") - .HasColumnName("DisplayName"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code"); - - b.HasIndex("ParentId"); - - b.ToTable("AbpOrganizationUnits"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.Property("OrganizationUnitId") - .HasColumnType("uniqueidentifier"); - - b.Property("RoleId") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("OrganizationUnitId", "RoleId"); - - b.HasIndex("RoleId", "OrganizationUnitId"); - - b.ToTable("AbpOrganizationUnitRoles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AllowedAccessTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Type"); - - b.ToTable("IdentityServerApiResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiResourceId", "Key", "Value"); - - b.ToTable("IdentityServerApiResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiResourceId", "Scope"); - - b.ToTable("IdentityServerApiResourceScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.Property("ApiResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ApiResourceId", "Type", "Value"); - - b.ToTable("IdentityServerApiResourceSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerApiScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ApiScopeId", "Type"); - - b.ToTable("IdentityServerApiScopeClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.Property("ApiScopeId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ApiScopeId", "Key", "Value"); - - b.ToTable("IdentityServerApiScopeProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AbsoluteRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenLifetime") - .HasColumnType("int"); - - b.Property("AccessTokenType") - .HasColumnType("int"); - - b.Property("AllowAccessTokensViaBrowser") - .HasColumnType("bit"); - - b.Property("AllowOfflineAccess") - .HasColumnType("bit"); - - b.Property("AllowPlainTextPkce") - .HasColumnType("bit"); - - b.Property("AllowRememberConsent") - .HasColumnType("bit"); - - b.Property("AllowedIdentityTokenSigningAlgorithms") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("AlwaysIncludeUserClaimsInIdToken") - .HasColumnType("bit"); - - b.Property("AlwaysSendClientClaims") - .HasColumnType("bit"); - - b.Property("AuthorizationCodeLifetime") - .HasColumnType("int"); - - b.Property("BackChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("BackChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ClientClaimsPrefix") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsentLifetime") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DeviceCodeLifetime") - .HasColumnType("int"); - - b.Property("EnableLocalLogin") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FrontChannelLogoutSessionRequired") - .HasColumnType("bit"); - - b.Property("FrontChannelLogoutUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("IdentityTokenLifetime") - .HasColumnType("int"); - - b.Property("IncludeJwtId") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LogoUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("PairWiseSubjectSalt") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProtocolType") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RefreshTokenExpiration") - .HasColumnType("int"); - - b.Property("RefreshTokenUsage") - .HasColumnType("int"); - - b.Property("RequireClientSecret") - .HasColumnType("bit"); - - b.Property("RequireConsent") - .HasColumnType("bit"); - - b.Property("RequirePkce") - .HasColumnType("bit"); - - b.Property("RequireRequestObject") - .HasColumnType("bit"); - - b.Property("SlidingRefreshTokenLifetime") - .HasColumnType("int"); - - b.Property("UpdateAccessTokenClaimsOnRefresh") - .HasColumnType("bit"); - - b.Property("UserCodeType") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("UserSsoLifetime") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("ClientId"); - - b.ToTable("IdentityServerClients"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Origin") - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.HasKey("ClientId", "Origin"); - - b.ToTable("IdentityServerClientCorsOrigins"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("GrantType") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.HasKey("ClientId", "GrantType"); - - b.ToTable("IdentityServerClientGrantTypes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Provider") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Provider"); - - b.ToTable("IdentityServerClientIdPRestrictions"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("PostLogoutRedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "PostLogoutRedirectUri"); - - b.ToTable("IdentityServerClientPostLogoutRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "Key", "Value"); - - b.ToTable("IdentityServerClientProperties"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("RedirectUri") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("ClientId", "RedirectUri"); - - b.ToTable("IdentityServerClientRedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Scope") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("ClientId", "Scope"); - - b.ToTable("IdentityServerClientScopes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.Property("ClientId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(4000) - .HasColumnType("nvarchar(4000)"); - - b.Property("Description") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.HasKey("ClientId", "Type", "Value"); - - b.ToTable("IdentityServerClientSecrets"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Devices.DeviceFlowCodes", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UserCode") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("DeviceCode") - .IsUnique(); - - b.HasIndex("Expiration"); - - b.HasIndex("UserCode"); - - b.ToTable("IdentityServerDeviceFlowCodes"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Grants.PersistedGrant", b => - { - b.Property("Key") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ClientId") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsumedTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Data") - .IsRequired() - .HasMaxLength(50000) - .HasColumnType("nvarchar(max)"); - - b.Property("Description") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Expiration") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("SessionId") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("SubjectId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Key"); - - b.HasIndex("Expiration"); - - b.HasIndex("SubjectId", "ClientId", "Type"); - - b.HasIndex("SubjectId", "SessionId", "Type"); - - b.ToTable("IdentityServerPersistedGrants"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("DisplayName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Emphasize") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Required") - .HasColumnType("bit"); - - b.Property("ShowInDiscoveryDocument") - .HasColumnType("bit"); - - b.HasKey("Id"); - - b.ToTable("IdentityServerIdentityResources"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("IdentityResourceId", "Type"); - - b.ToTable("IdentityServerIdentityResourceClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.Property("IdentityResourceId") - .HasColumnType("uniqueidentifier"); - - b.Property("Key") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("Value") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.HasKey("IdentityResourceId", "Key", "Value"); - - b.ToTable("IdentityServerIdentityResourceProperties"); - }); - - modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpPermissionGrants"); - }); - - modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("ProviderKey") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProviderName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.HasKey("Id"); - - b.HasIndex("Name", "ProviderName", "ProviderKey"); - - b.ToTable("AbpSettings"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", 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("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("AbpTenants"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.Property("TenantId") - .HasColumnType("uniqueidentifier"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("TenantId", "Name"); - - b.ToTable("AbpTenantConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.IncomingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_IncomingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MesProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .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("L7Part") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MesProductL7PartsNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.MessageReceive", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ErrorCount") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastUpdateTime") - .HasColumnType("datetime2"); - - b.Property("MessageContent") - .HasColumnType("nvarchar(max)"); - - b.Property("MessageFileName") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveStatus") - .HasColumnType("int"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_MessageReceive"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.Domain.OutgoingDataHistory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataContent") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - 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") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_OutgoingDataHistory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EntireBarCode") - .HasMaxLength(2000) - .HasColumnType("nvarchar(2000)"); - - b.Property("LabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("LocUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Lot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PalletLabelCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Supplierlot") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("WareClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("WareCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("AsnMstrId"); - - b.ToTable("DataExchange_AsnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TimeWindow") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_AsnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Component") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Op") - .HasColumnType("int"); - - b.Property("OptionGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Parent") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Process") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Ref2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPct") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SeqNumber") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Cust", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Cust"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.CustPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CustPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustPackUm") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_CustPart"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Inventory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustConsignQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reference") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SuppConsignQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Inventory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Loc", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Loc"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Part", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Color") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Config") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Desc2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Eco") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ExtPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCatalog") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartGroup") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ProdKind") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Version") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Part"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,6)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("PoMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("PoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RcQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.HasIndex("PoMstrId"); - - b.ToTable("DataExchange_PoDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Consignment") - .HasColumnType("bit"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Contract") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ModType") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Project") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Status") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PoMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PrhHist", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AsnQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Buyer") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Dock") - .HasColumnType("nvarchar(max)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Line") - .HasColumnType("int"); - - b.Property("Lot") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderQty") - .HasColumnType("decimal(18,6)"); - - b.Property("PackageNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PalletNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Part") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PoSite") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiveType") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Request") - .HasColumnType("nvarchar(max)"); - - b.Property("Rev") - .HasColumnType("nvarchar(max)"); - - b.Property("Rma_type") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("ShipTo") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasColumnType("nvarchar(max)"); - - b.Property("UmConv") - .HasColumnType("decimal(18,6)"); - - b.Property("Vendor") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorLot") - .HasColumnType("nvarchar(max)"); - - b.Property("Whse") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_PrhHist"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ProdLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Part") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Rate") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ProdLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReceiptMstrId"); - - b.ToTable("DataExchange_ReceiptDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RcTime") - .HasColumnType("datetime2"); - - b.Property("RcWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RpNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReceiptMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Loc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Lot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PackingCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PoLine") - .HasColumnType("int"); - - b.Property("ProductionDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnMstrId") - .HasColumnType("uniqueidentifier"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendorLot") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("ReturnMstrId"); - - b.ToTable("DataExchange_ReturnDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AsnNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PoNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("RtNbr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("RtTime") - .HasColumnType("datetime2"); - - b.Property("RtWorker") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Whse") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_ReturnMstr"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.SodDet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Loc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ShipTo") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("SoLine") - .HasColumnType("int"); - - b.Property("SoNbr") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StdPackQty") - .HasColumnType("nvarchar(max)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Um") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_SodDet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.Vend", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Active") - .HasColumnType("bit"); - - b.Property("Addr1") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr2") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Addr3") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Bank") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("City") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Code") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contacts") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Country") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Curr") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Fax") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Name") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Phone") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("PstId") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_Vend"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.VendPart", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Company") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("PartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("TraceId") - .HasColumnType("nvarchar(max)"); - - b.Property("VendPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("VendPackUm") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("VendPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("VendorCode") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.HasKey("Id"); - - b.ToTable("DataExchange_VendPart"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogAction", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("Actions") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.AuditLog", null) - .WithMany("EntityChanges") - .HasForeignKey("AuditLogId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityPropertyChange", b => - { - b.HasOne("Volo.Abp.AuditLogging.EntityChange", null) - .WithMany("PropertyChanges") - .HasForeignKey("EntityChangeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRoleClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany("Claims") - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserClaim", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Claims") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserLogin", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Logins") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserOrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("OrganizationUnits") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserRole", b => - { - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Roles") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUserToken", b => - { - b.HasOne("Volo.Abp.Identity.IdentityUser", null) - .WithMany("Tokens") - .HasForeignKey("UserId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany() - .HasForeignKey("ParentId"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnitRole", b => - { - b.HasOne("Volo.Abp.Identity.OrganizationUnit", null) - .WithMany("Roles") - .HasForeignKey("OrganizationUnitId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("Volo.Abp.Identity.IdentityRole", null) - .WithMany() - .HasForeignKey("RoleId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("UserClaims") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Properties") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Scopes") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResourceSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiResources.ApiResource", null) - .WithMany("Secrets") - .HasForeignKey("ApiResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("UserClaims") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScopeProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.ApiScopes.ApiScope", null) - .WithMany("Properties") - .HasForeignKey("ApiScopeId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Claims") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientCorsOrigin", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedCorsOrigins") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientGrantType", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedGrantTypes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientIdPRestriction", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("IdentityProviderRestrictions") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientPostLogoutRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("PostLogoutRedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("Properties") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientRedirectUri", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("RedirectUris") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientScope", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("AllowedScopes") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.ClientSecret", b => - { - b.HasOne("Volo.Abp.IdentityServer.Clients.Client", null) - .WithMany("ClientSecrets") - .HasForeignKey("ClientId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceClaim", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("UserClaims") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResourceProperty", b => - { - b.HasOne("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", null) - .WithMany("Properties") - .HasForeignKey("IdentityResourceId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.TenantConnectionString", b => - { - b.HasOne("Volo.Abp.TenantManagement.Tenant", null) - .WithMany("ConnectionStrings") - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", null) - .WithMany("Details") - .HasForeignKey("AsnMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", null) - .WithMany("Details") - .HasForeignKey("PoMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", null) - .WithMany("Details") - .HasForeignKey("ReceiptMstrId"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnDet", b => - { - b.HasOne("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", null) - .WithMany("Details") - .HasForeignKey("ReturnMstrId"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLog", b => - { - b.Navigation("Actions"); - - b.Navigation("EntityChanges"); - }); - - modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b => - { - b.Navigation("PropertyChanges"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b => - { - b.Navigation("Claims"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b => - { - b.Navigation("Claims"); - - b.Navigation("Logins"); - - b.Navigation("OrganizationUnits"); - - b.Navigation("Roles"); - - b.Navigation("Tokens"); - }); - - modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b => - { - b.Navigation("Roles"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiResources.ApiResource", b => - { - b.Navigation("Properties"); - - b.Navigation("Scopes"); - - b.Navigation("Secrets"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.ApiScopes.ApiScope", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.Clients.Client", b => - { - b.Navigation("AllowedCorsOrigins"); - - b.Navigation("AllowedGrantTypes"); - - b.Navigation("AllowedScopes"); - - b.Navigation("Claims"); - - b.Navigation("ClientSecrets"); - - b.Navigation("IdentityProviderRestrictions"); - - b.Navigation("PostLogoutRedirectUris"); - - b.Navigation("Properties"); - - b.Navigation("RedirectUris"); - }); - - modelBuilder.Entity("Volo.Abp.IdentityServer.IdentityResources.IdentityResource", b => - { - b.Navigation("Properties"); - - b.Navigation("UserClaims"); - }); - - modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b => - { - b.Navigation("ConnectionStrings"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.AsnMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.PoMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReceiptMstr", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.DataExchange.QAD.ReturnMstr", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/prhhist20220905.cs b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/prhhist20220905.cs deleted file mode 100644 index 555675a8b..000000000 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore/Migrations/prhhist20220905.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.DataExchange.Migrations; - -public partial class prhhist20220905 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "DataExchange_PrhHist", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Company = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - Site = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ReceiveNumber = table.Column(type: "nvarchar(max)", nullable: true), - PoNumber = table.Column(type: "nvarchar(max)", nullable: true), - AsnNumber = table.Column(type: "nvarchar(max)", nullable: true), - ReceiveDate = table.Column(type: "datetime2", nullable: false), - ReceiveType = table.Column(type: "nvarchar(max)", nullable: true), - Vendor = table.Column(type: "nvarchar(max)", nullable: true), - Buyer = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - ShipDate = table.Column(type: "datetime2", nullable: false), - ShipTo = table.Column(type: "nvarchar(max)", nullable: true), - PoSite = table.Column(type: "nvarchar(max)", nullable: true), - Line = table.Column(type: "int", nullable: false), - Part = table.Column(type: "nvarchar(max)", nullable: true), - Lot = table.Column(type: "nvarchar(max)", nullable: true), - OrderQty = table.Column(type: "decimal(18,6)", nullable: false), - AsnQty = table.Column(type: "decimal(18,6)", nullable: false), - Qty = table.Column(type: "decimal(18,6)", nullable: false), - Um = table.Column(type: "nvarchar(max)", nullable: true), - UmConv = table.Column(type: "decimal(18,6)", nullable: false), - VendorLot = table.Column(type: "nvarchar(max)", nullable: true), - Reason = table.Column(type: "nvarchar(max)", nullable: true), - Request = table.Column(type: "nvarchar(max)", nullable: true), - Rev = table.Column(type: "nvarchar(max)", nullable: true), - Rma_type = table.Column(type: "nvarchar(max)", nullable: true), - Type = table.Column(type: "nvarchar(max)", nullable: true), - PackageNumber = table.Column(type: "nvarchar(max)", nullable: true), - PalletNumber = table.Column(type: "nvarchar(max)", nullable: true), - ProductionDate = table.Column(type: "datetime2", nullable: false), - Whse = table.Column(type: "nvarchar(max)", nullable: true), - Dock = table.Column(type: "nvarchar(max)", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - TraceId = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_DataExchange_PrhHist", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "DataExchange_PrhHist"); - } -} diff --git a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.MesAgent/appsettings.json b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.MesAgent/appsettings.json index 8156bcbed..f613c7f36 100644 --- a/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.MesAgent/appsettings.json +++ b/be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.MesAgent/appsettings.json @@ -1,6 +1,6 @@ -{ +{ "ConnectionStrings": { - "DataExchange": "Server=dev.ccwin-in.com,13319;Database=DataExchange_Main;uid=ccwin-in;pwd=Microsoft@2022;", + "DataExchange": "Server=dev.ccwin-in.com,21195;Database=DataExchange_Main;uid=sa;pwd=aA123456!;", "OutMesData": "Server=dev.ccwin-in.com,13319;Database=OutMesData_Test;uid=ccwin-in;pwd=Microsoft@2022;" }, diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Boms/IBomAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Boms/IBomAppService.cs index 568c07640..8c6c78a4f 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Boms/IBomAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Boms/IBomAppService.cs @@ -32,4 +32,5 @@ public interface IBomAppService /// Task> GetListOfComponentAsync(string component); Task AddOrUpsertListAsync(List inputs); + Task UpsertAsyncByInterface(BomEditInput input); } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Customers/ICustomerAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Customers/ICustomerAppService.cs index 622f22a2c..71564a84c 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Customers/ICustomerAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Customers/ICustomerAppService.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Win_in.Sfs.Shared.Application.Contracts; namespace Win_in.Sfs.Basedata.Application.Contracts; @@ -8,4 +9,5 @@ public interface ICustomerAppService , ISfsUpsertAppService { + Task UpsertAsyncByInterface(CustomerEditInput input); } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/InterfaceCalendars/IInterfaceCalendarAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/InterfaceCalendars/IInterfaceCalendarAppService.cs index cfc03c912..a95d32e77 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/InterfaceCalendars/IInterfaceCalendarAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/InterfaceCalendars/IInterfaceCalendarAppService.cs @@ -8,4 +8,6 @@ public interface IInterfaceCalendarAppService : ISfsBaseDataAppServiceBase GetActiveDateAsync(DateTime clockNow); Task GetByTimeAsync(DateTime time); + + Task UpsertAsync(InterfaceCalendarEditInput input); } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/ItemBasics/IItemBasicAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/ItemBasics/IItemBasicAppService.cs index 6241f02b9..fc4f917d3 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/ItemBasics/IItemBasicAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/ItemBasics/IItemBasicAppService.cs @@ -22,4 +22,6 @@ public interface IItemBasicAppService Task GetManageTypeAsync(string itemCode); Task> GetManageTypesAsync(List itemCodes); + + Task UpsertAsyncByInterface(ItemBasicEditInput input); } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Suppliers/ISupplierAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Suppliers/ISupplierAppService.cs index 103982391..225818665 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Suppliers/ISupplierAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/Suppliers/ISupplierAppService.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Win_in.Sfs.Shared.Application.Contracts; namespace Win_in.Sfs.Basedata.Application.Contracts; @@ -8,4 +9,5 @@ public interface ISupplierAppService , ISfsUpsertAppService { + Task UpsertAsyncByInterface(SupplierEditInput input); } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Boms/BomAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Boms/BomAppService.cs index cb46fb03a..47cce0cf7 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Boms/BomAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Boms/BomAppService.cs @@ -136,6 +136,19 @@ public class BomAppService : return; } + [HttpPost("upsert-interface")] + public virtual async Task UpsertAsyncByInterface(BomEditInput input) + { + var entity = ObjectMapper.Map(input); + entity.ComponentUom = input.ComponentUom; + entity.ComponentQty = input.ComponentQty; + + await _repository.UpsertAsyncByInterface(entity); + return; + } + + + [HttpPost("add-upsert-lsit")] public virtual async Task AddOrUpsertListAsync(List inputs) { diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Calendars/InterfaceCalendarAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Calendars/InterfaceCalendarAppService.cs index 201e55d82..006dbd315 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Calendars/InterfaceCalendarAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Calendars/InterfaceCalendarAppService.cs @@ -14,12 +14,14 @@ namespace Win_in.Sfs.Basedata.Application; [Route($"{BasedataConsts.RootPath}interface-calendar")] public class InterfaceCalendarAppService : SfsBaseDataAppServiceBase, IInterfaceCalendarAppService { + private new readonly IInterfaceCalendarRepository _repository; public InterfaceCalendarAppService( IInterfaceCalendarRepository repository , IDistributedCache cache ) : base(repository, cache) { + _repository = repository; base.CreatePolicyName = InterfaceCalendarPermissions.Create; base.UpdatePolicyName = InterfaceCalendarPermissions.Update; base.DeletePolicyName = InterfaceCalendarPermissions.Delete; @@ -57,4 +59,14 @@ public class InterfaceCalendarAppService : SfsBaseDataAppServiceBase(calendar); return dto; } + + + [HttpPost("upsert")] + + public virtual async Task UpsertAsync(InterfaceCalendarEditInput input) + { + var entity = ObjectMapper.Map(input); + await _repository.UpsertAsync(entity).ConfigureAwait(false); + } + } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Customers/CustomerAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Customers/CustomerAppService.cs index d8f49ce47..6a49d8b1b 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Customers/CustomerAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Customers/CustomerAppService.cs @@ -36,4 +36,12 @@ public class CustomerAppService var entity = ObjectMapper.Map(input); await _repository.UpsertAsync(entity).ConfigureAwait(false); } + + [HttpPost("upsert-interface")] + + public virtual async Task UpsertAsyncByInterface(CustomerEditInput input) + { + var entity = ObjectMapper.Map(input); + await _repository.UpsertAsyncByInterface(entity).ConfigureAwait(false); + } } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Dicts/DictAutoMapperProfile.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Dicts/DictAutoMapperProfile.cs index 0c1f8bf9b..05459426f 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Dicts/DictAutoMapperProfile.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Dicts/DictAutoMapperProfile.cs @@ -39,7 +39,11 @@ public partial class BasedataApplicationAutoMapperProfile : Profile CreateMap() .IgnoreAuditedObjectProperties() ; - ; + + CreateMap() + .IgnoreAuditedObjectProperties() + .Ignore(x => x.ConcurrencyStamp) + .Ignore(x => x.Id); } } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Items/ItemBasicAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Items/ItemBasicAppService.cs index 6a631bcf3..a5a2ac756 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Items/ItemBasicAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Items/ItemBasicAppService.cs @@ -183,7 +183,12 @@ public class ItemBasicAppService var entity = ObjectMapper.Map(input); await _repository.UpsertAsync(entity).ConfigureAwait(false); } - + [HttpPost("upsert-interface")] + public virtual async Task UpsertAsyncByInterface(ItemBasicEditInput input) + { + var entity = ObjectMapper.Map(input); + await _repository.UpsertAsyncByInterface(entity).ConfigureAwait(false); + } protected override Expression> BuildSearchExpression(string keyWord) { Expression> expression = p => diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Suppliers/SupplierAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Suppliers/SupplierAppService.cs index d3fb1f52f..e58f0821d 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Suppliers/SupplierAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Suppliers/SupplierAppService.cs @@ -36,7 +36,12 @@ public class SupplierAppService : var entity = ObjectMapper.Map(input); await _repository.UpsertAsync(entity).ConfigureAwait(false); } - + [HttpPost("upsert-interface")] + public virtual async Task UpsertAsyncByInterface(SupplierEditInput input) + { + var entity = ObjectMapper.Map(input); + await _repository.UpsertAsyncByInterface(entity).ConfigureAwait(false); + } /// /// 【获取】集合 根据 【代码集合】 /// diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Boms/IBomRepository.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Boms/IBomRepository.cs index 1edaa69f2..016400bc2 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Boms/IBomRepository.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Boms/IBomRepository.cs @@ -6,4 +6,5 @@ namespace Win_in.Sfs.Basedata.Domain; public interface IBomRepository : ISfsBaseDataRepositoryBase, ISfsBulkRepositoryBase { Task UpsertAsync(Bom entity); + Task UpsertAsyncByInterface(Bom entity); } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Customers/ICustomerRepository.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Customers/ICustomerRepository.cs index a0d3cbfad..b18ddb7a6 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Customers/ICustomerRepository.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Customers/ICustomerRepository.cs @@ -6,4 +6,5 @@ namespace Win_in.Sfs.Basedata.Domain; public interface ICustomerRepository : ISfsBaseDataRepositoryBase, ISfsBulkRepositoryBase { Task UpsertAsync(Customer entity); + Task UpsertAsyncByInterface(Customer entity); } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/InterfaceCalendars/IInterfaceCalendarRepository.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/InterfaceCalendars/IInterfaceCalendarRepository.cs index 3e3e86cbe..4ab9eda25 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/InterfaceCalendars/IInterfaceCalendarRepository.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/InterfaceCalendars/IInterfaceCalendarRepository.cs @@ -1,6 +1,8 @@ +using System.Threading.Tasks; + namespace Win_in.Sfs.Basedata.Domain; public interface IInterfaceCalendarRepository : ISfsBaseDataRepositoryBase { - + Task UpsertAsync(InterfaceCalendar entity); } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/ItemBasics/IItemBasicRepository.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/ItemBasics/IItemBasicRepository.cs index d9f4893b5..e21208c7b 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/ItemBasics/IItemBasicRepository.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/ItemBasics/IItemBasicRepository.cs @@ -8,4 +8,6 @@ public interface IItemBasicRepository : ISfsBaseDataRepositoryBase, I public Task UpsertAsync(ItemBasic entity); public Task InsertAutoSaveAsync(ItemBasic entity); + + public Task UpsertAsyncByInterface(ItemBasic entity); } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Suppliers/ISupplierRepository.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Suppliers/ISupplierRepository.cs index e29bc1a40..0ea0ec64d 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Suppliers/ISupplierRepository.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Domain/Suppliers/ISupplierRepository.cs @@ -6,4 +6,5 @@ namespace Win_in.Sfs.Basedata.Domain; public interface ISupplierRepository : ISfsBaseDataRepositoryBase, ISfsBulkRepositoryBase { Task UpsertAsync(Supplier entity); + Task UpsertAsyncByInterface(Supplier entity); } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Boms/BomEfCoreRepository.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Boms/BomEfCoreRepository.cs index 41db3b8dd..09a9d6bb4 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Boms/BomEfCoreRepository.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Boms/BomEfCoreRepository.cs @@ -1,3 +1,4 @@ +using System; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore; @@ -22,7 +23,7 @@ public class BomEfCoreRepository : SfsBaseDataEfCoreRepositoryBase p.Product == entity.Product && p.Component == entity.Component).ConfigureAwait(false); + if (exist == null) + { + var insRet = await InsertAsync(entity).ConfigureAwait(false); + } + else + { + exist.ComponentUom = entity.ComponentUom; + exist.ComponentQty = entity.ComponentQty; + exist.BeginTime = entity.BeginTime; + exist.EndTime = entity.EndTime; + exist.ERPOp = entity.ERPOp; + exist.Layer = entity.Layer; + exist.MFGOp = entity.MFGOp; + exist.DistributionType = entity.DistributionType; + exist.TruncType = entity.TruncType; + exist.PlannedSplitRule = entity.PlannedSplitRule; + exist.TenantId = entity.TenantId; + exist.Remark = entity.Remark; + exist.Layer = entity.Layer; + exist.LastModificationTime = DateTimeOffset.Now.DateTime; + + } + } } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Customers/CustomerEfCoreRepository.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Customers/CustomerEfCoreRepository.cs index 6b0cdb6ec..760770375 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Customers/CustomerEfCoreRepository.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Customers/CustomerEfCoreRepository.cs @@ -1,3 +1,4 @@ +using System; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore; @@ -54,4 +55,21 @@ public class CustomerEfCoreRepository : SfsBaseDataEfCoreRepositoryBase p.Code == entity.Code).ConfigureAwait(false); + if (exist == null) + { + var insRet = await InsertAsync(entity).ConfigureAwait(false); + } + else + { + exist.Name = entity.Name; + exist.ShortName = entity.ShortName; + exist.LastModificationTime = DateTime.Now; + } + } } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/InterfaceCalenders/InterfaceCalendarEfCoreRepository.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/InterfaceCalenders/InterfaceCalendarEfCoreRepository.cs index 3f7e37039..6a7878239 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/InterfaceCalenders/InterfaceCalendarEfCoreRepository.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/InterfaceCalenders/InterfaceCalendarEfCoreRepository.cs @@ -1,3 +1,5 @@ +using Microsoft.EntityFrameworkCore; +using System.Threading.Tasks; using Volo.Abp.EntityFrameworkCore; using Win_in.Sfs.Basedata.Domain; @@ -8,4 +10,20 @@ public class InterfaceCalendarEfCoreRepository : SfsBaseDataEfCoreRepositoryBase public InterfaceCalendarEfCoreRepository(IDbContextProvider dbContextProvider) : base(dbContextProvider) { } + + public virtual async Task UpsertAsync(InterfaceCalendar entity) + { + var dbSet = await GetDbSetAsync().ConfigureAwait(false); + var exist = await dbSet.FirstOrDefaultAsync(p =>p.Code == entity.Code && p.Year == entity.Year && p.Month == entity.Month).ConfigureAwait(false); ; + if (exist == null) + { + var insRet = await InsertAsync(entity).ConfigureAwait(false); ; + } + else + { + exist.BeginTime = entity.BeginTime; + exist.EndTime = entity.EndTime; + exist.LastModificationTime = entity.LastModificationTime; + } + } } diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Items/ItemBasicEfCoreRepository.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Items/ItemBasicEfCoreRepository.cs index 7d640271e..023b05f31 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Items/ItemBasicEfCoreRepository.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Items/ItemBasicEfCoreRepository.cs @@ -12,7 +12,30 @@ public class ItemBasicEfCoreRepository : SfsBaseDataEfCoreRepositoryBase dbContextProvider) : base(dbContextProvider) { } - + public virtual async Task UpsertAsyncByInterface(ItemBasic entity) + { + var dbSet = await GetDbSetAsync().ConfigureAwait(false); + var exist = await dbSet.FirstOrDefaultAsync(p => p.Code == entity.Code).ConfigureAwait(false); + if (exist == null) + { + var insRet = await InsertAsync(entity).ConfigureAwait(false); + } + else + { + exist.Name = entity.Name; + exist.Desc1 = entity.Desc1; + exist.Desc2 = entity.Desc2; + exist.Configuration = entity.Configuration; + entity.Type = entity.Type; + exist.BasicUom = entity.BasicUom; + exist.CanBuy = entity.CanBuy; + exist.CanMake = entity.CanMake; + exist.CanOutsourcing = entity.CanOutsourcing; + exist.IsRecycled = entity.IsRecycled; + exist.Status = entity.Status; + exist.LastModificationTime = DateTimeOffset.Now.DateTime; + } + } public virtual async Task UpsertAsync(ItemBasic entity) { var dbSet = await GetDbSetAsync().ConfigureAwait(false); diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Suppliers/SupplierEfCoreRepository.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Suppliers/SupplierEfCoreRepository.cs index 98645ea14..6b91e03fe 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Suppliers/SupplierEfCoreRepository.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Suppliers/SupplierEfCoreRepository.cs @@ -1,3 +1,4 @@ +using System; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore; @@ -58,4 +59,26 @@ public class SupplierEfCoreRepository : SfsBaseDataEfCoreRepositoryBase p.Code == entity.Code).ConfigureAwait(false); + if (exist == null) + { + var insRet = await InsertAsync(entity).ConfigureAwait(false); + } + else + { + exist.ShortName = entity.ShortName; + exist.Name = entity.Name; + exist.IsActive = entity.IsActive; + exist.TaxRate = entity.TaxRate; + exist.Contacts = entity.Contacts; + exist.Phone = entity.Phone; + exist.Address = entity.Address; + exist.Fax = entity.Fax; + exist.LastModificationTime = DateTimeOffset.Now.DateTime; + } + } } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Requests/MaterialRequests/IMaterialRequestAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Requests/MaterialRequests/IMaterialRequestAppService.cs index c29fe40f2..6eaaaf66b 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Requests/MaterialRequests/IMaterialRequestAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Requests/MaterialRequests/IMaterialRequestAppService.cs @@ -17,6 +17,8 @@ public interface IMaterialRequestAppService /// Task CreateAndHandleByPreparationPlan(string productionPlanNumber); + Task CreateAndHandleByAPIAsync(MaterialRequestEditInput input); + /// /// 根据类型获取叫料请求 /// @@ -29,4 +31,5 @@ public interface IMaterialRequestAppService string type, bool includeDetails = false, CancellationToken cancellationToken = default); Task> GetListByTypeAsync(string type); + } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/BackFlushNotes/BackFlushNoteAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/BackFlushNotes/BackFlushNoteAppService.cs index 98318f549..ff86c9f94 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/BackFlushNotes/BackFlushNoteAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/BackFlushNotes/BackFlushNoteAppService.cs @@ -23,7 +23,6 @@ public class BackFlushNoteAppService : { _backFlushNoteManager = backFlushNoteManager; } - [HttpPost("create-many")] public virtual async Task> CreateManyAsync(List inputs) { diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/IssueNotes/IssueNoteAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/IssueNotes/IssueNoteAppService.cs index 3f724b648..ea96420d5 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/IssueNotes/IssueNoteAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/IssueNotes/IssueNoteAppService.cs @@ -64,7 +64,6 @@ public class IssueNoteAppService : var dto = ObjectMapper.Map(result); return dto; } - /// /// 根据叫料请求类型获取发料记录 /// diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/MaterialRequests/MaterialRequestAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/MaterialRequests/MaterialRequestAppService.cs index d2cc0d803..18722dae2 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/MaterialRequests/MaterialRequestAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/MaterialRequests/MaterialRequestAppService.cs @@ -84,6 +84,57 @@ public class MaterialRequestAppService : SfsStoreRequestAppServiceBase + /// 创建并且执行叫料请求 + /// + /// + /// + /// + [HttpPost("create-and-handle-api")] + //[Authorize(MaterialRequestPermissions.Create)] + public virtual async Task CreateAndHandleByAPIAsync(MaterialRequestEditInput input) + { + foreach (var item in input.Details) + { + if (item.Qty <= 0) + { + throw new UserFriendlyException($"{item.ItemCode} 物料的需求量必须大于 0"); + } + } + + //检验备料计划是否存在要料请求 + if (!string.IsNullOrWhiteSpace(input.PreparationPlanNumber)) + { + var exist = await CheckExistByPreparationPlanAsync(input.PreparationPlanNumber).ConfigureAwait(false); + if (exist.Count > 0) + { + throw new UserFriendlyException($"{input.PreparationPlanNumber} 备料计划已存在要料申请"); + } + } + + foreach (var item in input.Details) //赋值生产线 + { + var location = await LocationAclService.GetByCodeAsync(item.ToLocationCode).ConfigureAwait(false); + item.ProdLine = location.LocationGroupCode; + input.ProdLine = location.LocationGroupCode; + input.Worker = input.Worker; + } + + input.AutoSubmit = true; + input.AutoAgree = true; + input.AutoHandle = true; + + var entity = ObjectMapper.Map(input); + + var result = await _materialRequestManager.CreateBynNumberAsync(entity).ConfigureAwait(false); + + var dto = ObjectMapper.Map(result); + + return dto; + } + + + /// /// 创建并且执行叫料请求 /// diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/IIssueNoteManager.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/IIssueNoteManager.cs index a2de97607..f6136facd 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/IIssueNoteManager.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/IIssueNoteManager.cs @@ -6,4 +6,5 @@ namespace Win_in.Sfs.Wms.Store.Domain; public interface IIssueNoteManager : ISfsStoreManager { Task ConfirmAsync(Guid id); + } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/IssueNoteManager.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/IssueNoteManager.cs index d66fff5ad..47f6b1589 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/IssueNoteManager.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/IssueNoteManager.cs @@ -25,7 +25,6 @@ public class IssueNoteManager : SfsStoreManagerBase, await PublishConfirmedAsync(entity).ConfigureAwait(false); return await Repository.UpdateAsync(entity).ConfigureAwait(false); } - private async Task PublishConfirmedAsync(IssueNote entity) { try diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/IMaterialRequestManager.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/IMaterialRequestManager.cs index 887d57836..93aa0e16f 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/IMaterialRequestManager.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/IMaterialRequestManager.cs @@ -11,4 +11,6 @@ public interface IMaterialRequestManager : ISfsStoreRequestManager CreateBynNumberAsync(MaterialRequest entity); } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/MaterialRequestManager.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/MaterialRequestManager.cs index 62cf6b720..de51fc56f 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/MaterialRequestManager.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/MaterialRequestManager.cs @@ -17,6 +17,28 @@ public class MaterialRequestManager _repository = repository; } + /// + /// 创建 + /// + /// + /// + public virtual async Task CreateBynNumberAsync(MaterialRequest entity) + { + var number = string.IsNullOrEmpty(entity.Number) ? await GenerateNumberAsync(typeof(MaterialRequest).Name, entity.ActiveDate).ConfigureAwait(false) : entity.Number; + entity.SetIdAndNumberWithDetails(GuidGenerator, number); + await PublishCreatedAsync(entity).ConfigureAwait(false); + + if (entity.AutoSubmit) + { + return await SubmitAsync(entity).ConfigureAwait(false); + } + else + { + return await Repository.InsertAsync(entity).ConfigureAwait(false); + } + } + + #region 公有 /*