From 6e4d8f7f4d57a3c53baea06d9cd8a414c04b451c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Thu, 19 Jun 2025 09:44:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9F=BA=E7=B1=BB=E5=92=8C?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../11-18/SUPPLIER_CON_DATE.cs | 2 +- .../11-18/SUPPLIER_CON_DATE_LOGS.cs | 2 +- .../11-18/SUPPLIER_CON_MMRP.cs | 2 +- .../11-18/SUPPLIER_CON_MMRP_LOGS.cs | 2 +- .../11-18/SUPPLIER_CON_PO.cs | 2 +- .../11-18/SUPPLIER_CON_PO_LOGS.cs | 2 +- .../11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs | 2 +- .../SUPPLIER_PRO_ATTACHMENT_DATA_LOGS.cs | 2 +- .../11-18/SUPPLIER_PRO_ENVIRONMENT.cs | 2 +- .../11-18/SUPPLIER_PRO_ENVIRONMENT_LOGS.cs | 2 +- .../11-18/SUPPLIER_PRO_FLAW.cs | 2 +- .../11-18/SUPPLIER_PRO_FLAW_LOGS.cs | 2 +- .../11-18/SUPPLIER_PRO_MATERIAL_DATA.cs | 2 +- .../11-18/SUPPLIER_PRO_MATERIAL_DATA_LOGS.cs | 2 +- .../SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE.cs | 2 +- .../SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS.cs | 2 +- .../11-18/SUPPLIER_PRO_OEE_TIME_DETAILS.cs | 2 +- .../SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS.cs | 2 +- .../11-18/SUPPLIER_PRO_PROCESS.cs | 2 +- .../11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT.cs | 2 +- .../SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS.cs | 2 +- .../11-18/SUPPLIER_PRO_PROCESS_LOGS.cs | 2 +- .../11-18/SUPPLIER_SINV_DATA.cs | 2 +- .../11-18/SUPPLIER_SINV_DATA_LOGS.cs | 2 +- API/TaskManager.Entity/Entity.cs | 46 +- .../Entitys/01_09/SUPPLIER_BOM.cs | 2 +- .../Entitys/01_09/SUPPLIER_BOM_LOGS.cs | 2 +- .../Entitys/01_09/SUPPLIER_EMPLOYEE.cs | 2 +- .../Entitys/01_09/SUPPLIER_EMPLOYEE_LOGS.cs | 2 +- .../Entitys/01_09/SUPPLIER_INFO.cs | 2 +- .../Entitys/01_09/SUPPLIER_INFO_LOGS.cs | 2 +- .../Entitys/01_09/SUPPLIER_PRO_CPS.cs | 2 +- .../Entitys/01_09/SUPPLIER_PRO_CPS_LOGS.cs | 2 +- .../Entitys/01_09/SUPPLIER_PRO_DATA.cs | 2 +- .../Entitys/01_09/SUPPLIER_PRO_DATA_LOGS.cs | 2 +- .../01_09/SUPPLIER_PRO_FIRST_PASSYIELD.cs | 2 +- .../SUPPLIER_PRO_FIRST_PASSYIELD_LOGS.cs | 2 +- .../01_09/SUPPLIER_PRO_MATERIAL_STOCK.cs | 2 +- .../01_09/SUPPLIER_PRO_MATERIAL_STOCK_LOGS.cs | 2 +- .../Entitys/01_09/SUPPLIER_PRO_SCHEDULING.cs | 2 +- .../01_09/SUPPLIER_PRO_SCHEDULING_LOGS.cs | 2 +- .../SUPPLIER_PRO_STATION_FIRST_PASSYIELD.cs | 2 +- ...PPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS.cs | 2 +- .../20250619005547_z202506190001.Designer.cs | 10261 ++++++++++++++++ .../20250619005547_z202506190001.cs | 1389 +++ .../Migrations/JobDbContextModelSnapshot.cs | 408 +- .../CheryRecurringJobInputPageController.cs | 8 +- ...ryRecurringJobInputPageExtendController.cs | 12 +- .../CheryRecurringJobOutPageController.cs | 4 + 49 files changed, 12094 insertions(+), 118 deletions(-) create mode 100644 API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.Designer.cs create mode 100644 API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.cs diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE.cs b/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE.cs index ae5baa0..5a5d913 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 日物料需求计划风险确认 /// - public class SUPPLIER_CON_DATE : CherryConReadBaseEntity + public class SUPPLIER_CON_DATE : CherryWriteBaseEnity { diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE_LOGS.cs index cae6e89..a861f28 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE_LOGS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE_LOGS.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 日物料需求计划风险确认 /// - public class SUPPLIER_CON_DATE_LOGS : CherryConReadBaseEntity + public class SUPPLIER_CON_DATE_LOGS : CherryWriteLogsBaseEnity { diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP.cs b/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP.cs index 313aa5c..730532b 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// M+6月物料需求计划风险确认 /// - public class SUPPLIER_CON_MMRP : CherryConReadBaseEntity + public class SUPPLIER_CON_MMRP : CherryWriteBaseEnity { [ExporterHeader(DisplayName = "奇瑞Id")] diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP_LOGS.cs index 5262292..44c3baa 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP_LOGS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP_LOGS.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// M+6月物料需求计划风险确认 /// - public class SUPPLIER_CON_MMRP_LOGS : CherryConReadBaseEntity + public class SUPPLIER_CON_MMRP_LOGS : CherryWriteLogsBaseEnity { [ExporterHeader(DisplayName = "奇瑞Id")] diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO.cs b/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO.cs index be03bc5..d7a1dbf 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 采购订单风险确认 /// - public class SUPPLIER_CON_PO : CherryConReadBaseEntity + public class SUPPLIER_CON_PO : CherryWriteBaseEnity { /// diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO_LOGS.cs index 0efeec6..b63c36d 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO_LOGS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO_LOGS.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 采购订单风险确认 /// - public class SUPPLIER_CON_PO_LOGS : CherryConReadBaseEntity + public class SUPPLIER_CON_PO_LOGS : CherryWriteLogsBaseEnity { /// diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs index 7e11003..4c25633 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 附件类数据 /// - public class SUPPLIER_PRO_ATTACHMENT_DATA : BaseEntity + public class SUPPLIER_PRO_ATTACHMENT_DATA : CherryWriteBaseEnity { /// diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA_LOGS.cs index 35a55e6..f878a6d 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA_LOGS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA_LOGS.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 附件类数据 /// - public class SUPPLIER_PRO_ATTACHMENT_DATA_LOGS : BaseEntity + public class SUPPLIER_PRO_ATTACHMENT_DATA_LOGS : CherryWriteLogsBaseEnity { /// diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT.cs index e6d678d..2ca05f2 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 环境业务数据 /// - public class SUPPLIER_PRO_ENVIRONMENT : BaseEntity + public class SUPPLIER_PRO_ENVIRONMENT : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT_LOGS.cs index 39a9725..976aa98 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT_LOGS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT_LOGS.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 环境业务数据 /// - public class SUPPLIER_PRO_ENVIRONMENT_LOGS : BaseEntity + public class SUPPLIER_PRO_ENVIRONMENT_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW.cs index e2fa30f..f4d8a2d 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity.Entitys /// /// 缺陷业务数据 /// - public class SUPPLIER_PRO_FLAW : BaseEntity + public class SUPPLIER_PRO_FLAW : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW_LOGS.cs index 0f65af6..b9fa27a 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW_LOGS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW_LOGS.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity.Entitys /// /// 缺陷业务数据 /// - public class SUPPLIER_PRO_FLAW_LOGS : BaseEntity + public class SUPPLIER_PRO_FLAW_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA.cs index 0addea4..a064898 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 物料主数据 /// - public class SUPPLIER_PRO_MATERIAL_DATA : BaseEntity + public class SUPPLIER_PRO_MATERIAL_DATA : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA_LOGS.cs index 6f2475c..51e2170 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA_LOGS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA_LOGS.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 物料主数据 /// - public class SUPPLIER_PRO_MATERIAL_DATA_LOGS : BaseEntity + public class SUPPLIER_PRO_MATERIAL_DATA_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE.cs index 618e440..78853a0 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 设备OEE达成率 /// - public class SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE : BaseEntity + public class SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS.cs index 69df642..6a26409 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 设备OEE达成率 /// - public class SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS : BaseEntity + public class SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS.cs index b720558..7cdeff4 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// OEE时间明细 /// - public class SUPPLIER_PRO_OEE_TIME_DETAILS : BaseEntity + public class SUPPLIER_PRO_OEE_TIME_DETAILS : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS.cs index d067914..1e853c2 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// OEE时间明细 /// - public class SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS : BaseEntity + public class SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS.cs index 27d9ec7..abe2528 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 工艺 /// - public class SUPPLIER_PRO_PROCESS : BaseEntity + public class SUPPLIER_PRO_PROCESS : CherryWriteBaseEnity { /// /// 奇瑞零件号 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT.cs index 13b218b..5e11411 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 工艺装备 /// - public class SUPPLIER_PRO_PROCESS_EQUIPMENT : BaseEntity + public class SUPPLIER_PRO_PROCESS_EQUIPMENT : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS.cs index 27d8607..e09d7f3 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 工艺装备 /// - public class SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS : BaseEntity + public class SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_LOGS.cs index 2f34436..3bd1bfd 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_LOGS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_LOGS.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity.Entitys /// /// 工艺 /// - public class SUPPLIER_PRO_PROCESS_LOGS : BaseEntity + public class SUPPLIER_PRO_PROCESS_LOGS : CherryWriteLogsBaseEnity { /// /// 奇瑞零件号 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_SINV_DATA.cs b/API/TaskManager.Entity/11-18/SUPPLIER_SINV_DATA.cs index 88a8e22..a9954de 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_SINV_DATA.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_SINV_DATA.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity /// /// 供应商共享库存 /// - public class SUPPLIER_SINV_DATA : CherryReadBaseEntity + public class SUPPLIER_SINV_DATA : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_SINV_DATA_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_SINV_DATA_LOGS.cs index 7315bd7..91c39de 100644 --- a/API/TaskManager.Entity/11-18/SUPPLIER_SINV_DATA_LOGS.cs +++ b/API/TaskManager.Entity/11-18/SUPPLIER_SINV_DATA_LOGS.cs @@ -5,7 +5,7 @@ namespace TaskManager.Entity /// /// 供应商共享库存 /// - public class SUPPLIER_SINV_DATA_LOGS : CherryReadBaseEntity + public class SUPPLIER_SINV_DATA_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entity.cs b/API/TaskManager.Entity/Entity.cs index 105b3f5..46bb17f 100644 --- a/API/TaskManager.Entity/Entity.cs +++ b/API/TaskManager.Entity/Entity.cs @@ -284,7 +284,10 @@ namespace TaskManager.Entity public class CherryConReadBaseEntity : BaseEntity { - + + [ExporterHeader(DisplayName = "请求发出日期")] + [MaxLength(30)] + public string? RequestDate { get; set; } /// /// 同步ID /// @@ -294,6 +297,47 @@ namespace TaskManager.Entity public string? Id { get; set; } } + + // [Index(nameof(Id), IsUnique = false)] + [Index(nameof(RequestDate), IsUnique = false)] + public class CherryWriteBaseEnity : BaseEntity + { + /// + /// 请求发出日期 + /// + [ExporterHeader(DisplayName = "请求发出日期")] + [MaxLength(30)] + public string? RequestDate { get; set; } + /// + /// 同步ID + /// + [ExporterHeader(DisplayName = "奇瑞记录ID")] + [ImporterHeader(Name = "奇瑞记录ID")] + [MaxLength(50)] + public string? Id { get; set; } + /// + + + } + public class CherryWriteLogsBaseEnity : BaseEntity + { + /// + /// 请求发出日期 + /// + [ExporterHeader(DisplayName = "请求发出日期")] + [MaxLength(30)] + public string? RequestDate { get; set; } + /// + /// 同步ID + /// + [ExporterHeader(DisplayName = "奇瑞记录ID")] + [ImporterHeader(Name = "奇瑞记录ID")] + [MaxLength(50)] + public string? Id { get; set; } + /// + + + } diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_BOM.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_BOM.cs index 2261631..7bcd73c 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_BOM.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_BOM.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// BOM主数据 /// - public class SUPPLIER_BOM : BaseEntity + public class SUPPLIER_BOM : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_BOM_LOGS.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_BOM_LOGS.cs index 4f8d58b..fa014d0 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_BOM_LOGS.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_BOM_LOGS.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// BOM主数据 /// - public class SUPPLIER_BOM_LOGS : BaseEntity + public class SUPPLIER_BOM_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_EMPLOYEE.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_EMPLOYEE.cs index 44e0edf..436db36 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_EMPLOYEE.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_EMPLOYEE.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 人员资质信息 /// - public class SUPPLIER_EMPLOYEE : BaseEntity + public class SUPPLIER_EMPLOYEE : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_EMPLOYEE_LOGS.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_EMPLOYEE_LOGS.cs index c145982..50ff5b0 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_EMPLOYEE_LOGS.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_EMPLOYEE_LOGS.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 人员资质信息 /// - public class SUPPLIER_EMPLOYEE_LOGS : BaseEntity + public class SUPPLIER_EMPLOYEE_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_INFO.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_INFO.cs index 1ff772b..2aa0450 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_INFO.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_INFO.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 供应商基础信息 /// - public class SUPPLIER_INFO : BaseEntity + public class SUPPLIER_INFO : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_INFO_LOGS.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_INFO_LOGS.cs index f47e4ac..7dfc824 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_INFO_LOGS.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_INFO_LOGS.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 供应商基础信息 /// - public class SUPPLIER_INFO_LOGS : BaseEntity + public class SUPPLIER_INFO_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_CPS.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_CPS.cs index ad287a5..329f366 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_CPS.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_CPS.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 过程控制项质量数据 /// - public class SUPPLIER_PRO_CPS : BaseEntity + public class SUPPLIER_PRO_CPS : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_CPS_LOGS.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_CPS_LOGS.cs index d1f9369..1f49487 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_CPS_LOGS.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_CPS_LOGS.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 过程控制项质量数据 /// - public class SUPPLIER_PRO_CPS_LOGS : BaseEntity + public class SUPPLIER_PRO_CPS_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_DATA.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_DATA.cs index 940d97c..a468e9b 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_DATA.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_DATA.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 生产过程数据 /// - public class SUPPLIER_PRO_DATA : BaseEntity + public class SUPPLIER_PRO_DATA : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_DATA_LOGS.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_DATA_LOGS.cs index 359b865..7b58189 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_DATA_LOGS.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_DATA_LOGS.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 生产过程数据 /// - public class SUPPLIER_PRO_DATA_LOGS : BaseEntity + public class SUPPLIER_PRO_DATA_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_FIRST_PASSYIELD.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_FIRST_PASSYIELD.cs index d1312cb..fe15c1b 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_FIRST_PASSYIELD.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_FIRST_PASSYIELD.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 产品一次合格率 /// - public class SUPPLIER_PRO_FIRST_PASSYIELD : BaseEntity + public class SUPPLIER_PRO_FIRST_PASSYIELD : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_FIRST_PASSYIELD_LOGS.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_FIRST_PASSYIELD_LOGS.cs index ceb56a8..24181c5 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_FIRST_PASSYIELD_LOGS.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_FIRST_PASSYIELD_LOGS.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 产品一次合格率 /// - public class SUPPLIER_PRO_FIRST_PASSYIELD_LOGS : BaseEntity + public class SUPPLIER_PRO_FIRST_PASSYIELD_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_MATERIAL_STOCK.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_MATERIAL_STOCK.cs index 5faea40..f7f78e3 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_MATERIAL_STOCK.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_MATERIAL_STOCK.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 来料检验数据 /// - public class SUPPLIER_PRO_MATERIAL_STOCK : BaseEntity + public class SUPPLIER_PRO_MATERIAL_STOCK : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_MATERIAL_STOCK_LOGS.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_MATERIAL_STOCK_LOGS.cs index 30a29e6..849c536 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_MATERIAL_STOCK_LOGS.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_MATERIAL_STOCK_LOGS.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 来料检验数据 /// - public class SUPPLIER_PRO_MATERIAL_STOCK_LOGS : BaseEntity + public class SUPPLIER_PRO_MATERIAL_STOCK_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_SCHEDULING.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_SCHEDULING.cs index c51bb65..20433ed 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_SCHEDULING.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_SCHEDULING.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 排产数据 /// - public class SUPPLIER_PRO_SCHEDULING : BaseEntity + public class SUPPLIER_PRO_SCHEDULING : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_SCHEDULING_LOGS.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_SCHEDULING_LOGS.cs index 85cf457..160ebdb 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_SCHEDULING_LOGS.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_SCHEDULING_LOGS.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 排产数据 /// - public class SUPPLIER_PRO_SCHEDULING_LOGS : BaseEntity + public class SUPPLIER_PRO_SCHEDULING_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD.cs index 0089e0f..bc60be4 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 工位一次合格率 /// - public class SUPPLIER_PRO_STATION_FIRST_PASSYIELD : BaseEntity + public class SUPPLIER_PRO_STATION_FIRST_PASSYIELD : CherryWriteBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS.cs index f7c6631..de341a2 100644 --- a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS.cs +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS.cs @@ -10,7 +10,7 @@ namespace TaskManager.Entity /// /// 工位一次合格率 /// - public class SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS : BaseEntity + public class SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS : CherryWriteLogsBaseEnity { /// /// 供应商代码 diff --git a/API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.Designer.cs new file mode 100644 index 0000000..ff79466 --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.Designer.cs @@ -0,0 +1,10261 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using TaskManager.EntityFramework; + +#nullable disable + +namespace TaskManager.EntityFramework.Migrations +{ + [DbContext(typeof(JobDbContext))] + [Migration("20250619005547_z202506190001")] + partial class z202506190001 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "8.0.0") + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("Measures") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("PlantId") + .HasMaxLength(64) + .HasColumnType("NVARCHAR"); + + b.Property("QuantityMeet1") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet10") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet11") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet12") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet13") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet14") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet15") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet16") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet17") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet18") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet19") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet2") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet20") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet21") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet22") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet23") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet24") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet25") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet26") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet27") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet28") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet29") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet3") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet30") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet31") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet4") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet5") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet6") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet7") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet8") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet9") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("ReleaseEdition") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StartDate") + .HasColumnType("datetime2"); + + b.Property("SupplierCode") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_CON_DATE", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("Measures") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("PlantId") + .HasMaxLength(64) + .HasColumnType("NVARCHAR"); + + b.Property("QuantityMeet1") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet10") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet11") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet12") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet13") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet14") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet15") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet16") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet17") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet18") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet19") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet2") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet20") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet21") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet22") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet23") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet24") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet25") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet26") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet27") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet28") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet29") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet3") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet30") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet31") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet4") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet5") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet6") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet7") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet8") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet9") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("ReleaseEdition") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StartDate") + .HasColumnType("datetime2"); + + b.Property("SupplierCode") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("Measures") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("PlantId") + .HasMaxLength(64) + .HasColumnType("NVARCHAR"); + + b.Property("QuantityMeet1") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet10") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet11") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet12") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet2") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet3") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet4") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet5") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet6") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet7") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet8") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet9") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("ReleaseEdition") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StartMonth") + .HasMaxLength(7) + .HasColumnType("NVARCHAR"); + + b.Property("SupplierCode") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_CON_MMRP", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("Measures") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("PlantId") + .HasMaxLength(64) + .HasColumnType("NVARCHAR"); + + b.Property("QuantityMeet1") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet10") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet11") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet12") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet2") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet3") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet4") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet5") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet6") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet7") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet8") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet9") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("ReleaseEdition") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StartMonth") + .HasMaxLength(7) + .HasColumnType("NVARCHAR"); + + b.Property("SupplierCode") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Measures") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("PurchaseOrder") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("QuantityMeet") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SerialNumber") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("SupplierCode") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_CON_PO", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Measures") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("PurchaseOrder") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("QuantityMeet") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SerialNumber") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("SupplierCode") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DeviceId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("VARCHAR"); + + b.Property("FileUrl") + .IsRequired() + .HasMaxLength(1000) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductSn") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DeviceId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("VARCHAR"); + + b.Property("FileUrl") + .IsRequired() + .HasMaxLength(1000) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("Type") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductSn") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DeviceId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("VARCHAR"); + + b.Property("FileUrl") + .IsRequired() + .HasMaxLength(1000) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductSn") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("ChineseUnit") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CollectTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataCollectionPoint") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("EnvIndicatorName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("EquipmentCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("EquipmentName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("LowerLimit") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("NumValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpperLimit") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("ChineseUnit") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CollectTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataCollectionPoint") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("EnvIndicatorName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("EquipmentCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("EquipmentName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("LowerLimit") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("NumValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpperLimit") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ClassOfName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DefectsCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DefectsDesc") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("VARCHAR"); + + b.Property("DefectsLevel") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("DefectsName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Numberofdefect") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductBatch") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_FLAW", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ClassOfName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DefectsCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DefectsDesc") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("VARCHAR"); + + b.Property("DefectsLevel") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("DefectsName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Numberofdefect") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductBatch") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Launched") + .HasMaxLength(6) + .HasColumnType("VARCHAR"); + + b.Property("MpnCode") + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("MpnName") + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("OemHardwareRevision") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OemModel") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OemProjectName") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("OemSoftwareRevision") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProcurementType") + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .HasPrecision(1) + .HasColumnType("DECIMAL"); + + b.Property("ValidDays") + .IsRequired() + .HasMaxLength(12) + .HasColumnType("CHAR"); + + b.Property("VendorHardwareRevision") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Launched") + .HasMaxLength(6) + .HasColumnType("VARCHAR"); + + b.Property("MpnCode") + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("MpnName") + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("OemHardwareRevision") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OemModel") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OemProjectName") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("OemSoftwareRevision") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProcurementType") + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .HasPrecision(1) + .HasColumnType("DECIMAL"); + + b.Property("ValidDays") + .IsRequired() + .HasMaxLength(12) + .HasColumnType("CHAR"); + + b.Property("VendorHardwareRevision") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DeviceId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("Rate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("RateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DeviceId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("Rate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("RateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeviceId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(33) + .HasColumnType("VARCHAR"); + + b.Property("EndTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("RecId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StartTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubType") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubTypeName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeviceId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(33) + .HasColumnType("VARCHAR"); + + b.Property("EndTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("RecId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StartTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubType") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubTypeName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaxProcessingCapacity") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("MoldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("MoldName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProcessCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProcessName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProcessOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("Rhythm") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("RhythmUnit") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TechCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TechName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TechVersion") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("ValidPeriod") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CalibrationDate") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CalibrationDueDays") + .IsRequired() + .HasMaxLength(12) + .HasColumnType("CHAR"); + + b.Property("CavityCount") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CoolingChannelLayout") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CurrentLocation") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CurrentUsageCount") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DesignLifeUnits") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DesignLifeValue") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DetectionAccuracy") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("DetectionRange") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("DeviceStatus") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DeviceType") + .HasPrecision(1) + .HasColumnType("DECIMAL"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Manufacturer") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("Material") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ModelNumber") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("MoldSize") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("OverhaulCount") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("ProductionDate") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("CHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SerialNumber") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("ToleranceRange") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("UnitType") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WearThreshold") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CalibrationDate") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CalibrationDueDays") + .IsRequired() + .HasMaxLength(12) + .HasColumnType("CHAR"); + + b.Property("CavityCount") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CoolingChannelLayout") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CurrentLocation") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CurrentUsageCount") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DesignLifeUnits") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DesignLifeValue") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DetectionAccuracy") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("DetectionRange") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("DeviceStatus") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DeviceType") + .HasPrecision(1) + .HasColumnType("DECIMAL"); + + b.Property("Manufacturer") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("Material") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ModelNumber") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("MoldSize") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("OverhaulCount") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("ProductionDate") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("CHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("SerialNumber") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ToleranceRange") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("UnitType") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WearThreshold") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CalibrationDate") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CalibrationDueDays") + .IsRequired() + .HasMaxLength(12) + .HasColumnType("CHAR"); + + b.Property("CavityCount") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CoolingChannelLayout") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CurrentLocation") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CurrentUsageCount") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DesignLifeUnits") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DesignLifeValue") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DetectionAccuracy") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("DetectionRange") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("DeviceStatus") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DeviceType") + .HasPrecision(1) + .HasColumnType("DECIMAL"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Manufacturer") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("Material") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ModelNumber") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("MoldSize") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("OverhaulCount") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("ProductionDate") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("CHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SerialNumber") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("ToleranceRange") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("UnitType") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WearThreshold") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaxProcessingCapacity") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("MoldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("MoldName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProcessCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProcessName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProcessOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("Rhythm") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("RhythmUnit") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TechCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TechName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TechVersion") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("ValidPeriod") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_PROCESS_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("BomCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("BomName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("BomVersion") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialUnit") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SubMaterialCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubMaterialName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubMaterialQuota") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubMaterialType") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("SubMaterialUnit") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductType") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_BOM", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("BomCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("BomName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("BomVersion") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialUnit") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SubMaterialCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubMaterialName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubMaterialQuota") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubMaterialType") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("SubMaterialUnit") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductType") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_BOM_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataCreateTime") + .HasColumnType("datetime2"); + + b.Property("DeliveryNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReceivingCrossings") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("RoadReceiveTime") + .HasColumnType("datetime2"); + + b.Property("RoadShippedTime") + .HasColumnType("datetime2"); + + b.Property("SerialNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialSrate") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SupplierReceiveTime") + .HasColumnType("datetime2"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_DEL_STATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataCreateTime") + .HasColumnType("datetime2"); + + b.Property("DeliveryNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReceivingCrossings") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("RoadReceiveTime") + .HasColumnType("datetime2"); + + b.Property("RoadShippedTime") + .HasColumnType("datetime2"); + + b.Property("SerialNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialSrate") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SupplierReceiveTime") + .HasColumnType("datetime2"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_DEL_STATE_LOGS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheckInTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CheckOutTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("HaveQuantity") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OperatorId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OperatorName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PositionId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PositionName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("QualificationLevel") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_EMPLOYEE", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheckInTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CheckOutTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("HaveQuantity") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("OperatorId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OperatorName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PositionId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PositionName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("QualificationLevel") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheckInTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CheckOutTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("HaveQuantity") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OperatorId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OperatorName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PositionId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PositionName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("QualificationLevel") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_EMPLOYEE_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("KeyStation") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StationOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_INFO", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("KeyStation") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StationOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_INFO_DT", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("KeyStation") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StationOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_INFO_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityCurrent") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StockState") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_INV_DATA"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityCurrent") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StockState") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_INV_DATA_LOGS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("IsUpdate") + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDemand1") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand10") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand11") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand12") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand13") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand14") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand15") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand16") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand17") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand18") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand19") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand2") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand20") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand21") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand22") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand23") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand24") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand25") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand26") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand27") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand28") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand29") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand3") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand30") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand31") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand4") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand5") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand6") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand7") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand8") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand9") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StartDate") + .HasColumnType("datetime2"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_MRP_DATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("IsUpdate") + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDemand1") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand10") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand11") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand12") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand13") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand14") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand15") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand16") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand17") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand18") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand19") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand2") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand20") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand21") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand22") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand23") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand24") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand25") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand26") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand27") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand28") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand29") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand3") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand30") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand31") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand4") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand5") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand6") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand7") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand8") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand9") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StartDate") + .HasColumnType("datetime2"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_MRP_DATE_LOGS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "createByUser"); + + b.Property("CreateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "createTime"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "isDelete"); + + b.Property("IsUpdate") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialCode"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)") + .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plantId"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plantName"); + + b.Property("QuantityDemand1") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); + + b.Property("QuantityDemand10") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); + + b.Property("QuantityDemand11") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); + + b.Property("QuantityDemand12") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); + + b.Property("QuantityDemand2") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); + + b.Property("QuantityDemand3") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); + + b.Property("QuantityDemand4") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); + + b.Property("QuantityDemand5") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); + + b.Property("QuantityDemand6") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); + + b.Property("QuantityDemand7") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); + + b.Property("QuantityDemand8") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); + + b.Property("QuantityDemand9") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StartMonth") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "startMonth"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); + + b.Property("UpdateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "updateTime"); + + b.Property("Version") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "version"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_MRP_MONTH"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "createByUser"); + + b.Property("CreateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "createTime"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "isDelete"); + + b.Property("IsUpdate") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialCode"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)") + .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plantId"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plantName"); + + b.Property("QuantityDemand1") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); + + b.Property("QuantityDemand10") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); + + b.Property("QuantityDemand11") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); + + b.Property("QuantityDemand12") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); + + b.Property("QuantityDemand2") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); + + b.Property("QuantityDemand3") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); + + b.Property("QuantityDemand4") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); + + b.Property("QuantityDemand5") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); + + b.Property("QuantityDemand6") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); + + b.Property("QuantityDemand7") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); + + b.Property("QuantityDemand8") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); + + b.Property("QuantityDemand9") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StartMonth") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "startMonth"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); + + b.Property("UpdateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "updateTime"); + + b.Property("Version") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "version"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_MRP_MONTH_LOGS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("ConfirmTime") + .HasColumnType("datetime2"); + + b.Property("CreatQuantity") + .HasColumnType("decimal(18,2)"); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateRequired") + .HasColumnType("datetime2"); + + b.Property("DemandSrate") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("DemandType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("OnTimePercentage") + .HasColumnType("decimal(18,2)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityInTransit") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityReceive") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SummaryCreatQuantity") + .HasColumnType("decimal(18,2)"); + + b.Property("SummaryQuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("SummaryQuantityInTransit") + .HasColumnType("decimal(18,2)"); + + b.Property("SummaryQuantityReceive") + .HasColumnType("decimal(18,2)"); + + b.Property("SummarySign") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_MRP_STATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("ConfirmTime") + .HasColumnType("datetime2"); + + b.Property("CreatQuantity") + .HasColumnType("decimal(18,2)"); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateRequired") + .HasColumnType("datetime2"); + + b.Property("DemandSrate") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("DemandType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("OnTimePercentage") + .HasColumnType("decimal(18,2)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityInTransit") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityReceive") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SummaryCreatQuantity") + .HasColumnType("decimal(18,2)"); + + b.Property("SummaryQuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("SummaryQuantityInTransit") + .HasColumnType("decimal(18,2)"); + + b.Property("SummaryQuantityReceive") + .HasColumnType("decimal(18,2)"); + + b.Property("SummarySign") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_MRP_STATE_LOGS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateGap") + .HasColumnType("decimal(18,2)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("InventoryGap") + .HasColumnType("decimal(18,2)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityCurrent") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityInTransit") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityPlanned") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityPlannedDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReckonDate") + .HasColumnType("datetime2"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_MRP_WARNING"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Batch") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Country") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeliveryDate") + .HasColumnType("datetime2"); + + b.Property("DeliveryPlace") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ItemType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("MaterialUnit") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Note") + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PurchaseOrder") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Purchaser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SerialNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Supplier") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TradeTerms") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("VoucherDate") + .HasColumnType("datetime2"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_PO"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Batch") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Country") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeliveryDate") + .HasColumnType("datetime2"); + + b.Property("DeliveryPlace") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ItemType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("MaterialUnit") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Note") + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PurchaseOrder") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Purchaser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SerialNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Supplier") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TradeTerms") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("VoucherDate") + .HasColumnType("datetime2"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_PO_LOGS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CarrierCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Cc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("Characteristic") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheckMode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("CheckResult") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CollectTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DecimalValue") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); + + b.Property("DetectionMode") + .HasMaxLength(20) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("FttQty") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("GatherSpot") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IntputQty") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("LowerLimit") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Parameter") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("Sc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("Spc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("StandardValue") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UnitCn") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("UnitEn") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("UpperLimit") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); + + b.Property("VendorFieldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldDesc") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductBatch") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_CPS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CarrierCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Cc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("Characteristic") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheckMode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("CheckResult") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CollectTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DecimalValue") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); + + b.Property("DetectionMode") + .HasMaxLength(20) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("FttQty") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("GatherSpot") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IntputQty") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("LowerLimit") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Parameter") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("Sc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("Spc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("StandardValue") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UnitCn") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("UnitEn") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("UpperLimit") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); + + b.Property("VendorFieldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldDesc") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductBatch") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AssemblyMaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("ModelCategory") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MotorMaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnLineDate") + .HasColumnType("datetime2"); + + b.Property("OnLineTime") + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); + + b.Property("Plant") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SortDate") + .HasColumnType("datetime2"); + + b.Property("SortTime") + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_PRO_CSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AssemblyMaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("ModelCategory") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MotorMaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnLineDate") + .HasColumnType("datetime2"); + + b.Property("OnLineTime") + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); + + b.Property("Plant") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SortDate") + .HasColumnType("datetime2"); + + b.Property("SortTime") + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildHardwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildPackageInfo") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildSoftwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildSource") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CollectTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("CHAR"); + + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FinalQualityStatus") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("InstrumentQualityStatus") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ManualQualityStatus") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("MaterialInputTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("MaterialOutputTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ParentHardwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ParentSoftwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SubBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubProdName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubProdNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubProdNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubProdSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierName") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorFieldName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldNum") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductBatch") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_DATA", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildHardwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildPackageInfo") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildSoftwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildSource") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CollectTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("CHAR"); + + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FinalQualityStatus") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("InstrumentQualityStatus") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ManualQualityStatus") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("MaterialInputTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("MaterialOutputTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ParentHardwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ParentSoftwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SubBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubProdName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubProdNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubProdNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubProdSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierName") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorFieldName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldNum") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductBatch") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AcceptableNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DefectiveNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OncePassRateRealValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("OncePassRateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkOrderNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WorkshopName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AcceptableNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DefectiveNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OncePassRateRealValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("OncePassRateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkOrderNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WorkshopName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnLineTime") + .HasColumnType("datetime2"); + + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_PRO_HSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnLineTime") + .HasColumnType("datetime2"); + + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheckNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheckResult") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("CHAR"); + + b.Property("CheckTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ComponentCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ComponentName") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeadLine") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("FeatureLower") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FeatureName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("FeatureUnit") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("FeatureUpper") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FeatureValue") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("StandardValue") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubBatchNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubBatchSn") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierAddress") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierSubCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierSubName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorFieldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldDesc") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheckNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheckResult") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("CHAR"); + + b.Property("CheckTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ComponentCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ComponentName") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeadLine") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("FeatureLower") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FeatureName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("FeatureUnit") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("FeatureUpper") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FeatureValue") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("StandardValue") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubBatchNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubBatchSn") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierAddress") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierSubCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierSubName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorFieldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldDesc") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Assembly") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "assembly"); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "createByUser"); + + b.Property("CreateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "createTime"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "isDelete"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialCode"); + + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "models"); + + b.Property("Omterior") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Pattern") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "pattern"); + + b.Property("Plant") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plant"); + + b.Property("Quantity1") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity1"); + + b.Property("Quantity2") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity2"); + + b.Property("Quantity3") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity3"); + + b.Property("Quantity4") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity4"); + + b.Property("Quantity5") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity5"); + + b.Property("Quantity6") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity6"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SalseDepartment") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("StartMonth") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "startMonth"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "type"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); + + b.Property("UpdateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "updateTime"); + + b.Property("Version") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "version"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_PRO_PLANING"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Assembly") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "assembly"); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "createByUser"); + + b.Property("CreateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "createTime"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "isDelete"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialCode"); + + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "models"); + + b.Property("Omterior") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Pattern") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "pattern"); + + b.Property("Plant") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plant"); + + b.Property("Quantity1") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity1"); + + b.Property("Quantity2") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity2"); + + b.Property("Quantity3") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity3"); + + b.Property("Quantity4") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity4"); + + b.Property("Quantity5") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity5"); + + b.Property("Quantity6") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity6"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SalseDepartment") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("StartMonth") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "startMonth"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "type"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); + + b.Property("UpdateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "updateTime"); + + b.Property("Version") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "version"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("ActualBeginTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ActualEndTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ManufactureInputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ManufactureNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureOutputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlanBeginTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("PlanEndTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("PlanNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlanStatus") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("ActualBeginTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ActualEndTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ManufactureInputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ManufactureNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureOutputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlanBeginTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("PlanEndTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("PlanNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlanStatus") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AcceptableNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DefectiveNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OncePassRateRealValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("OncePassRateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkOrderNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AcceptableNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DefectiveNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OncePassRateRealValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("OncePassRateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkOrderNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FinalOnLineTime") + .HasColumnType("datetime2"); + + b.Property("FinalWorkshop") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("nvarchar(5)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnLineTime") + .HasColumnType("datetime2"); + + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_PRO_TSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FinalOnLineTime") + .HasColumnType("datetime2"); + + b.Property("FinalWorkshop") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("nvarchar(5)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnLineTime") + .HasColumnType("datetime2"); + + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_PRO_TSCHEDUL_LOGS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DemandPickupTime") + .HasColumnType("datetime2"); + + b.Property("Feedback") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Judge") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("LotNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("PickUpCrossings") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PickUpLocation") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Plant") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("ReturnNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReturnReason") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReturnType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialSrate") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_RETURN"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DemandPickupTime") + .HasColumnType("datetime2"); + + b.Property("Feedback") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Judge") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("LotNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("PickUpCrossings") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PickUpLocation") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Plant") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("ReturnNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReturnReason") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReturnType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialSrate") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_RETURN_LOGS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateReceived") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PurchasingGroup") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("ScheduleAgreement") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_SA_WEEK"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateReceived") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PurchasingGroup") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("ScheduleAgreement") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id"); + + b.HasIndex("ReadState"); + + b.HasIndex("RequestDate"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_SA_WEEK_LOGS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("InventoryStatus") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("VARCHAR"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("MaterialType") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("VARCHAR"); + + b.Property("ProductionCycle") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("QuantityCurrent") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityPlan") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SafetyStock") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SupplierBatch") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplieryxqDate") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("RequestDate"); + + b.ToTable("SUPPLIER_SINV_DATA", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA_LOGS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("InventoryStatus") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("VARCHAR"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("MaterialType") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("VARCHAR"); + + b.Property("ProductionCycle") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("QuantityCurrent") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityPlan") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SafetyStock") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SupplierBatch") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplieryxqDate") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Creator") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("Subscriber") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TableName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TaskName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("TaskAllocation"); + }); + + modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Api") + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("Client") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Corn") + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAuto") + .HasColumnType("bit"); + + b.Property("Module") + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PageSize") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TableName") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TaskName") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Url") + .HasMaxLength(500) + .HasColumnType("nvarchar(500)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("TaskConifgure"); + }); + + modelBuilder.Entity("TaskManager.Entity.TaskLog", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Info") + .HasColumnType("nvarchar(max)"); + + b.Property("Module") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Path") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TaskName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Type") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("Version") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Module"); + + b.ToTable("TaskLogs"); + }); + + modelBuilder.Entity("TaskManager.Entity.TaskSub", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUser") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataCount") + .HasColumnType("int"); + + b.Property("Domain") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("FailedCount") + .HasColumnType("int"); + + b.Property("FailedInfo") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("Site") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("Subscriber") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SyncedPageCount") + .HasColumnType("int"); + + b.Property("TableName") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TaskName") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUser") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("TaskSub"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.cs b/API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.cs new file mode 100644 index 0000000..b0b65c3 --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.cs @@ -0,0 +1,1389 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace TaskManager.EntityFramework.Migrations +{ + /// + public partial class z202506190001 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_SINV_DATA_LOGS_Id", + table: "SUPPLIER_SINV_DATA_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_SINV_DATA_LOGS_ReadState", + table: "SUPPLIER_SINV_DATA_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_SINV_DATA_LOGS_RequestDate", + table: "SUPPLIER_SINV_DATA_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_SINV_DATA_LOGS_TaskId", + table: "SUPPLIER_SINV_DATA_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_SINV_DATA_LOGS_WriteState", + table: "SUPPLIER_SINV_DATA_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_SINV_DATA_Id", + table: "SUPPLIER_SINV_DATA"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_SINV_DATA_ReadState", + table: "SUPPLIER_SINV_DATA"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_SINV_DATA_TaskId", + table: "SUPPLIER_SINV_DATA"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_SINV_DATA_WriteState", + table: "SUPPLIER_SINV_DATA"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_PO_LOGS_Id", + table: "SUPPLIER_CON_PO_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_PO_LOGS_ReadState", + table: "SUPPLIER_CON_PO_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_PO_LOGS_TaskId", + table: "SUPPLIER_CON_PO_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_PO_LOGS_WriteState", + table: "SUPPLIER_CON_PO_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_PO_Id", + table: "SUPPLIER_CON_PO"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_PO_ReadState", + table: "SUPPLIER_CON_PO"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_PO_TaskId", + table: "SUPPLIER_CON_PO"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_PO_WriteState", + table: "SUPPLIER_CON_PO"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_MMRP_LOGS_Id", + table: "SUPPLIER_CON_MMRP_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_MMRP_LOGS_ReadState", + table: "SUPPLIER_CON_MMRP_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_MMRP_LOGS_TaskId", + table: "SUPPLIER_CON_MMRP_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_MMRP_LOGS_WriteState", + table: "SUPPLIER_CON_MMRP_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_MMRP_Id", + table: "SUPPLIER_CON_MMRP"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_MMRP_ReadState", + table: "SUPPLIER_CON_MMRP"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_MMRP_TaskId", + table: "SUPPLIER_CON_MMRP"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_MMRP_WriteState", + table: "SUPPLIER_CON_MMRP"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_DATE_LOGS_Id", + table: "SUPPLIER_CON_DATE_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_DATE_LOGS_ReadState", + table: "SUPPLIER_CON_DATE_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_DATE_LOGS_TaskId", + table: "SUPPLIER_CON_DATE_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_DATE_LOGS_WriteState", + table: "SUPPLIER_CON_DATE_LOGS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_DATE_Id", + table: "SUPPLIER_CON_DATE"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_DATE_ReadState", + table: "SUPPLIER_CON_DATE"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_DATE_TaskId", + table: "SUPPLIER_CON_DATE"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_DATE_WriteState", + table: "SUPPLIER_CON_DATE"); + + migrationBuilder.AlterColumn( + name: "TaskName", + table: "TaskLogs", + type: "nvarchar(50)", + maxLength: 50, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(30)", + oldMaxLength: 30, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Module", + table: "TaskLogs", + type: "nvarchar(50)", + maxLength: 50, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(30)", + oldMaxLength: 30, + oldNullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_SCHEDULING_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_SCHEDULING_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_SCHEDULING", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_SCHEDULING", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_PROCESS_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_PROCESS_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_PROCESS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_PROCESS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_OEE_TIME_DETAILS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_OEE_TIME_DETAILS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_MATERIAL_DATA", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_MATERIAL_DATA", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_FLAW_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_FLAW_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_FLAW", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_FLAW", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_ENVIRONMENT_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_ENVIRONMENT_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_ENVIRONMENT", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_ENVIRONMENT", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_DATA_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_DATA_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_DATA", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_DATA", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_CPS_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_CPS_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_CPS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_CPS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_PRO_ATTACHMENT_DATA", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_ATTACHMENT_DATA", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_INFO_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_INFO_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_INFO", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_INFO", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_EMPLOYEE_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_EMPLOYEE_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_EMPLOYEE", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_EMPLOYEE", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_CON_PO_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_CON_PO", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AlterColumn( + name: "Id", + table: "SUPPLIER_CON_MMRP_LOGS", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(450)", + oldNullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_CON_MMRP_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AlterColumn( + name: "Id", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(450)", + oldNullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_CON_DATE_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_CON_DATE", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_BOM_LOGS", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_BOM_LOGS", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.AddColumn( + name: "Id", + table: "SUPPLIER_BOM", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "RequestDate", + table: "SUPPLIER_BOM", + type: "nvarchar(30)", + maxLength: 30, + nullable: true); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_STATION_FIRST_PASSYIELD_RequestDate", + table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_SCHEDULING_RequestDate", + table: "SUPPLIER_PRO_SCHEDULING", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PROCESS_EQUIPMENT_RequestDate", + table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PROCESS_RequestDate", + table: "SUPPLIER_PRO_PROCESS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_OEE_TIME_DETAILS_RequestDate", + table: "SUPPLIER_PRO_OEE_TIME_DETAILS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_RequestDate", + table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_MATERIAL_STOCK_RequestDate", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_MATERIAL_DATA_RequestDate", + table: "SUPPLIER_PRO_MATERIAL_DATA", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_FLAW_RequestDate", + table: "SUPPLIER_PRO_FLAW", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_FIRST_PASSYIELD_RequestDate", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_ENVIRONMENT_RequestDate", + table: "SUPPLIER_PRO_ENVIRONMENT", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_DATA_RequestDate", + table: "SUPPLIER_PRO_DATA", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CPS_RequestDate", + table: "SUPPLIER_PRO_CPS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_ATTACHMENT_DATA_RequestDate", + table: "SUPPLIER_PRO_ATTACHMENT_DATA", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INFO_RequestDate", + table: "SUPPLIER_INFO", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_EMPLOYEE_RequestDate", + table: "SUPPLIER_EMPLOYEE", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_PO_RequestDate", + table: "SUPPLIER_CON_PO", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_MMRP_RequestDate", + table: "SUPPLIER_CON_MMRP", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_DATE_RequestDate", + table: "SUPPLIER_CON_DATE", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_BOM_RequestDate", + table: "SUPPLIER_BOM", + column: "RequestDate"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_STATION_FIRST_PASSYIELD_RequestDate", + table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_SCHEDULING_RequestDate", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_PROCESS_EQUIPMENT_RequestDate", + table: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_PROCESS_RequestDate", + table: "SUPPLIER_PRO_PROCESS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_OEE_TIME_DETAILS_RequestDate", + table: "SUPPLIER_PRO_OEE_TIME_DETAILS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_RequestDate", + table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_MATERIAL_STOCK_RequestDate", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_MATERIAL_DATA_RequestDate", + table: "SUPPLIER_PRO_MATERIAL_DATA"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_FLAW_RequestDate", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_FIRST_PASSYIELD_RequestDate", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_ENVIRONMENT_RequestDate", + table: "SUPPLIER_PRO_ENVIRONMENT"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_DATA_RequestDate", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_CPS_RequestDate", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_PRO_ATTACHMENT_DATA_RequestDate", + table: "SUPPLIER_PRO_ATTACHMENT_DATA"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_INFO_RequestDate", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_EMPLOYEE_RequestDate", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_PO_RequestDate", + table: "SUPPLIER_CON_PO"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_MMRP_RequestDate", + table: "SUPPLIER_CON_MMRP"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_DATE_RequestDate", + table: "SUPPLIER_CON_DATE"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_BOM_RequestDate", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_SCHEDULING_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_SCHEDULING_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_PROCESS_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_PROCESS_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_PROCESS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_PROCESS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_OEE_TIME_DETAILS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_OEE_TIME_DETAILS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_MATERIAL_DATA"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_MATERIAL_DATA"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_FLAW_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_FLAW_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_ENVIRONMENT_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_ENVIRONMENT_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_ENVIRONMENT"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_ENVIRONMENT"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_DATA_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_DATA_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_CPS_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_CPS_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_PRO_ATTACHMENT_DATA"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_PRO_ATTACHMENT_DATA"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_INFO_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_INFO_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_EMPLOYEE_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_EMPLOYEE_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_CON_PO_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_CON_PO"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_CON_MMRP_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_CON_MMRP"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_CON_DATE_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_CON_DATE"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_BOM_LOGS"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_BOM_LOGS"); + + migrationBuilder.DropColumn( + name: "Id", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "RequestDate", + table: "SUPPLIER_BOM"); + + migrationBuilder.AlterColumn( + name: "TaskName", + table: "TaskLogs", + type: "nvarchar(30)", + maxLength: 30, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Module", + table: "TaskLogs", + type: "nvarchar(30)", + maxLength: 30, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Id", + table: "SUPPLIER_CON_MMRP_LOGS", + type: "nvarchar(450)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Id", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(450)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SINV_DATA_LOGS_Id", + table: "SUPPLIER_SINV_DATA_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SINV_DATA_LOGS_ReadState", + table: "SUPPLIER_SINV_DATA_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SINV_DATA_LOGS_RequestDate", + table: "SUPPLIER_SINV_DATA_LOGS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SINV_DATA_LOGS_TaskId", + table: "SUPPLIER_SINV_DATA_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SINV_DATA_LOGS_WriteState", + table: "SUPPLIER_SINV_DATA_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SINV_DATA_Id", + table: "SUPPLIER_SINV_DATA", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SINV_DATA_ReadState", + table: "SUPPLIER_SINV_DATA", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SINV_DATA_TaskId", + table: "SUPPLIER_SINV_DATA", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SINV_DATA_WriteState", + table: "SUPPLIER_SINV_DATA", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_PO_LOGS_Id", + table: "SUPPLIER_CON_PO_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_PO_LOGS_ReadState", + table: "SUPPLIER_CON_PO_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_PO_LOGS_TaskId", + table: "SUPPLIER_CON_PO_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_PO_LOGS_WriteState", + table: "SUPPLIER_CON_PO_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_PO_Id", + table: "SUPPLIER_CON_PO", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_PO_ReadState", + table: "SUPPLIER_CON_PO", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_PO_TaskId", + table: "SUPPLIER_CON_PO", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_PO_WriteState", + table: "SUPPLIER_CON_PO", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_MMRP_LOGS_Id", + table: "SUPPLIER_CON_MMRP_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_MMRP_LOGS_ReadState", + table: "SUPPLIER_CON_MMRP_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_MMRP_LOGS_TaskId", + table: "SUPPLIER_CON_MMRP_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_MMRP_LOGS_WriteState", + table: "SUPPLIER_CON_MMRP_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_MMRP_Id", + table: "SUPPLIER_CON_MMRP", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_MMRP_ReadState", + table: "SUPPLIER_CON_MMRP", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_MMRP_TaskId", + table: "SUPPLIER_CON_MMRP", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_MMRP_WriteState", + table: "SUPPLIER_CON_MMRP", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_DATE_LOGS_Id", + table: "SUPPLIER_CON_DATE_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_DATE_LOGS_ReadState", + table: "SUPPLIER_CON_DATE_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_DATE_LOGS_TaskId", + table: "SUPPLIER_CON_DATE_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_DATE_LOGS_WriteState", + table: "SUPPLIER_CON_DATE_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_DATE_Id", + table: "SUPPLIER_CON_DATE", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_DATE_ReadState", + table: "SUPPLIER_CON_DATE", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_DATE_TaskId", + table: "SUPPLIER_CON_DATE", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_DATE_WriteState", + table: "SUPPLIER_CON_DATE", + column: "WriteState"); + } + } +} diff --git a/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs b/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs index bf96d1e..4306349 100644 --- a/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs +++ b/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs @@ -190,6 +190,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StartDate") .HasColumnType("datetime2"); @@ -215,13 +219,7 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); + b.HasIndex("RequestDate"); b.ToTable("SUPPLIER_CON_DATE", (string)null); }); @@ -394,6 +392,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StartDate") .HasColumnType("datetime2"); @@ -419,14 +421,6 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); }); @@ -446,7 +440,7 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("NVARCHAR"); b.Property("Id") - .HasColumnType("nvarchar(450)"); + .HasColumnType("nvarchar(max)"); b.Property("MaterialCode") .HasMaxLength(50) @@ -521,6 +515,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StartMonth") .HasMaxLength(7) .HasColumnType("NVARCHAR"); @@ -547,13 +545,7 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); + b.HasIndex("RequestDate"); b.ToTable("SUPPLIER_CON_MMRP", (string)null); }); @@ -574,7 +566,7 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("NVARCHAR"); b.Property("Id") - .HasColumnType("nvarchar(450)"); + .HasColumnType("nvarchar(max)"); b.Property("MaterialCode") .HasMaxLength(50) @@ -649,6 +641,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StartMonth") .HasMaxLength(7) .HasColumnType("NVARCHAR"); @@ -675,14 +671,6 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); }); @@ -726,6 +714,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SerialNumber") .HasMaxLength(10) .HasColumnType("NVARCHAR"); @@ -752,13 +744,7 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); + b.HasIndex("RequestDate"); b.ToTable("SUPPLIER_CON_PO", (string)null); }); @@ -803,6 +789,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SerialNumber") .HasMaxLength(10) .HasColumnType("NVARCHAR"); @@ -829,14 +819,6 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); }); @@ -885,6 +867,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(1000) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("ProductionLineId") .IsRequired() .HasMaxLength(32) @@ -904,6 +890,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(32) @@ -953,6 +943,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); }); @@ -1114,6 +1106,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(1000) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("ProductionLineId") .IsRequired() .HasMaxLength(32) @@ -1133,6 +1129,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(32) @@ -1225,6 +1225,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(100) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("LowerLimit") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); @@ -1262,6 +1266,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) @@ -1296,6 +1304,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); }); @@ -1339,6 +1349,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(100) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("LowerLimit") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); @@ -1376,6 +1390,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) @@ -1464,6 +1482,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(100) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) @@ -1507,6 +1529,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(32) @@ -1577,6 +1603,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_FLAW", (string)null); }); @@ -1631,6 +1659,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(100) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) @@ -1674,6 +1706,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(32) @@ -1772,6 +1808,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(19) .HasColumnType("CHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("Launched") .HasMaxLength(6) .HasColumnType("VARCHAR"); @@ -1822,6 +1862,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) @@ -1865,6 +1909,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); }); @@ -1893,6 +1939,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(19) .HasColumnType("CHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("Launched") .HasMaxLength(6) .HasColumnType("VARCHAR"); @@ -1943,6 +1993,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) @@ -2024,6 +2078,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(50) .HasColumnType("nvarchar"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) @@ -2071,6 +2129,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(32) @@ -2131,6 +2193,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); }); @@ -2169,6 +2233,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(50) .HasColumnType("nvarchar"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) @@ -2216,6 +2284,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(32) @@ -2305,6 +2377,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(19) .HasColumnType("CHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("PlantId") .IsRequired() .HasMaxLength(32) @@ -2338,6 +2414,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StartTime") .IsRequired() .HasMaxLength(19) @@ -2397,6 +2477,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); }); @@ -2426,6 +2508,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(19) .HasColumnType("CHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("PlantId") .IsRequired() .HasMaxLength(32) @@ -2459,6 +2545,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StartTime") .IsRequired() .HasMaxLength(19) @@ -2547,6 +2637,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(64) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("MaxProcessingCapacity") .IsRequired() .HasMaxLength(64) @@ -2585,6 +2679,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("Rhythm") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); @@ -2644,6 +2742,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); }); @@ -2736,6 +2836,10 @@ namespace TaskManager.EntityFramework.Migrations .HasPrecision(1) .HasColumnType("DECIMAL"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("Manufacturer") .IsRequired() .HasMaxLength(64) @@ -2774,6 +2878,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SerialNumber") .IsRequired() .HasMaxLength(64) @@ -2824,6 +2932,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); }); @@ -3093,6 +3203,10 @@ namespace TaskManager.EntityFramework.Migrations .HasPrecision(1) .HasColumnType("DECIMAL"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("Manufacturer") .IsRequired() .HasMaxLength(64) @@ -3131,6 +3245,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SerialNumber") .IsRequired() .HasMaxLength(64) @@ -3210,6 +3328,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(64) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("MaxProcessingCapacity") .IsRequired() .HasMaxLength(64) @@ -3248,6 +3370,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("Rhythm") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); @@ -3351,6 +3477,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(19) .HasColumnType("CHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("MaterialUnit") .HasMaxLength(8) .HasColumnType("VARCHAR"); @@ -3364,6 +3494,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SubMaterialCode") .IsRequired() .HasMaxLength(32) @@ -3421,6 +3555,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_BOM", (string)null); }); @@ -3465,6 +3601,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(19) .HasColumnType("CHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("MaterialUnit") .HasMaxLength(8) .HasColumnType("VARCHAR"); @@ -3478,6 +3618,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SubMaterialCode") .IsRequired() .HasMaxLength(32) @@ -3787,6 +3931,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(1) .HasColumnType("CHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("OperatorId") .IsRequired() .HasMaxLength(32) @@ -3841,6 +3989,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(64) @@ -3881,6 +4033,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_EMPLOYEE", (string)null); }); @@ -4040,6 +4194,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(1) .HasColumnType("CHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("OperatorId") .IsRequired() .HasMaxLength(32) @@ -4094,6 +4252,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(64) @@ -4163,6 +4325,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(19) .HasColumnType("CHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("KeyStation") .IsRequired() .HasMaxLength(1) @@ -4201,6 +4367,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(32) @@ -4255,6 +4425,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_INFO", (string)null); }); @@ -4402,6 +4574,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(19) .HasColumnType("CHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("KeyStation") .IsRequired() .HasMaxLength(1) @@ -4440,6 +4616,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(32) @@ -6087,6 +6267,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(32) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("IntputQty") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); @@ -6143,6 +6327,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SamplingRate") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); @@ -6254,6 +6442,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_CPS", (string)null); }); @@ -6348,6 +6538,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(32) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("IntputQty") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); @@ -6404,6 +6598,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SamplingRate") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); @@ -6826,6 +7024,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(8) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("InstrumentQualityStatus") .HasMaxLength(8) .HasColumnType("VARCHAR"); @@ -6890,6 +7092,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(32) @@ -6997,6 +7203,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_DATA", (string)null); }); @@ -7068,6 +7276,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(8) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("InstrumentQualityStatus") .HasMaxLength(8) .HasColumnType("VARCHAR"); @@ -7132,6 +7344,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(32) @@ -7276,6 +7492,10 @@ namespace TaskManager.EntityFramework.Migrations .HasPrecision(16, 5) .HasColumnType("DECIMAL"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) @@ -7321,6 +7541,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StatisticalTime") .IsRequired() .HasMaxLength(19) @@ -7373,6 +7597,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); }); @@ -7410,6 +7636,10 @@ namespace TaskManager.EntityFramework.Migrations .HasPrecision(16, 5) .HasColumnType("DECIMAL"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) @@ -7455,6 +7685,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StatisticalTime") .IsRequired() .HasMaxLength(19) @@ -7788,6 +8022,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(64) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("LimitUpdateTime") .HasMaxLength(19) .HasColumnType("CHAR"); @@ -7801,6 +8039,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SamplingRate") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); @@ -7877,6 +8119,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); }); @@ -7964,6 +8208,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(64) .HasColumnType("VARCHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("LimitUpdateTime") .HasMaxLength(19) .HasColumnType("CHAR"); @@ -7977,6 +8225,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SamplingRate") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); @@ -8373,6 +8625,10 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("ManufactureInputNum") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); @@ -8434,6 +8690,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) @@ -8464,6 +8724,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); }); @@ -8496,6 +8758,10 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("ManufactureInputNum") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); @@ -8557,6 +8823,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) @@ -8624,6 +8894,10 @@ namespace TaskManager.EntityFramework.Migrations .HasPrecision(16, 5) .HasColumnType("DECIMAL"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) @@ -8669,6 +8943,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(32) @@ -8731,6 +9009,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("RequestDate"); + b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); }); @@ -8768,6 +9048,10 @@ namespace TaskManager.EntityFramework.Migrations .HasPrecision(16, 5) .HasColumnType("DECIMAL"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) @@ -8813,6 +9097,10 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + b.Property("StationId") .IsRequired() .HasMaxLength(32) @@ -9620,16 +9908,8 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - b.HasIndex("RequestDate"); - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - b.ToTable("SUPPLIER_SINV_DATA", (string)null); }); @@ -9731,16 +10011,6 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); }); @@ -9869,8 +10139,8 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("nvarchar(max)"); b.Property("Module") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("Path") .HasMaxLength(30) @@ -9886,8 +10156,8 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("uniqueidentifier"); b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("Type") .HasMaxLength(30) diff --git a/API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs b/API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs index 2644010..a9a3194 100644 --- a/API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs +++ b/API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs @@ -35,9 +35,9 @@ namespace TaskManager.Controllers { public class CheryRecurringJobInputPageController : RecurringJobBaseController - where T : BaseEntity ,new() + where T : CherryWriteBaseEnity ,new() where TDTO:class,new() - where TLOGS:BaseEntity,new() + where TLOGS: CherryWriteLogsBaseEnity, new() { protected readonly IRepository _repository; @@ -187,6 +187,7 @@ namespace TaskManager.Controllers public async Task SyncTaskSubTable(string taskName, string client) { var version = DateTime.Now.ToString("yyyyMMdd"); + var requestDate = DateTime.Now.ToString("yyyy-MM-dd"); if (string.IsNullOrEmpty(taskName) || string.IsNullOrEmpty(client)) { await _logger.AddError("任务名称或客户端不能为空", taskName, Guid.NewGuid(), version); @@ -230,12 +231,15 @@ namespace TaskManager.Controllers foreach (var itm in records) { itm.WriteState = true; + itm.RequestDate = requestDate; } var result = await PostPageAsync(pagedRequest, sub.TaskId, version); if (result.code == 200) { await _logger.AddSuccess($"第 {i} 页奇瑞数据保存成功", TaskName, sub.TaskId, version); _jobDbContext.BulkUpdate(records, options => options.UseTableLock = true); + + sub.SyncedPageCount = i; if (i == totalPages) { diff --git a/API/Wood.Service/Controllers/CheryRecurringJobInputPageExtendController.cs b/API/Wood.Service/Controllers/CheryRecurringJobInputPageExtendController.cs index 38e257e..e65ddf7 100644 --- a/API/Wood.Service/Controllers/CheryRecurringJobInputPageExtendController.cs +++ b/API/Wood.Service/Controllers/CheryRecurringJobInputPageExtendController.cs @@ -34,9 +34,10 @@ using static Dapper.SqlMapper; namespace TaskManager.Controllers { - public class CheryRecurringJobInputPageExtendController : RecurringJobBaseController - where T : BaseEntity ,new() - where TDTO:class,new() + public class CheryRecurringJobInputPageExtendController : RecurringJobBaseController + where T : CherryWriteBaseEnity, new() + where TDTO : class, new() + where TLOGS : CherryWriteLogsBaseEnity, new() { protected readonly IRepository _repository; public CheryRecurringJobInputPageExtendController(HttpClient httpClient, JobDbContext jobDbContext, LogController log, IRepository repository) : base(httpClient, jobDbContext, log) @@ -188,6 +189,7 @@ namespace TaskManager.Controllers var query = _jobDbContext.Database.GetDbConnection().Query(str); var total = query.FirstOrDefault(); var version = DateTime.Now.ToString("yyyyMMdd"); + var requestDate = DateTime.Now.ToString("yyyy-MM-dd"); var pageSize = CPageSize; int totalPages = (int)Math.Ceiling((double)total / pageSize); @@ -218,6 +220,7 @@ namespace TaskManager.Controllers { itm.WriteState = true; itm.TaskId = taskId; + itm.RequestDate = requestDate; } var result = await PostPageAsync(pagedRequest, taskId, version); if (result.code == 200) @@ -289,7 +292,8 @@ namespace TaskManager.Controllers } else { - + + string inputjson = string.Empty; if (TaskName == "日物料需求计划风险确认")//格式特殊处理 { diff --git a/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs b/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs index 0322a8c..3633000 100644 --- a/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs +++ b/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs @@ -154,6 +154,10 @@ namespace TaskManager.Controllers if (pagefirstList.Any()) { await InsertDataAsync(pagefirstList); + + + + } // 计算总页数 int totalPages = (int)Math.Ceiling((double)totalItems / pageSize);