From 61a196cfad9fe42bb14096997a72ea004feb2900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Mon, 16 Jun 2025 14:01:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../11-18/SUPPLIER_CON_DATE_LOGS.cs | 256 + .../11-18/SUPPLIER_CON_MMRP_LOGS.cs | 148 + .../11-18/SUPPLIER_CON_PO_LOGS.cs | 61 + .../SUPPLIER_PRO_ATTACHMENT_DATA_LOGS.cs | 115 + .../11-18/SUPPLIER_PRO_ENVIRONMENT_LOGS.cs | 115 + .../11-18/SUPPLIER_PRO_FLAW_LOGS.cs | 179 + .../11-18/SUPPLIER_PRO_MATERIAL_DATA_LOGS.cs | 132 + .../SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS.cs | 150 + .../SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS.cs | 120 + .../SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS.cs | 192 + .../11-18/SUPPLIER_PRO_PROCESS_LOGS.cs | 126 + .../11-18/SUPPLIER_SINV_DATA_LOGS.cs | 90 + API/TaskManager.Entity/Entity.cs | 1988 +++- .../Entitys/01_09/SUPPLIER_BOM_LOGS.cs | 119 + .../Entitys/01_09/SUPPLIER_EMPLOYEE_LOGS.cs | 130 + .../Entitys/01_09/SUPPLIER_INFO_LOGS.cs | 125 + .../Entitys/01_09/SUPPLIER_PRO_CPS_LOGS.cs | 305 + .../Entitys/01_09/SUPPLIER_PRO_DATA_LOGS.cs | 281 + .../SUPPLIER_PRO_FIRST_PASSYIELD_LOGS.cs | 149 + .../01_09/SUPPLIER_PRO_MATERIAL_STOCK_LOGS.cs | 197 + .../01_09/SUPPLIER_PRO_SCHEDULING_LOGS.cs | 131 + ...PPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS.cs | 161 + .../JobDbContext.cs | 1673 ++- .../20250616060016_z202506160003.Designer.cs | 9997 +++++++++++++++++ .../20250616060016_z202506160003.cs | 1850 +++ .../Migrations/JobDbContextModelSnapshot.cs | 8407 ++++++++++---- API/Wood.Admin.WebApi/Startup.cs | 4 + .../CheryRecurringJobInputPageController.cs | 36 +- ...ryRecurringJobInputPageExtendController.cs | 161 +- .../Controllers/LogConsumerService.cs | 6 + API/Wood.Service/Controllers/LogController.cs | 14 +- .../Controllers/TaskConifgureController.cs | 3 +- 32 files changed, 25320 insertions(+), 2101 deletions(-) create mode 100644 API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE_LOGS.cs create mode 100644 API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP_LOGS.cs create mode 100644 API/TaskManager.Entity/11-18/SUPPLIER_CON_PO_LOGS.cs create mode 100644 API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA_LOGS.cs create mode 100644 API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT_LOGS.cs create mode 100644 API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW_LOGS.cs create mode 100644 API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA_LOGS.cs create mode 100644 API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS.cs create mode 100644 API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS.cs create mode 100644 API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS.cs create mode 100644 API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_LOGS.cs create mode 100644 API/TaskManager.Entity/11-18/SUPPLIER_SINV_DATA_LOGS.cs create mode 100644 API/TaskManager.Entity/Entitys/01_09/SUPPLIER_BOM_LOGS.cs create mode 100644 API/TaskManager.Entity/Entitys/01_09/SUPPLIER_EMPLOYEE_LOGS.cs create mode 100644 API/TaskManager.Entity/Entitys/01_09/SUPPLIER_INFO_LOGS.cs create mode 100644 API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_CPS_LOGS.cs create mode 100644 API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_DATA_LOGS.cs create mode 100644 API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_FIRST_PASSYIELD_LOGS.cs create mode 100644 API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_MATERIAL_STOCK_LOGS.cs create mode 100644 API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_SCHEDULING_LOGS.cs create mode 100644 API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS.cs create mode 100644 API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.Designer.cs create mode 100644 API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.cs diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE_LOGS.cs new file mode 100644 index 0000000..cae6e89 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE_LOGS.cs @@ -0,0 +1,256 @@ +using Magicodes.ExporterAndImporter.Core; + +namespace TaskManager.Entity.Entitys +{ + /// + /// 日物料需求计划风险确认 + /// + public class SUPPLIER_CON_DATE_LOGS : CherryConReadBaseEntity + { + + + + + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 需求发布版次,取自日物料需求计划接口中的需求发布版次,针对与这个版次的需求进行风险反馈 + /// + [ExporterHeader(DisplayName = "需求发布版次")] + [ImporterHeader(Name = "需求发布版次")] + public string ReleaseEdition { get; set; } + /// + /// 零件号,奇瑞零件号 + /// + [ExporterHeader(DisplayName = "零件号,奇瑞零件号")] + [ImporterHeader(Name = "零件号,奇瑞零件号")] + public string MaterialCode { get; set; } + /// + /// 工厂代码 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [ImporterHeader(Name = "工厂代码")] + public string PlantId { get; set; } + /// + /// 反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常) + /// + [ExporterHeader(DisplayName = "反馈结果")] + [ImporterHeader(Name = "反馈结果")] + public string FeedbackResults { get; set; } + /// + /// 风险类型,当反馈结果=1时,此字段必输1.生产节拍不足2.人员不足3.原材料不足4.设备异常5.其他 + /// + [ExporterHeader(DisplayName = "风险类型")] + [ImporterHeader(Name = "风险类型")] + public string? VentureType { get; set; } + /// + /// 具体风险,当反馈结果=1时,此字段必输描述具体风险 + /// + [ExporterHeader(DisplayName = "具体风险")] + [ImporterHeader(Name = "具体风险")] + public string? VentureSpecific { get; set; } + /// + /// 应对措施,当反馈结果=1时,此字段必输描述具体应对措施 + /// + [ExporterHeader(DisplayName = "应对措施")] + [ImporterHeader(Name = "应对措施")] + public string? Measures { get; set; } + /// + /// 起始日期,格式:yyyy-MM-dd + /// + [ExporterHeader(DisplayName = "起始日期")] + [ImporterHeader(Name = "起始日期")] + public DateTime? StartDate { get; set; } + /// + /// 满足数量1,数量锁定,7日内满足数量必须等于需求数量 + /// + [ExporterHeader(DisplayName = "满足数量1")] + [ImporterHeader(Name = "满足数量1")] + public decimal? QuantityMeet1 { get; set; } + /// + /// 满足数量2, + /// + [ExporterHeader(DisplayName = "满足数量2")] + [ImporterHeader(Name = "满足数量2")] + public decimal? QuantityMeet2 { get; set; } + /// + /// 满足数量3, + /// + [ExporterHeader(DisplayName = "满足数量3")] + [ImporterHeader(Name = "满足数量3")] + public decimal? QuantityMeet3 { get; set; } + /// + /// 满足数量4, + /// + [ExporterHeader(DisplayName = "满足数量4")] + [ImporterHeader(Name = "满足数量4")] + public decimal? QuantityMeet4 { get; set; } + /// + /// 满足数量5, + /// + [ExporterHeader(DisplayName = "满足数量5")] + [ImporterHeader(Name = "满足数量5")] + public decimal? QuantityMeet5 { get; set; } + /// + /// 满足数量6, + /// + [ExporterHeader(DisplayName = "满足数量6")] + [ImporterHeader(Name = "满足数量6")] + public decimal? QuantityMeet6 { get; set; } + /// + /// 满足数量7, + /// + [ExporterHeader(DisplayName = "满足数量7")] + [ImporterHeader(Name = "满足数量7")] + public decimal? QuantityMeet7 { get; set; } + /// + /// 满足数量8,根据物料需求计划接口发布的需求天数,针对企业自身产能情况反馈可满足数量注:目前发送数据为滚动12天的数据,13至31天的字段为预留,未来可能会增加至31天 + /// + [ExporterHeader(DisplayName = "满足数量8")] + [ImporterHeader(Name = "满足数量8")] + public decimal? QuantityMeet8 { get; set; } + /// + /// 满足数量9, + /// + [ExporterHeader(DisplayName = "满足数量9")] + [ImporterHeader(Name = "满足数量9")] + public decimal? QuantityMeet9 { get; set; } + /// + /// 满足数量10, + /// + [ExporterHeader(DisplayName = "满足数量10")] + [ImporterHeader(Name = "满足数量10")] + public decimal? QuantityMeet10 { get; set; } + /// + /// 满足数量11, + /// + [ExporterHeader(DisplayName = "满足数量11")] + [ImporterHeader(Name = "满足数量11")] + public decimal? QuantityMeet11 { get; set; } + /// + /// 满足数量12, + /// + [ExporterHeader(DisplayName = "满足数量12")] + [ImporterHeader(Name = "满足数量12")] + public decimal? QuantityMeet12 { get; set; } + /// + /// 满足数量13, + /// + [ExporterHeader(DisplayName = "满足数量13")] + [ImporterHeader(Name = "满足数量13")] + public decimal? QuantityMeet13 { get; set; } + /// + /// 满足数量14, + /// + [ExporterHeader(DisplayName = "满足数量14")] + [ImporterHeader(Name = "满足数量14")] + public decimal? QuantityMeet14 { get; set; } + /// + /// 满足数量15, + /// + [ExporterHeader(DisplayName = "满足数量15")] + [ImporterHeader(Name = "满足数量15")] + public decimal? QuantityMeet15 { get; set; } + /// + /// 满足数量16, + /// + [ExporterHeader(DisplayName = "满足数量16")] + [ImporterHeader(Name = "满足数量16")] + public decimal? QuantityMeet16 { get; set; } + /// + /// 满足数量17, + /// + [ExporterHeader(DisplayName = "满足数量17")] + [ImporterHeader(Name = "满足数量17")] + public decimal? QuantityMeet17 { get; set; } + /// + /// 满足数量18, + /// + [ExporterHeader(DisplayName = "满足数量18")] + [ImporterHeader(Name = "满足数量18")] + public decimal? QuantityMeet18 { get; set; } + /// + /// 满足数量19, + /// + [ExporterHeader(DisplayName = "满足数量19")] + [ImporterHeader(Name = "满足数量19")] + public decimal? QuantityMeet19 { get; set; } + /// + /// 满足数量20, + /// + [ExporterHeader(DisplayName = "满足数量20")] + [ImporterHeader(Name = "满足数量20")] + public decimal? QuantityMeet20 { get; set; } + /// + /// 满足数量21, + /// + [ExporterHeader(DisplayName = "满足数量21")] + [ImporterHeader(Name = "满足数量21")] + public decimal? QuantityMeet21 { get; set; } + /// + /// 满足数量22, + /// + [ExporterHeader(DisplayName = "满足数量22")] + [ImporterHeader(Name = "满足数量22")] + public decimal? QuantityMeet22 { get; set; } + /// + /// 满足数量23, + /// + [ExporterHeader(DisplayName = "满足数量23")] + [ImporterHeader(Name = "满足数量23")] + public decimal? QuantityMeet23 { get; set; } + /// + /// 满足数量24, + /// + [ExporterHeader(DisplayName = "满足数量24")] + [ImporterHeader(Name = "满足数量24")] + public decimal? QuantityMeet24 { get; set; } + /// + /// 满足数量25, + /// + [ExporterHeader(DisplayName = "满足数量25")] + [ImporterHeader(Name = "满足数量25")] + public decimal? QuantityMeet25 { get; set; } + /// + /// 满足数量26, + /// + [ExporterHeader(DisplayName = "满足数量26")] + [ImporterHeader(Name = "满足数量26")] + public decimal? QuantityMeet26 { get; set; } + /// + /// 满足数量27, + /// + [ExporterHeader(DisplayName = "满足数量27")] + [ImporterHeader(Name = "满足数量27")] + public decimal? QuantityMeet27 { get; set; } + /// + /// 满足数量28, + /// + [ExporterHeader(DisplayName = "满足数量28")] + [ImporterHeader(Name = "满足数量28")] + public decimal? QuantityMeet28 { get; set; } + /// + /// 满足数量29, + /// + [ExporterHeader(DisplayName = "满足数量29")] + [ImporterHeader(Name = "满足数量29")] + public decimal? QuantityMeet29 { get; set; } + /// + /// 满足数量30, + /// + [ExporterHeader(DisplayName = "满足数量30")] + [ImporterHeader(Name = "满足数量30")] + public decimal? QuantityMeet30 { get; set; } + /// + /// 满足数量31, + /// + [ExporterHeader(DisplayName = "满足数量31")] + [ImporterHeader(Name = "满足数量31")] + public decimal? QuantityMeet31 { get; set; } + } + +} diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP_LOGS.cs new file mode 100644 index 0000000..5262292 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP_LOGS.cs @@ -0,0 +1,148 @@ +using Magicodes.ExporterAndImporter.Core; + +namespace TaskManager.Entity.Entitys +{ + /// + /// M+6月物料需求计划风险确认 + /// + public class SUPPLIER_CON_MMRP_LOGS : CherryConReadBaseEntity + { + + [ExporterHeader(DisplayName = "奇瑞Id")] + [ImporterHeader(Name = "奇瑞Id")] + + public string? Id { set; get; } + + + + + + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 需求发布版次,取自M+6月物料需求计划接口中的需求发布版次,针对与这个版次的需求进行风险反馈 + /// + [ExporterHeader(DisplayName = "需求发布版次")] + [ImporterHeader(Name = "需求发布版次")] + public string ReleaseEdition { get; set; } + /// + /// 零件号,奇瑞零件号 + /// + [ExporterHeader(DisplayName = "零件号")] + [ImporterHeader(Name = "零件号")] + public string MaterialCode { get; set; } + /// + /// 工厂代码, + /// + [ExporterHeader(DisplayName = "工厂代码,")] + [ImporterHeader(Name = "工厂代码,")] + public string PlantId { get; set; } + /// + /// 反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常) + /// + [ExporterHeader(DisplayName = "反馈结果")] + [ImporterHeader(Name = "反馈结果")] + public string FeedbackResults { get; set; } + /// + /// 风险类型,当反馈结果=1时,此字段必输1.生产节拍不足2.人员不足3.原材料不足4.设备异常5.其他 + /// + [ExporterHeader(DisplayName = "风险类型")] + [ImporterHeader(Name = "风险类型")] + public string? VentureType { get; set; } + /// + /// 具体风险,当反馈结果=1时,此字段必输描述具体风险 + /// + [ExporterHeader(DisplayName = "具体风险")] + [ImporterHeader(Name = "具体风险")] + public string? VentureSpecific { get; set; } + /// + /// 应对措施,当反馈结果=1时,此字段必输描述具体应对措施 + /// + [ExporterHeader(DisplayName = "应对措施")] + [ImporterHeader(Name = "应对措施")] + public string? Measures { get; set; } + /// + /// 起始月份-格式:yyyy-MM + /// + [ExporterHeader(DisplayName = "起始月份")] + [ImporterHeader(Name = "起始月份")] + public string StartMonth { get; set; } + /// + /// 满足数量1 + /// + [ExporterHeader(DisplayName = "满足数量1")] + [ImporterHeader(Name = "满足数量1")] + public decimal? QuantityMeet1 { get; set; } + /// + /// 满足数量2 + /// + [ExporterHeader(DisplayName = "满足数量2")] + [ImporterHeader(Name = "满足数量2")] + public decimal? QuantityMeet2 { get; set; } + /// + /// 满足数量3 + /// + [ExporterHeader(DisplayName = "满足数量3")] + [ImporterHeader(Name = "满足数量3")] + public decimal? QuantityMeet3 { get; set; } + /// + /// 满足数量4 + /// + [ExporterHeader(DisplayName = "满足数量4")] + [ImporterHeader(Name = "满足数量4")] + public decimal? QuantityMeet4 { get; set; } + /// + /// 满足数量5 + /// + [ExporterHeader(DisplayName = "满足数量5")] + [ImporterHeader(Name = "满足数量5")] + public decimal? QuantityMeet5 { get; set; } + /// + /// 满足数量6 + /// + [ExporterHeader(DisplayName = "满足数量6")] + [ImporterHeader(Name = "满足数量6")] + public decimal? QuantityMeet6 { get; set; } + /// + /// 满足数量7 + /// + [ExporterHeader(DisplayName = "满足数量7")] + [ImporterHeader(Name = "满足数量7")] + public decimal? QuantityMeet7 { get; set; } + /// + /// 满足数量8 + /// + [ExporterHeader(DisplayName = "满足数量8")] + [ImporterHeader(Name = "满足数量8")] + public decimal? QuantityMeet8 { get; set; } + /// + /// 满足数量9 + /// + [ExporterHeader(DisplayName = "满足数量9")] + [ImporterHeader(Name = "满足数量9")] + public decimal? QuantityMeet9 { get; set; } + /// + /// 满足数量10 + /// + [ExporterHeader(DisplayName = "满足数量10")] + [ImporterHeader(Name = "满足数量10")] + public decimal? QuantityMeet10 { get; set; } + /// + /// 满足数量11 + /// + [ExporterHeader(DisplayName = "满足数量11")] + [ImporterHeader(Name = "满足数量11")] + public decimal? QuantityMeet11 { get; set; } + /// + /// 满足数量12 + /// + [ExporterHeader(DisplayName = "满足数量12")] + [ImporterHeader(Name = "满足数量12")] + public decimal? QuantityMeet12 { get; set; } + } + +} diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO_LOGS.cs new file mode 100644 index 0000000..0efeec6 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_CON_PO_LOGS.cs @@ -0,0 +1,61 @@ +using Magicodes.ExporterAndImporter.Core; + +namespace TaskManager.Entity.Entitys +{ + /// + /// 采购订单风险确认 + /// + public class SUPPLIER_CON_PO_LOGS : CherryConReadBaseEntity + { + + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 采购订单号 + /// + [ExporterHeader(DisplayName = "采购订单号")] + [ImporterHeader(Name = "采购订单号")] + public string PurchaseOrder { get; set; } + /// + /// 行项目号 + /// + [ExporterHeader(DisplayName = "行项目号")] + [ImporterHeader(Name = "行项目号")] + public string SerialNumber { get; set; } + /// + /// 满足数量 + /// + [ExporterHeader(DisplayName = "满足数量")] + [ImporterHeader(Name = "满足数量")] + public decimal? QuantityMeet { get; set; } + /// + /// 反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常) + /// + [ExporterHeader(DisplayName = "反馈结果")] + [ImporterHeader(Name = "反馈结果")] + public string FeedbackResults { get; set; } + /// + /// 风险类型,当反馈结果=1时,此字段必输1.生产节拍不足2.人员不足3.原材料不足4.设备异常5.其他 + /// + [ExporterHeader(DisplayName = "风险类型")] + [ImporterHeader(Name = "风险类型")] + public string? VentureType { get; set; } + /// + /// 具体风险,当反馈结果=1时,此字段必输描述具体风险 + /// + [ExporterHeader(DisplayName = "具体风险")] + [ImporterHeader(Name = "具体风险")] + public string? VentureSpecific { get; set; } + /// + /// 应对措施,当反馈结果=1时,此字段必输描述具体应对措施 + /// + [ExporterHeader(DisplayName = "应对措施")] + [ImporterHeader(Name = "应对措施")] + public string? Measures { get; set; } + } + +} 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 new file mode 100644 index 0000000..35a55e6 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA_LOGS.cs @@ -0,0 +1,115 @@ +using Magicodes.ExporterAndImporter.Core; + +namespace TaskManager.Entity.Entitys +{ + /// + /// 附件类数据 + /// + public class SUPPLIER_PRO_ATTACHMENT_DATA_LOGS : BaseEntity + { + + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 数据类型(1产前管理;2人员资质;3监控视频) + /// + [ExporterHeader(DisplayName = "数据类型")] + [ImporterHeader(Name = "数据类型")] + public string Type { get; set; } + /// + /// 文件名 + /// + [ExporterHeader(DisplayName = "文件名")] + [ImporterHeader(Name = "文件名")] + public string FileName { get; set; } + /// + /// 图文地址 + /// + [ExporterHeader(DisplayName = "图文地址")] + [ImporterHeader(Name = "图文地址")] + public string FileUrl { get; set; } + /// + /// 生成时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "生成时间")] + [ImporterHeader(Name = "生成时间")] + public string DateTime { get; set; } + /// + /// 产线名称 + /// + [ExporterHeader(DisplayName = "产线名称")] + [ImporterHeader(Name = "产线名称")] + public string ProductionLineName { get; set; } + /// + /// 产线代码 + /// + [ExporterHeader(DisplayName = "产线代码")] + [ImporterHeader(Name = "产线代码")] + public string ProductionLineId { get; set; } + /// + /// 工位名称 + /// + [ExporterHeader(DisplayName = "工位名称")] + [ImporterHeader(Name = "工位名称")] + public string StationName { get; set; } + /// + /// 工位代码 + /// + [ExporterHeader(DisplayName = "工位代码")] + [ImporterHeader(Name = "工位代码")] + public string StationId { get; set; } + /// + /// 设备名称 + /// + [ExporterHeader(DisplayName = "设备名称")] + [ImporterHeader(Name = "设备名称")] + public string DeviceName { get; set; } + /// + /// 设备编码 + /// + [ExporterHeader(DisplayName = "设备编码")] + [ImporterHeader(Name = "设备编码")] + public string? DeviceId { get; set; } + /// + /// 供应商总成零件号 + /// + [ExporterHeader(DisplayName = "供应商总成零件号")] + [ImporterHeader(Name = "供应商总成零件号")] + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + [ExporterHeader(DisplayName = "供应商总成零件名称")] + [ImporterHeader(Name = "供应商总成零件名称")] + public string VendorProductName { get; set; } + /// + /// 奇瑞零件号 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [ImporterHeader(Name = "奇瑞零件号")] + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + [ExporterHeader(DisplayName = "奇瑞零件名称")] + [ImporterHeader(Name = "奇瑞零件名称")] + public string CheryProductName { get; set; } + /// + /// 供应商总成SN码 + /// + [ExporterHeader(DisplayName = "供应商总成SN码")] + [ImporterHeader(Name = "供应商总成SN码")] + public string? VendorProductSn { get; set; } + } + +} diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT_LOGS.cs new file mode 100644 index 0000000..39a9725 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT_LOGS.cs @@ -0,0 +1,115 @@ +using Magicodes.ExporterAndImporter.Core; + +namespace TaskManager.Entity.Entitys +{ + /// + /// 环境业务数据 + /// + public class SUPPLIER_PRO_ENVIRONMENT_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 工厂代码 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [ImporterHeader(Name = "工厂代码")] + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + [ExporterHeader(DisplayName = "工厂名称")] + [ImporterHeader(Name = "工厂名称")] + public string PlantName { get; set; } + /// + /// 车间代码 + /// + [ExporterHeader(DisplayName = "车间代码")] + [ImporterHeader(Name = "车间代码")] + public string WorkshopId { get; set; } + /// + /// 车间名称 + /// + [ExporterHeader(DisplayName = "车间名称")] + [ImporterHeader(Name = "车间名称")] + public string WorkshopName { get; set; } + /// + /// 产线代码 + /// + [ExporterHeader(DisplayName = "产线代码")] + [ImporterHeader(Name = "产线代码")] + public string ProductionLineId { get; set; } + /// + /// 产线名称 + /// + [ExporterHeader(DisplayName = "产线名称")] + [ImporterHeader(Name = "产线名称")] + public string ProductionLineName { get; set; } + /// + /// 环境指标名称,例如:温度、湿度、洁净度等 + /// + [ExporterHeader(DisplayName = "环境指标名称")] + [ImporterHeader(Name = "环境指标名称")] + public string EnvIndicatorName { get; set; } + /// + /// 指标实测值,(最大支持11位整数+5位小数) + /// + [ExporterHeader(DisplayName = "指标实测值")] + [ImporterHeader(Name = "指标实测值")] + public decimal? NumValue { get; set; } + /// + /// 上限值,(最大支持11位整数+5位小数) + /// + [ExporterHeader(DisplayName = "上限值")] + [ImporterHeader(Name = "上限值")] + public decimal UpperLimit { get; set; } + /// + /// 下限值,(最大支持11位整数+5位小数) + /// + [ExporterHeader(DisplayName = "下限值")] + [ImporterHeader(Name = "下限值")] + public decimal LowerLimit { get; set; } + /// + /// 单位,相应的单位名称,如度数 + /// + [ExporterHeader(DisplayName = "单位")] + [ImporterHeader(Name = "单位")] + public string ChineseUnit { get; set; } + /// + /// 采集仪器代码,环境采集的仪器/工具代码 + /// + [ExporterHeader(DisplayName = "采集仪器代码")] + [ImporterHeader(Name = "采集仪器代码")] + public string EquipmentCode { get; set; } + /// + /// 采集仪器名称,环境采集的仪器/工具名称 + /// + [ExporterHeader(DisplayName = "采集仪器名称")] + [ImporterHeader(Name = "采集仪器名称")] + public string EquipmentName { get; set; } + /// + /// 数据采集的点位 + /// + [ExporterHeader(DisplayName = "数据采集的点位")] + [ImporterHeader(Name = "数据采集的点位")] + public string? DataCollectionPoint { get; set; } + /// + /// 数据采集的时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "数据采集的时间")] + [ImporterHeader(Name = "数据采集的时间")] + public string CollectTime { get; set; } + } + + +} diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW_LOGS.cs new file mode 100644 index 0000000..0f65af6 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW_LOGS.cs @@ -0,0 +1,179 @@ +using Magicodes.ExporterAndImporter.Core; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TaskManager.Entity.Entitys +{ + /// + /// 缺陷业务数据 + /// + public class SUPPLIER_PRO_FLAW_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 工厂代码 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [ImporterHeader(Name = "工厂代码")] + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + [ExporterHeader(DisplayName = "工厂名称")] + [ImporterHeader(Name = "工厂名称")] + public string PlantName { get; set; } + /// + /// 车间代码 + /// + [ExporterHeader(DisplayName = "车间代码")] + [ImporterHeader(Name = "车间代码")] + public string WorkshopId { get; set; } + /// + /// 车间名称 + /// + [ExporterHeader(DisplayName = "车间名称")] + [ImporterHeader(Name = "车间名称")] + public string WorkshopName { get; set; } + /// + /// 产线代码 + /// + [ExporterHeader(DisplayName = "产线代码")] + [ImporterHeader(Name = "产线代码")] + public string ProductionLineId { get; set; } + /// + /// 产线名称 + /// + [ExporterHeader(DisplayName = "产线名称")] + [ImporterHeader(Name = "产线名称")] + public string ProductionLineName { get; set; } + /// + /// 工位代码 + /// + [ExporterHeader(DisplayName = "工位代码")] + [ImporterHeader(Name = "工位代码")] + public string StationId { get; set; } + /// + /// 工位名称 + /// + [ExporterHeader(DisplayName = "工位名称")] + [ImporterHeader(Name = "工位名称")] + public string StationName { get; set; } + /// + /// 缺陷代码 + /// + [ExporterHeader(DisplayName = "缺陷代码")] + [ImporterHeader(Name = "缺陷代码")] + public string DefectsCode { get; set; } + /// + /// 缺陷名称 + /// + [ExporterHeader(DisplayName = "缺陷名称")] + [ImporterHeader(Name = "缺陷名称")] + public string DefectsName { get; set; } + /// + /// 缺陷分类(外观,尺寸,材料,功能,性能,其他) + /// + [ExporterHeader(DisplayName = "缺陷分类")] + [ImporterHeader(Name = "缺陷分类")] + public string ClassOfName { get; set; } + /// + /// 供应商总成零件号 + /// + [ExporterHeader(DisplayName = "供应商总成零件号")] + [ImporterHeader(Name = "供应商总成零件号")] + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + [ExporterHeader(DisplayName = "供应商总成零件名称")] + [ImporterHeader(Name = "供应商总成零件名称")] + public string VendorProductName { get; set; } + /// + /// 供应商总成批次号 + /// + [ExporterHeader(DisplayName = "供应商总成批次号")] + [ImporterHeader(Name = "供应商总成批次号")] + public string VendorProductBatch { get; set; } + /// + /// 供应商总成SN码 + /// + [ExporterHeader(DisplayName = "供应商总成SN码")] + [ImporterHeader(Name = "供应商总成SN码")] + public string VendorProductSn { get; set; } + /// + /// 奇瑞零件号 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [ImporterHeader(Name = "奇瑞零件号")] + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + [ExporterHeader(DisplayName = "奇瑞零件名称")] + [ImporterHeader(Name = "奇瑞零件名称")] + public string CheryProductName { get; set; } + /// + /// 奇瑞SN码 + /// + [ExporterHeader(DisplayName = "奇瑞SN码")] + [ImporterHeader(Name = "奇瑞SN码")] + public string CheryProductSn { get; set; } + /// + /// 生产批次号 + /// + [ExporterHeader(DisplayName = "生产批次号")] + [ImporterHeader(Name = "生产批次号")] + public string ProductBatchNo { get; set; } + /// + /// 生产工单号,或生产批次(工单业务数据) + /// + [ExporterHeader(DisplayName = "生产工单号")] + [ImporterHeader(Name = "生产工单号")] + public string ManufactureNo { get; set; } + /// + /// 班次(白班,晚班,中班) + /// + [ExporterHeader(DisplayName = "班次")] + [ImporterHeader(Name = "班次")] + public string WorkShift { get; set; } + /// + /// 缺陷件数 + /// + [ExporterHeader(DisplayName = "缺陷件数")] + [ImporterHeader(Name = "缺陷件数")] + public decimal Numberofdefect { get; set; } + /// + /// 缺陷描述 + /// + [ExporterHeader(DisplayName = "缺陷描述")] + [ImporterHeader(Name = "缺陷描述")] + public string DefectsDesc { get; set; } + /// + /// 缺陷等级,(1.严重、2.一般、3.轻微) + /// + [ExporterHeader(DisplayName = "缺陷等级")] + [ImporterHeader(Name = "缺陷等级")] + public string DefectsLevel { get; set; } + /// + /// 缺陷录入时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "缺陷录入时间")] + [ImporterHeader(Name = "缺陷录入时间")] + public string StatisticalTime { get; set; } + } + +} 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 new file mode 100644 index 0000000..6f2475c --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA_LOGS.cs @@ -0,0 +1,132 @@ +using Magicodes.ExporterAndImporter.Core; + +namespace TaskManager.Entity.Entitys +{ + /// + /// 物料主数据 + /// + public class SUPPLIER_PRO_MATERIAL_DATA_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 供应商物料号 + /// + [ExporterHeader(DisplayName = "供应商物料号")] + [ImporterHeader(Name = "供应商物料号")] + public string VendorProductNo { get; set; } + /// + /// 供应商物料名称 + /// + [ExporterHeader(DisplayName = "供应商物料名称")] + [ImporterHeader(Name = "供应商物料名称")] + public string VendorProductName { get; set; } + /// + /// 类型(成品,半成品,原材料) + /// + [ExporterHeader(DisplayName = "类型")] + [ImporterHeader(Name = "类型")] + public decimal Type { get; set; } + /// + /// 供应商零件版本号 + /// + [ExporterHeader(DisplayName = "供应商零件版本号")] + [ImporterHeader(Name = "供应商零件版本号")] + public string? VendorHardwareRevision { get; set; } + /// + /// 奇瑞零件号 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [ImporterHeader(Name = "奇瑞零件号")] + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + [ExporterHeader(DisplayName = "奇瑞零件名称")] + [ImporterHeader(Name = "奇瑞零件名称")] + public string CheryProductName { get; set; } + /// + /// 奇瑞硬件版本号 + /// + [ExporterHeader(DisplayName = "奇瑞硬件版本号")] + [ImporterHeader(Name = "奇瑞硬件版本号")] + public string OemHardwareRevision { get; set; } + /// + /// 奇瑞软件版本号 + /// + [ExporterHeader(DisplayName = "奇瑞软件版本号")] + [ImporterHeader(Name = "奇瑞软件版本号")] + public string? OemSoftwareRevision { get; set; } + /// + /// 车型 + /// + [ExporterHeader(DisplayName = "车型")] + [ImporterHeader(Name = "车型")] + public string? OemModel { get; set; } + /// + /// 项目名称 + /// + [ExporterHeader(DisplayName = "项目名称")] + [ImporterHeader(Name = "项目名称")] + public string? OemProjectName { get; set; } + /// + /// 是否SOP(Y/N) + /// + [ExporterHeader(DisplayName = "是否SOP")] + [ImporterHeader(Name = "是否SOP")] + public string? Launched { get; set; } + /// + /// 数据同步执行时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "数据同步执行时间")] + [ImporterHeader(Name = "数据同步执行时间")] + public string? DateTime { get; set; } + /// + /// 供应商工厂代码 + /// + [ExporterHeader(DisplayName = "供应商工厂代码")] + [ImporterHeader(Name = "供应商工厂代码")] + public string? PlantId { get; set; } + /// + /// 供应商工厂名称 + /// + [ExporterHeader(DisplayName = "供应商工厂名称")] + [ImporterHeader(Name = "供应商工厂名称")] + public string? PlantName { get; set; } + /// + /// 芯片采购类型(AVAP,CS,CMcontro) + /// + [ExporterHeader(DisplayName = "芯片采购类型")] + [ImporterHeader(Name = "芯片采购类型")] + public string? ProcurementType { get; set; } + /// + /// 芯片MPN标识码 + /// + [ExporterHeader(DisplayName = "芯片MPN标识码")] + [ImporterHeader(Name = "芯片MPN标识码")] + public string? MpnCode { get; set; } + /// + /// 芯片MPN标识名称 + /// + [ExporterHeader(DisplayName = "芯片MPN标识名称")] + [ImporterHeader(Name = "芯片MPN标识名称")] + public string? MpnName { get; set; } + /// + /// 物料有效期(天) + /// + [ExporterHeader(DisplayName = "物料有效期")] + [ImporterHeader(Name = "物料有效期")] + public string ValidDays { get; set; } + } + +} 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 new file mode 100644 index 0000000..69df642 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS.cs @@ -0,0 +1,150 @@ +using Magicodes.ExporterAndImporter.Core; + +namespace TaskManager.Entity.Entitys +{ + /// + /// 设备OEE达成率 + /// + public class SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 工厂代码 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [ImporterHeader(Name = "工厂代码")] + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + [ExporterHeader(DisplayName = "工厂名称")] + [ImporterHeader(Name = "工厂名称")] + public string PlantName { get; set; } + /// + /// 车间代码 + /// + [ExporterHeader(DisplayName = "车间代码")] + [ImporterHeader(Name = "车间代码")] + public string WorkshopId { get; set; } + /// + /// 车间名称 + /// + [ExporterHeader(DisplayName = "车间名称")] + [ImporterHeader(Name = "车间名称")] + public string WorkshopName { get; set; } + /// + /// 产线代码 + /// + [ExporterHeader(DisplayName = "产线代码")] + [ImporterHeader(Name = "产线代码")] + public string ProductionLineId { get; set; } + /// + /// 产线名称 + /// + [ExporterHeader(DisplayName = "产线名称")] + [ImporterHeader(Name = "产线名称")] + public string ProductionLineName { get; set; } + /// + /// 工位代码 + /// + [ExporterHeader(DisplayName = "工位代码")] + [ImporterHeader(Name = "工位代码")] + public string StationId { get; set; } + /// + /// 工位名称 + /// + [ExporterHeader(DisplayName = "工位名称")] + [ImporterHeader(Name = "工位名称")] + public string StationName { get; set; } + /// + /// 设备代码 + /// + [ExporterHeader(DisplayName = "设备代码")] + [ImporterHeader(Name = "设备代码")] + public string DeviceId { get; set; } + /// + /// 设备名称 + /// + [ExporterHeader(DisplayName = "设备名称")] + [ImporterHeader(Name = "设备名称")] + public string? DeviceName { get; set; } + /// + /// 奇瑞零件号 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [ImporterHeader(Name = "奇瑞零件号")] + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + [ExporterHeader(DisplayName = "奇瑞零件名称")] + [ImporterHeader(Name = "奇瑞零件名称")] + public string CheryProductName { get; set; } + /// + /// 供应商总成零件号 + /// + [ExporterHeader(DisplayName = "供应商总成零件号")] + [ImporterHeader(Name = "供应商总成零件号")] + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + [ExporterHeader(DisplayName = "供应商总成零件名称")] + [ImporterHeader(Name = "供应商总成零件名称")] + public string VendorProductName { get; set; } + /// + /// 生产批次号 + /// + [ExporterHeader(DisplayName = "生产批次号")] + [ImporterHeader(Name = "生产批次号")] + public string ProductBatchNo { get; set; } + /// + /// 生产工单号 + /// + [ExporterHeader(DisplayName = "生产工单号")] + [ImporterHeader(Name = "生产工单号")] + public string ManufactureNo { get; set; } + /// + /// OEE实际值 + /// + [ExporterHeader(DisplayName = "OEE实际值")] + [ImporterHeader(Name = "OEE实际值")] + public decimal Rate { get; set; } + /// + /// OEE目标值 + /// + [ExporterHeader(DisplayName = "OEE目标值")] + [ImporterHeader(Name = "OEE目标值")] + public decimal RateTagValue { get; set; } + /// + /// 班次(白班,晚班,中班) + /// + [ExporterHeader(DisplayName = "班次")] + [ImporterHeader(Name = "班次")] + public string WorkShift { get; set; } + /// + /// 生产日期,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "生产日期")] + [ImporterHeader(Name = "生产日期")] + public string StatisticalTime { get; set; } + /// + /// 值统计时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "值统计时间")] + [ImporterHeader(Name = "值统计时间")] + public string DateTime { get; set; } + } + +} 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 new file mode 100644 index 0000000..d067914 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS.cs @@ -0,0 +1,120 @@ +using Magicodes.ExporterAndImporter.Core; + +namespace TaskManager.Entity.Entitys +{ + /// + /// OEE时间明细 + /// + public class SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 工厂代码 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [ImporterHeader(Name = "工厂代码")] + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + [ExporterHeader(DisplayName = "工厂名称")] + [ImporterHeader(Name = "工厂名称")] + public string PlantName { get; set; } + /// + /// 车间代码 + /// + [ExporterHeader(DisplayName = "车间代码")] + [ImporterHeader(Name = "车间代码")] + public string WorkshopId { get; set; } + /// + /// 车间名称 + /// + [ExporterHeader(DisplayName = "")] + [ImporterHeader(Name = "")] + public string? WorkshopName { get; set; } + /// + /// 产线代码 + /// + [ExporterHeader(DisplayName = "产线代码")] + [ImporterHeader(Name = "产线代码")] + public string ProductionLineId { get; set; } + /// + /// 产线名称 + /// + [ExporterHeader(DisplayName = "产线名称")] + [ImporterHeader(Name = "产线名称")] + public string? ProductionLineName { get; set; } + /// + /// 工位代码 + /// + [ExporterHeader(DisplayName = "工位代码")] + [ImporterHeader(Name = "工位代码")] + public string StationId { get; set; } + /// + /// 工位名称 + /// + [ExporterHeader(DisplayName = "工位名称")] + [ImporterHeader(Name = "工位名称")] + public string StationName { get; set; } + /// + /// 设备代码 + /// + [ExporterHeader(DisplayName = "设备代码")] + [ImporterHeader(Name = "设备代码")] + public string DeviceId { get; set; } + /// + /// 设备名称 + /// + [ExporterHeader(DisplayName = "设备名称")] + [ImporterHeader(Name = "设备名称")] + public string DeviceName { get; set; } + /// + /// 记录ID + /// + [ExporterHeader(DisplayName = "记录ID")] + [ImporterHeader(Name = "记录ID")] + public string RecId { get; set; } + /// + /// 大类(1计划工作,2计划停机,3非计划停机) + /// + [ExporterHeader(DisplayName = "大类")] + [ImporterHeader(Name = "大类")] + public string Type { get; set; } + /// + /// 小类编码 + /// + [ExporterHeader(DisplayName = "小类编码")] + [ImporterHeader(Name = "小类编码")] + public string SubType { get; set; } + /// + /// 小类描述 + /// + [ExporterHeader(DisplayName = "小类描述")] + [ImporterHeader(Name = "小类描述")] + public string SubTypeName { get; set; } + /// + /// 开始时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "开始时间")] + [ImporterHeader(Name = "开始时间")] + public string StartTime { get; set; } + /// + /// 结束时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "结束时间")] + [ImporterHeader(Name = "结束时间")] + public string EndTime { get; set; } + } + +} 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 new file mode 100644 index 0000000..27d8607 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS.cs @@ -0,0 +1,192 @@ +using Magicodes.ExporterAndImporter.Core; + +namespace TaskManager.Entity.Entitys +{ + /// + /// 工艺装备 + /// + public class SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 奇瑞零件号 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [ImporterHeader(Name = "奇瑞零件号")] + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + [ExporterHeader(DisplayName = "奇瑞零件名称")] + [ImporterHeader(Name = "奇瑞零件名称")] + public string CheryProductName { get; set; } + /// + /// 供应商总成零件号 + /// + [ExporterHeader(DisplayName = "供应商总成零件号")] + [ImporterHeader(Name = "供应商总成零件号")] + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + [ExporterHeader(DisplayName = "供应商总成零件名称")] + [ImporterHeader(Name = "供应商总成零件名称")] + public string VendorProductName { get; set; } + /// + /// 工艺装备类型分类(1模具;2检具;3夹具) + /// + [ExporterHeader(DisplayName = "工艺装备类型分类")] + [ImporterHeader(Name = "工艺装备类型分类")] + public decimal DeviceType { get; set; } + /// + /// 工艺装备编码 + /// + [ExporterHeader(DisplayName = "工艺装备编码")] + [ImporterHeader(Name = "工艺装备编码")] + public string DeviceCode { get; set; } + /// + /// 工艺装备名称 + /// + [ExporterHeader(DisplayName = "工艺装备名称")] + [ImporterHeader(Name = "工艺装备名称")] + public string DeviceName { get; set; } + /// + /// 生产厂家 + /// + [ExporterHeader(DisplayName = "生产厂家")] + [ImporterHeader(Name = "生产厂家")] + public string Manufacturer { get; set; } + /// + /// 工艺装备型号 + /// + [ExporterHeader(DisplayName = "工艺装备型号")] + [ImporterHeader(Name = "工艺装备型号")] + public string ModelNumber { get; set; } + /// + /// 工艺装备序列号 + /// + [ExporterHeader(DisplayName = "工艺装备序列号")] + [ImporterHeader(Name = "工艺装备序列号")] + public string SerialNumber { get; set; } + /// + /// 工艺装备制造日期,格式(yyyy-MM-dd) + /// + [ExporterHeader(DisplayName = "工艺装备制造日期")] + [ImporterHeader(Name = "工艺装备制造日期")] + public string ProductionDate { get; set; } + /// + /// 主要材质 + /// + [ExporterHeader(DisplayName = "主要材质")] + [ImporterHeader(Name = "主要材质")] + public string Material { get; set; } + /// + /// 当前存放地点 + /// + [ExporterHeader(DisplayName = "当前存放地点")] + [ImporterHeader(Name = "当前存放地点")] + public string CurrentLocation { get; set; } + /// + /// 工艺装备状态 + /// + [ExporterHeader(DisplayName = "工艺装备状态")] + [ImporterHeader(Name = "工艺装备状态")] + public string DeviceStatus { get; set; } + /// + /// 穴腔数量 + /// + [ExporterHeader(DisplayName = "穴腔数量")] + [ImporterHeader(Name = "穴腔数量")] + public decimal CavityCount { get; set; } + /// + /// 模具尺寸规格 + /// + [ExporterHeader(DisplayName = "模具尺寸规格")] + [ImporterHeader(Name = "模具尺寸规格")] + public string MoldSize { get; set; } + /// + /// 设计寿命单位 + /// + [ExporterHeader(DisplayName = "设计寿命单位")] + [ImporterHeader(Name = "设计寿命单位")] + public string DesignLifeUnits { get; set; } + /// + /// 设计寿命 + /// + [ExporterHeader(DisplayName = "设计寿命")] + [ImporterHeader(Name = "设计寿命")] + public string DesignLifeValue { get; set; } + /// + /// 当前剩余寿命, + /// + [ExporterHeader(DisplayName = "当前剩余寿命")] + [ImporterHeader(Name = "当前剩余寿命")] + public string CurrentUsageCount { get; set; } + /// + /// 模具大修次数 + /// + [ExporterHeader(DisplayName = "模具大修次数")] + [ImporterHeader(Name = "模具大修次数")] + public decimal OverhaulCount { get; set; } + /// + /// 图纸编号描述 + /// + [ExporterHeader(DisplayName = "图纸编号描述")] + [ImporterHeader(Name = "图纸编号描述")] + public string CoolingChannelLayout { get; set; } + /// + /// 检测精度 + /// + [ExporterHeader(DisplayName = "检测精度")] + [ImporterHeader(Name = "检测精度")] + public string DetectionAccuracy { get; set; } + /// + /// 最近校准日期,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "最近校准日期")] + [ImporterHeader(Name = "最近校准日期")] + public string CalibrationDate { get; set; } + /// + /// 校准到期天数 + /// + [ExporterHeader(DisplayName = "校准到期天数")] + [ImporterHeader(Name = "校准到期天数")] + public string CalibrationDueDays { get; set; } + /// + /// 允许误差范围 + /// + [ExporterHeader(DisplayName = "允许误差范围")] + [ImporterHeader(Name = "允许误差范围")] + public string ToleranceRange { get; set; } + /// + /// 磨损阈值 + /// + [ExporterHeader(DisplayName = "磨损阈值")] + [ImporterHeader(Name = "磨损阈值")] + public string WearThreshold { get; set; } + /// + /// 检测范围 + /// + [ExporterHeader(DisplayName = "检测范围")] + [ImporterHeader(Name = "检测范围")] + public string DetectionRange { get; set; } + /// + /// 检测单位 + /// + [ExporterHeader(DisplayName = "检测单位")] + [ImporterHeader(Name = "检测单位")] + public string UnitType { get; set; } + } + +} diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_LOGS.cs new file mode 100644 index 0000000..2f34436 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_LOGS.cs @@ -0,0 +1,126 @@ +using Magicodes.ExporterAndImporter.Core; + +namespace TaskManager.Entity.Entitys +{ + /// + /// 工艺 + /// + public class SUPPLIER_PRO_PROCESS_LOGS : BaseEntity + { + /// + /// 奇瑞零件号 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [ImporterHeader(Name = "奇瑞零件号")] + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + [ExporterHeader(DisplayName = "奇瑞零件名称")] + [ImporterHeader(Name = "奇瑞零件名称")] + public string CheryProductName { get; set; } + /// + /// 供应商总成零件号 + /// + [ExporterHeader(DisplayName = "供应商总成零件号")] + [ImporterHeader(Name = "供应商总成零件号")] + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + [ExporterHeader(DisplayName = "供应商总成零件名称")] + [ImporterHeader(Name = "供应商总成零件名称")] + public string VendorProductName { get; set; } + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 工艺编码 + /// + [ExporterHeader(DisplayName = "工艺编码")] + [ImporterHeader(Name = "工艺编码")] + public string TechCode { get; set; } + /// + /// 工艺名称 + /// + [ExporterHeader(DisplayName = "工艺名称")] + [ImporterHeader(Name = "工艺名称")] + public string TechName { get; set; } + /// + /// 有效期,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "有效期")] + [ImporterHeader(Name = "有效期")] + public string ValidPeriod { get; set; } + /// + /// 工艺版本 + /// + [ExporterHeader(DisplayName = "工艺版本")] + [ImporterHeader(Name = "工艺版本")] + public string TechVersion { get; set; } + /// + /// 模具编码 + /// + [ExporterHeader(DisplayName = "模具编码")] + [ImporterHeader(Name = "模具编码")] + public string MoldCode { get; set; } + /// + /// 模具名称 + /// + [ExporterHeader(DisplayName = "模具名称")] + [ImporterHeader(Name = "模具名称")] + public string MoldName { get; set; } + /// + /// 最大加工能力 + /// + [ExporterHeader(DisplayName = "最大加工能力")] + [ImporterHeader(Name = "最大加工能力")] + public string MaxProcessingCapacity { get; set; } + /// + /// 工序编码 + /// + [ExporterHeader(DisplayName = "工序编码")] + [ImporterHeader(Name = "工序编码")] + public string ProcessCode { get; set; } + /// + /// 工序名称 + /// + [ExporterHeader(DisplayName = "工序名称")] + [ImporterHeader(Name = "工序名称")] + public string ProcessName { get; set; } + /// + /// 工序顺序号 + /// + [ExporterHeader(DisplayName = "工序顺序号")] + [ImporterHeader(Name = "工序顺序号")] + public decimal ProcessOrder { get; set; } + /// + /// 设备编码 + /// + [ExporterHeader(DisplayName = "设备编码")] + [ImporterHeader(Name = "设备编码")] + public string DeviceCode { get; set; } + /// + /// 工序节拍 + /// + [ExporterHeader(DisplayName = "工序节拍")] + [ImporterHeader(Name = "工序节拍")] + public decimal Rhythm { get; set; } + /// + /// 节拍单位 + /// + [ExporterHeader(DisplayName = "节拍单位")] + [ImporterHeader(Name = "节拍单位")] + public string RhythmUnit { get; set; } + } + +} diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_SINV_DATA_LOGS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_SINV_DATA_LOGS.cs new file mode 100644 index 0000000..7315bd7 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_SINV_DATA_LOGS.cs @@ -0,0 +1,90 @@ +using Magicodes.ExporterAndImporter.Core; + +namespace TaskManager.Entity +{ + /// + /// 供应商共享库存 + /// + public class SUPPLIER_SINV_DATA_LOGS : CherryReadBaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 零件号 + /// + [ExporterHeader(DisplayName = "零件号")] + [ImporterHeader(Name = "零件号")] + public string MaterialCode { get; set; } + /// + /// 零件名称 + /// + [ExporterHeader(DisplayName = "零件名称")] + [ImporterHeader(Name = "零件名称")] + public string MaterialDescription { get; set; } + /// + /// 物料类型(成品,半成品,原材料) + /// + [ExporterHeader(DisplayName = "物料类型")] + [ImporterHeader(Name = "物料类型")] + public string MaterialType { get; set; } + /// + /// 当前库存数量 + /// + [ExporterHeader(DisplayName = "当前库存数量")] + [ImporterHeader(Name = "当前库存数量")] + public decimal QuantityCurrent { get; set; } + /// + /// 原材料在途数量 + /// + [ExporterHeader(DisplayName = "原材料在途数量")] + [ImporterHeader(Name = "原材料在途数量")] + public decimal QuantityPlan { get; set; } + /// + /// 库存状态(生产件,呆滞件,备件,KD件) + /// + [ExporterHeader(DisplayName = "库存状态")] + [ImporterHeader(Name = "库存状态")] + public string InventoryStatus { get; set; } + /// + /// 安全库存 + /// + [ExporterHeader(DisplayName = "安全库存")] + [ImporterHeader(Name = "安全库存")] + public decimal SafetyStock { get; set; } + /// + /// 生产/采购周期:成品即半成品为生产周期(天),原材料为采购周期(天) + /// + [ExporterHeader(DisplayName = "生产/采购周期")] + [ImporterHeader(Name = "生产/采购周期")] + public string ProductionCycle { get; set; } + /// + /// 库存更新时间-格式:yyyy-MM-ddHH:mm:ss + /// + [ExporterHeader(DisplayName = "库存更新时间")] + [ImporterHeader(Name = "库存更新时间")] + public string DataUpdateTime { get; set; } + /// + /// 批次 + /// + [ExporterHeader(DisplayName = "批次")] + [ImporterHeader(Name = "批次")] + public string? SupplierBatch { get; set; } + /// + /// 有效期截止日期 非必填 + /// + [ExporterHeader(DisplayName = "有效期截止日期")] + [ImporterHeader(Name = "有效期截止日期")] + public string? SupplieryxqDate { get; set; } + } + +} diff --git a/API/TaskManager.Entity/Entity.cs b/API/TaskManager.Entity/Entity.cs index eef7d6e..ceafa81 100644 --- a/API/TaskManager.Entity/Entity.cs +++ b/API/TaskManager.Entity/Entity.cs @@ -170,7 +170,7 @@ namespace TaskManager.Entity public string? Info { get; set; } /// - /// 日志类型,1:错误,2:正常,3:警告,4:信息,5:提示,6:调试,7:跟踪,8:自定义 + /// 日志类型,错误、正常,警告,信息,提示,调试,跟踪,请求,应答 /// [MaxLength(30)] [ExporterHeader(DisplayName = "日志类型")] @@ -968,54 +968,7 @@ namespace TaskManager.Entity } - /// - /// 日物料需求计划风险确认 - /// - //public class SUPPLIER_CON_DATE : BaseEntity - //{ - // public string? SupplierCode { get; set; } - // public string? ReleaseEdition { get; set; } - // public string? MaterialCode { get; set; } - // public string? PlantId { get; set; } - // public string? FeedbackResults { get; set; } - // public string? VentureType { get; set; } - // public string? VentureSpecific { get; set; } - // public string? Measures { get; set; } - // public string? StartDate { get; set; } - - // // QuantityMeet from 1 to 31 - // public int QuantityMeet1 { get; set; } - // public int QuantityMeet2 { get; set; } - // public int QuantityMeet3 { get; set; } - // public int QuantityMeet4 { get; set; } - // public int QuantityMeet5 { get; set; } - // public int QuantityMeet6 { get; set; } - // public int QuantityMeet7 { get; set; } - // public int QuantityMeet8 { get; set; } - // public int QuantityMeet9 { get; set; } - // public int QuantityMeet10 { get; set; } - // public int QuantityMeet11 { get; set; } - // public int QuantityMeet12 { get; set; } - // public int QuantityMeet13 { get; set; } - // public int QuantityMeet14 { get; set; } - // public int QuantityMeet15 { get; set; } - // public int QuantityMeet16 { get; set; } - // public int QuantityMeet17 { get; set; } - // public int QuantityMeet18 { get; set; } - // public int QuantityMeet19 { get; set; } - // public int QuantityMeet20 { get; set; } - // public int QuantityMeet21 { get; set; } - // public int QuantityMeet22 { get; set; } - // public int QuantityMeet23 { get; set; } - // public int QuantityMeet24 { get; set; } - // public int QuantityMeet25 { get; set; } - // public int QuantityMeet26 { get; set; } - // public int QuantityMeet27 { get; set; } - // public int QuantityMeet28 { get; set; } - // public int QuantityMeet29 { get; set; } - // public int QuantityMeet30 { get; set; } - // public int QuantityMeet31 { get; set; } - //} + /// /// 计划协议 @@ -1298,22 +1251,7 @@ namespace TaskManager.Entity } - /// - /// 采购订单风险确认 - /// - //public class SUPPLIER_CON_PO : BaseEntity - //{ - // public string? SupplierCode { get; set; } - // public string? PurchaseOrder { get; set; } - // public string? SerialNumber { get; set; } - // public int QuantityMeet { get; set; } - // public string? FeedbackResults { get; set; } - // public string? VentureType { get; set; } - // public string? VentureSpecific { get; set; } - // public string? Measures { get; set; } - - - //} + /// /// 过焊装未过总装 @@ -1810,8 +1748,6 @@ namespace TaskManager.Entity public class SUPPLIER_RETURN : CherryReadBaseEntity { - - /// /// 退货单号 /// @@ -2053,25 +1989,7 @@ namespace TaskManager.Entity } - /// - /// 供应商共享库存 - /// - //public class SUPPLIER_SINV_DATA : CherryReadBaseEntity - //{ - // public string? SupplierCode { get; set; } - // public string? SupplierName { get; set; } - // public string? MaterialCode { get; set; } - // public string? MaterialDescription { get; set; } - // public string? MaterialType { get; set; } - // public int QuantityCurrent { get; set; } - // public int QuantityPlan { get; set; } - // public string? InventoryStatus { get; set; } - // public int SafetyStock { get; set; } - // public string? ProductionCycle { get; set; } - // public string? DataUpdateTime { get; set; } - // public string? SupplierBatch { get; set; } - // public string? SupplieryxqDate { get; set; } - //} + /// /// 日MRP状态监控 @@ -2356,4 +2274,1902 @@ namespace TaskManager.Entity } + + + + /// + /// 整车月度生产计划-2 + /// + + public class SUPPLIER_PRO_PLANING_LOGS : CherryReadBaseEntity + { + + + /// + /// 需求发布版次:唯一版次ID + /// + [JsonPropertyName("releaseEdition")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "需求发布版次")] + public string? ReleaseEdition { get; set; } = string.Empty; + + /// + /// 车型 + /// + [JsonPropertyName("models")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "车型")] + public string? Models { get; set; } = string.Empty; + + /// + /// 类型 + /// + [JsonPropertyName("type")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "类型")] + public string? Type { get; set; } = string.Empty; + + /// + /// 动力总成 + /// + [JsonPropertyName("assembly")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "动力总成")] + public string? Assembly { get; set; } = string.Empty; + + /// + /// 版型 + /// + [JsonPropertyName("pattern")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "版型")] + public string? Pattern { get; set; } = string.Empty; + + /// + /// 物料号 + /// + [JsonPropertyName("materialCode")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "物料号")] + public string? MaterialCode { get; set; } = string.Empty; + + /// + /// 起始月份-格式:yyyy-MM + /// + [JsonPropertyName("startMonth")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "起始月份")] + public string? StartMonth { get; set; } = string.Empty; + + /// + /// 数量1 + /// + [JsonPropertyName("quantity1")] + [ExporterHeader(DisplayName = "数量1")] + public decimal? Quantity1 { get; set; } = 0; + + /// + /// 数量2 + /// + [JsonPropertyName("quantity2")] + [ExporterHeader(DisplayName = "数量2")] + public decimal? Quantity2 { get; set; } = 0; + + /// + /// 数量3 + /// + [JsonPropertyName("quantity3")] + [ExporterHeader(DisplayName = "数量3")] + public decimal? Quantity3 { get; set; } = 0; + + /// + /// 数量4 + /// + [JsonPropertyName("quantity4")] + [ExporterHeader(DisplayName = "数量4")] + public decimal? Quantity4 { get; set; } = 0; + + /// + /// 数量5 + /// + [JsonPropertyName("quantity5")] + [ExporterHeader(DisplayName = "数量5")] + public decimal? Quantity5 { get; set; } = 0; + + /// + /// 数量6 + /// + [JsonPropertyName("quantity6")] + [ExporterHeader(DisplayName = "数量6")] + public decimal? Quantity6 { get; set; } = 0; + + /// + /// 工厂 + /// + [JsonPropertyName("plant")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "工厂")] + public string? Plant { get; set; } = string.Empty; + + /// + /// 创建人 + /// + [JsonPropertyName("createByUser")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "创建人")] + public string? CreateByUser { get; set; } = string.Empty; + + /// + /// 创建时间 + /// + [JsonPropertyName("createTime")] + [ExporterHeader(DisplayName = "创建时间")] + public DateTime CreateTime { get; set; } + + /// + /// 修改人 + /// + [JsonPropertyName("updateByUser")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "修改人")] + public string? UpdateByUser { get; set; } = string.Empty; + + /// + /// 修改时间 + /// + [JsonPropertyName("updateTime")] + [ExporterHeader(DisplayName = "修改时间")] + public DateTime UpdateTime { get; set; } + + /// + /// 是否删除(0:否,1:是) + /// + [JsonPropertyName("isDelete")] + [ExporterHeader(DisplayName = "删除状态")] + public int IsDelete { get; set; } = 0; + + /// + /// 版本号 + /// + [JsonPropertyName("version")] + [ExporterHeader(DisplayName = "版本号")] + public int Version { get; set; } = 0; + + [MaxLength(50)] + [JsonProperty("omterior")] + [ExporterHeader(DisplayName = "内外饰")] // 推测拼写错误并自定义显示名 + public string? Omterior { get; set; } = String.Empty; + + [MaxLength(50)] + [JsonProperty("salseDepartment")] + [ExporterHeader(DisplayName = "销售部门")] // 推测拼写错误并自定义显示名 + public string? SalseDepartment { get; set; } = String.Empty; + + + + + + + } + + /// + /// M+6月物料需求计划 + /// + public class SUPPLIER_MRP_MONTH_LOGS : CherryReadBaseEntity + { + + /// + /// 需求发布版次:M+6月物料需求计划风险确认接口对应需求版次,需求ID + /// + [JsonPropertyName("releaseEdition")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "需求发布版次")] + public string? ReleaseEdition { get; set; } = string.Empty; + + /// + /// 零件号:奇瑞零件号 + /// + [JsonPropertyName("materialCode")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "零件号")] + public string? MaterialCode { get; set; } = string.Empty; + + /// + /// 零件名称 + /// + [JsonPropertyName("materialDescription")] + [MaxLength(100)] + [ExporterHeader(DisplayName = "零件名称")] + public string? MaterialDescription { get; set; } = string.Empty; + + /// + /// 工厂代码 + /// + [JsonPropertyName("plantId")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "工厂代码")] + public string? PlantId { get; set; } = string.Empty; + + /// + /// 工厂名称 + /// + [JsonPropertyName("plantName")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "工厂名称")] + public string? PlantName { get; set; } = string.Empty; + + /// + /// 起始月份-格式:yyyy-MM + /// + [JsonPropertyName("startMonth")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "起始月份")] + public string? StartMonth { get; set; } = string.Empty; + + /// + /// 需求数量1 + /// + [JsonPropertyName("quantityDemand1")] + [ExporterHeader(DisplayName = "需求数量1")] + public decimal? QuantityDemand1 { get; set; } = 0; + + /// + /// 需求数量2 + /// + [JsonPropertyName("quantityDemand2")] + [ExporterHeader(DisplayName = "需求数量2")] + public decimal? QuantityDemand2 { get; set; } = 0; + + /// + /// 需求数量3 + /// + [JsonPropertyName("quantityDemand3")] + [ExporterHeader(DisplayName = "需求数量3")] + public decimal? QuantityDemand3 { get; set; } = 0; + + /// + /// 需求数量4 + /// + [JsonPropertyName("quantityDemand4")] + [ExporterHeader(DisplayName = "需求数量4")] + public decimal? QuantityDemand4 { get; set; } = 0; + + /// + /// 需求数量5 + /// + [JsonPropertyName("quantityDemand5")] + [ExporterHeader(DisplayName = "需求数量5")] + public decimal? QuantityDemand5 { get; set; } = 0; + + /// + /// 需求数量6 + /// + [JsonPropertyName("quantityDemand6")] + [ExporterHeader(DisplayName = "需求数量6")] + public decimal? QuantityDemand6 { get; set; } = 0; + + /// + /// 需求数量7 + /// + [JsonPropertyName("quantityDemand7")] + [ExporterHeader(DisplayName = "需求数量7")] + public decimal? QuantityDemand7 { get; set; } = 0; + + /// + /// 需求数量8 + /// + [JsonPropertyName("quantityDemand8")] + [ExporterHeader(DisplayName = "需求数量8")] + public decimal? QuantityDemand8 { get; set; } = 0; + + /// + /// 需求数量9 + /// + [JsonPropertyName("quantityDemand9")] + [ExporterHeader(DisplayName = "需求数量9")] + public decimal? QuantityDemand9 { get; set; } = 0; + + /// + /// 需求数量10 + /// + [JsonPropertyName("quantityDemand10")] + [ExporterHeader(DisplayName = "需求数量10")] + public decimal? QuantityDemand10 { get; set; } = 0; + + /// + /// 需求数量11 + /// + [JsonPropertyName("quantityDemand11")] + [ExporterHeader(DisplayName = "需求数量11")] + public decimal? QuantityDemand11 { get; set; } = 0; + + /// + /// 需求数量12 + /// + [JsonPropertyName("quantityDemand12")] + [ExporterHeader(DisplayName = "需求数量12")] + public decimal? QuantityDemand12 { get; set; } = 0; + + /// + /// 当文件夹数据发生变更时(更新需求=1/否则=0) + /// + [JsonPropertyName("isUpdate")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "数据变更标识")] + public string? IsUpdate { get; set; } = string.Empty; + + /// + /// 创建人 + /// + [JsonPropertyName("createByUser")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "创建人")] + public string? CreateByUser { get; set; } = string.Empty; + + /// + /// 创建时间 + /// + [JsonPropertyName("createTime")] + [ExporterHeader(DisplayName = "创建时间")] + public DateTime CreateTime { get; set; } + + /// + /// 修改人 + /// + [JsonPropertyName("updateByUser")] + [MaxLength(50)] + [ExporterHeader(DisplayName = "修改人")] + public string? UpdateByUser { get; set; } = string.Empty; + + /// + /// 修改时间 + /// + [JsonPropertyName("updateTime")] + [ExporterHeader(DisplayName = "修改时间")] + public DateTime UpdateTime { get; set; } + + /// + /// 是否删除(0:否,1是) + /// + [JsonPropertyName("isDelete")] + [ExporterHeader(DisplayName = "删除状态")] + public int IsDelete { get; set; } = 0; + + /// + /// 版本号 + /// + [JsonPropertyName("version")] + [ExporterHeader(DisplayName = "版本号")] + public int Version { get; set; } = 0; + + + + + } + + + /// + /// 日物料需求计划 + /// + public class SUPPLIER_MRP_DATE_LOGS : CherryReadBaseEntity + { + + /// + /// 需求发布版次(用于接口反馈数据的唯一标识) + /// 字符串长度限制:50 字节 + /// + [ExporterHeader(DisplayName = "需求发布版次")] + [StringLength(50)] // 使用数据注解限制长度(需引用 System.ComponentModel.DataAnnotations) + public string? ReleaseEdition { get; set; } = string.Empty; + + /// + /// 奇瑞零件号 + /// 字符串长度限制:50 字节 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [StringLength(50)] + public string? MaterialCode { get; set; } = string.Empty; + + /// + /// 零件名称 + /// 字符串长度限制:50 字节 + /// + [ExporterHeader(DisplayName = "零件名称")] + [StringLength(100)] + public string? MaterialDescription { get; set; } = string.Empty; + + /// + /// 工厂代码 + /// 字符串长度限制:50 字节 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [StringLength(50)] + public string? PlantId { get; set; } = string.Empty; + + /// + /// 工厂名称 + /// 字符串长度限制:50 字节 + /// + [ExporterHeader(DisplayName = "工厂名称")] + [StringLength(50)] + public string? PlantName { get; set; } = string.Empty; + + /// + /// 需求起始日期(格式:yyyy-MM-dd) + /// + [ExporterHeader(DisplayName = "需求起始日期")] + public DateTime? StartDate { get; set; } + + + /// + /// 需求起始日期的需求数量 + /// + [ExporterHeader(DisplayName = "第1天需求数量")] + public decimal? QuantityDemand1 { get; set; } = 0; + + /// + /// 起始日期+1天的需求数量 + /// + [ExporterHeader(DisplayName = "第2天需求数量")] + public decimal? QuantityDemand2 { get; set; } = 0; + + /// + /// 起始日期+2天的需求数量(以此类推) + /// + [ExporterHeader(DisplayName = "第3天需求数量")] + public decimal QuantityDemand3 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第4天需求数量")] + public decimal QuantityDemand4 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第5天需求数量")] + public decimal QuantityDemand5 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第6天需求数量")] + public decimal QuantityDemand6 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第7天需求数量")] + public decimal QuantityDemand7 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第8天需求数量")] + public decimal QuantityDemand8 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第9天需求数量")] + public decimal QuantityDemand9 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第10天需求数量")] + public decimal QuantityDemand10 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第11天需求数量")] + public decimal QuantityDemand11 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第12天需求数量")] + public decimal QuantityDemand12 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第13天需求数量")] + public decimal QuantityDemand13 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第14天需求数量")] + public decimal QuantityDemand14 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第15天需求数量")] + public decimal QuantityDemand15 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第16天需求数量")] + public decimal QuantityDemand16 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第17天需求数量")] + public decimal QuantityDemand17 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第18天需求数量")] + public decimal QuantityDemand18 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第19天需求数量")] + public decimal QuantityDemand19 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第20天需求数量")] + public decimal QuantityDemand20 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第21天需求数量")] + public decimal QuantityDemand21 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第22天需求数量")] + public decimal QuantityDemand22 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第23天需求数量")] + public decimal QuantityDemand23 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第24天需求数量")] + public decimal QuantityDemand24 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第25天需求数量")] + public decimal QuantityDemand25 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第26天需求数量")] + public decimal QuantityDemand26 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第27天需求数量")] + public decimal QuantityDemand27 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第28天需求数量")] + public decimal QuantityDemand28 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第29天需求数量")] + public decimal QuantityDemand29 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第30天需求数量")] + public decimal QuantityDemand30 { get; set; } = 0; + + [ExporterHeader(DisplayName = "第31天需求数量")] + public decimal QuantityDemand31 { get; set; } = 0; + + /// + /// 数据变更标识(1=更新需求,0=未变更) + /// + [ExporterHeader(DisplayName = "数据变更标识")] + public string? IsUpdate { get; set; } = string.Empty; + + /// + /// 创建人(字符串长度默认 50 字节) + /// + [ExporterHeader(DisplayName = "创建人")] + [StringLength(50)] + public string? CreateByUser { get; set; } = string.Empty; + + /// + /// 创建时间(自动填充当前时间) + /// + [ExporterHeader(DisplayName = "创建时间")] + public DateTime CreateTime { get; set; } = DateTime.Now; + + /// + /// 修改人(字符串长度默认 50 字节) + /// + [ExporterHeader(DisplayName = "修改人")] + [StringLength(50)] + public string? UpdateByUser { get; set; } = string.Empty; + + /// + /// 修改时间(自动更新为最后修改时间) + /// + [ExporterHeader(DisplayName = "修改时间")] + public DateTime UpdateTime { get; set; } = DateTime.Now; + + /// + /// 删除标识(0=未删除,1=已删除) + /// + [ExporterHeader(DisplayName = "删除标识")] + public int IsDelete { get; set; } = 0; // 默认已删除(根据原始数据默认值) + + /// + /// 数据版本号(乐观锁控制) + /// + [ExporterHeader(DisplayName = "数据版本号")] + public int Version { get; set; } = 0; + + + + + + + + + + } + + + + /// + /// 计划协议 + /// + public class SUPPLIER_SA_WEEK_LOGS : CherryReadBaseEntity + { + + /// + /// 计划协议号 + /// + [ExporterHeader(DisplayName = "计划协议号")] + [MaxLength(50)] + public string? ScheduleAgreement { get; set; } = ""; + + /// + /// 行项目号 + /// + [ExporterHeader(DisplayName = "行项目号")] + [MaxLength(50)] + public string? SerialNumber { get; set; } = ""; + + /// + /// 零件号:奇瑞零件号 + /// + [ExporterHeader(DisplayName = "零件号")] + [MaxLength(50)] + public string? MaterialCode { get; set; } = ""; + + /// + /// 零件名称 + /// + [ExporterHeader(DisplayName = "零件名称")] + [MaxLength(100)] + public string? MaterialDescription { get; set; } = ""; + + /// + /// 采购组 + /// + [ExporterHeader(DisplayName = "采购组")] + [MaxLength(50)] + public string? PurchasingGroup { get; set; } = ""; + + /// + /// 工厂代码 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [MaxLength(50)] + public string? PlantId { get; set; } = ""; + + /// + /// 需求数量 + /// + [ExporterHeader(DisplayName = "需求数量")] + public decimal? QuantityDemand { get; set; } = 0; + + /// + /// 交货日期-格式:yyyy-MM-dd + /// + [ExporterHeader(DisplayName = "交货日期")] + public DateTime? DateReceived { get; set; } + + /// + /// 创建人 + /// + [ExporterHeader(DisplayName = "创建人")] + [MaxLength(50)] + public string? CreateByUser { get; set; } = ""; + + /// + /// 创建时间 + /// + [ExporterHeader(DisplayName = "创建时间")] + public DateTime? CreateTime { get; set; } + + /// + /// 修改人 + /// + [ExporterHeader(DisplayName = "修改人")] + [MaxLength(50)] + public string? UpdateByUser { get; set; } = ""; + + /// + /// 修改时间 + /// + [ExporterHeader(DisplayName = "修改时间")] + public DateTime? UpdateTime { get; set; } + + /// + /// 是否删除(0:否,1是) + /// + [ExporterHeader(DisplayName = "删除标识")] + public int IsDelete { get; set; } = 0; + + /// + /// 版本号 + /// + [ExporterHeader(DisplayName = "版本号")] + public int Version { get; set; } = 0; + + + + + } + + /// + /// 采购订单 + /// + public class SUPPLIER_PO_LOGS : CherryReadBaseEntity + { + + + /// + /// 采购订单号 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "采购订单号")] + public string? PurchaseOrder { get; set; } + + /// + /// 行项目号 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "行项目号")] + public string? SerialNumber { get; set; } + + /// + /// 工厂代码 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "工厂代码")] + public string? PlantId { get; set; } + + /// + /// 工厂名称 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "工厂名称")] + public string? PlantName { get; set; } + + /// + /// 凭证日期-格式:yyyy-MM-dd + /// + [ExporterHeader(DisplayName = "凭证日期", Format = "yyyy-MM-dd")] + public DateTime? VoucherDate { get; set; } + + /// + /// 需方联系人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "需方联系人")] + public string? Purchaser { get; set; } + + /// + /// 供方联系人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "供方联系人")] + public string? Supplier { get; set; } + + /// + /// 物料编码 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "物料编码")] + public string? MaterialCode { get; set; } + + /// + /// 物料描述 + /// + [MaxLength(100)] + [ExporterHeader(DisplayName = "物料描述")] + public string? MaterialDescription { get; set; } + + /// + /// 需求数量 + /// + [ExporterHeader(DisplayName = "需求数量")] + public decimal? QuantityDemand { get; set; } + + /// + /// 物料单位 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "物料单位")] + public string? MaterialUnit { get; set; } + + /// + /// 交货日期-格式:yyyy-MM-dd + /// + [ExporterHeader(DisplayName = "交货日期", Format = "yyyy-MM-dd")] + public DateTime? DeliveryDate { get; set; } + + /// + /// 交货地点 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "交货地点")] + public string? DeliveryPlace { get; set; } + + /// + /// 到货数量 + /// + [ExporterHeader(DisplayName = "到货数量")] + public decimal? QuantityDelivery { get; set; } = 0; + + /// + /// 备注:含批次号信息 + /// + + [ExporterHeader(DisplayName = "备注")] + public string? Note { get; set; } + + /// + /// 项目类别文本 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "项目类别")] + public string? ItemType { get; set; } + + /// + /// 国际贸易条件 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "贸易条件")] + public string? TradeTerms { get; set; } + + /// + /// 出口国家 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "出口国家")] + public string? Country { get; set; } + + /// + /// 批次 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "批次")] + public string? Batch { get; set; } + + /// + /// 创建人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "创建人")] + public string? CreateByUser { get; set; } + + /// + /// 创建时间 + /// + [ExporterHeader(DisplayName = "创建时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime CreateTime { get; set; } = DateTime.Now; + + /// + /// 修改人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "修改人")] + public string? UpdateByUser { get; set; } + + /// + /// 修改时间 + /// + [ExporterHeader(DisplayName = "修改时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime UpdateTime { get; set; } = DateTime.Now; + + /// + /// 是否删除(0:否,1是) + /// + [ExporterHeader(DisplayName = "删除标记")] + public int IsDelete { get; set; } = 0; + + /// + /// 版本号 + /// + [ExporterHeader(DisplayName = "版本号")] + public int Version { get; set; } = 0; + + + + } + + + + /// + /// 过焊装未过总装 + /// + public class SUPPLIER_PRO_HSCHEDUL_LOGS : CherryReadBaseEntity + { + + + + /// + /// 车型 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "车型")] + public string? Models { get; set; } + + /// + /// VIN + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "VIN")] + public string? Vin { get; set; } + + /// + /// 产线代码 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "产线代码")] + public string? ProductionLineId { get; set; } + + /// + /// 产线名称 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "产线名称")] + public string? ProductionLineName { get; set; } + + /// + /// 物料编码 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "物料编码")] + public string? MaterialCode { get; set; } + + /// + /// 物料描述 + /// + [MaxLength(100)] + [ExporterHeader(DisplayName = "物料描述")] + public string? MaterialDescription { get; set; } + + /// + /// 生产备注(报工类型) + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "报工类型")] + public string? ProductionType { get; set; } + + /// + /// 上线日期时间-格式:yyyy-MM-dd HH:mm:ss + /// + [ExporterHeader(DisplayName = "上线时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? OnLineTime { get; set; } + + /// + /// 创建人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "创建人")] + public string? CreateByUser { get; set; } + + /// + /// 创建时间 + /// + [ExporterHeader(DisplayName = "创建时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime CreateTime { get; set; } = DateTime.Now; + + /// + /// 修改人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "修改人")] + public string? UpdateByUser { get; set; } + + /// + /// 修改时间 + /// + [ExporterHeader(DisplayName = "修改时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime UpdateTime { get; set; } = DateTime.Now; + + /// + /// 是否删除(0:否,1是) + /// + [ExporterHeader(DisplayName = "删除标记")] + public int IsDelete { get; set; } = 0; + + /// + /// 版本号 + /// + [ExporterHeader(DisplayName = "版本号")] + public int Version { get; set; } = 0; + + + + + } + + /// + /// 过涂装未过总装 + /// + public class SUPPLIER_PRO_TSCHEDUL_LOGS : CherryReadBaseEntity + { + + + /// + /// 车型 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "车型")] + public string? Models { get; set; } + + /// + /// VIN + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "VIN")] + public string? Vin { get; set; } + + /// + /// 产线代码 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "产线代码")] + public string? ProductionLineId { get; set; } + + /// + /// 产线名称 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "产线名称")] + public string? ProductionLineName { get; set; } + + /// + /// 物料编码 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "物料编码")] + public string? MaterialCode { get; set; } + + /// + /// 物料描述 + /// + [MaxLength(100)] + [ExporterHeader(DisplayName = "物料描述")] + public string? MaterialDescription { get; set; } + + /// + /// 上线日期时间-格式:yyyy-MM-dd HH:mm:ss + /// + [ExporterHeader(DisplayName = "上线时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? OnLineTime { get; set; } + + /// + /// 总装车间 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "总装车间")] + public string? FinalWorkshop { get; set; } + + /// + /// 总装上线日期时间-格式:yyyy-MM-dd HH:mm:ss + /// + [ExporterHeader(DisplayName = "总装上线时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? FinalOnLineTime { get; set; } + + /// + /// 创建人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "创建人")] + public string? CreateByUser { get; set; } + + /// + /// 创建时间 + /// + [ExporterHeader(DisplayName = "创建时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime CreateTime { get; set; } = DateTime.Now; + + /// + /// 修改人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "修改人")] + public string? UpdateByUser { get; set; } + + /// + /// 修改时间 + /// + [ExporterHeader(DisplayName = "修改时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime UpdateTime { get; set; } = DateTime.Now; + + /// + /// 是否删除(0:否,1是) + /// + [ExporterHeader(DisplayName = "删除标记")] + [MaxLength(5)] + public string IsDelete { get; set; } = "0"; + + /// + /// 版本号 + /// + [ExporterHeader(DisplayName = "版本号")] + public int Version { get; set; } = 0; + + + + + } + + /// + /// 排序供货 + /// + public class SUPPLIER_PRO_CSCHEDUL_LOGS : CherryReadBaseEntity + { + + + /// + /// 车型 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "车型")] + public string? Models { get; set; } + + /// + /// VIN码 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "VIN码")] + public string? Vin { get; set; } + + /// + /// 产线编号 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "产线编号")] + public string? ProductionLineId { get; set; } + + /// + /// 产线名称 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "产线名称")] + public string? ProductionLineName { get; set; } + + /// + /// 物料编码 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "物料编码")] + public string? MaterialCode { get; set; } + + /// + /// 物料描述 + /// + [MaxLength(100)] + [ExporterHeader(DisplayName = "物料描述")] + public string? MaterialDescription { get; set; } + + /// + /// 排序日期 + /// + [ExporterHeader(DisplayName = "排序日期", Format = "yyyy-MM-dd")] + public DateTime? SortDate { get; set; } + + /// + /// 排序时间 + /// + [MaxLength(8)] // HH:mm:ss 固定8位 + [ExporterHeader(DisplayName = "排序时间")] + public string? SortTime { get; set; } + + /// + /// 上线日期 + /// + [ExporterHeader(DisplayName = "上线日期", Format = "yyyy-MM-dd")] + public DateTime? OnLineDate { get; set; } + + /// + /// 上线时间 + /// + [MaxLength(8)] // HH:mm:ss 固定8位 + [ExporterHeader(DisplayName = "上线时间")] + public string? OnLineTime { get; set; } + + /// + /// 车型类别 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "车型类别")] + public string? ModelCategory { get; set; } + + /// + /// 动力总成物料号 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "动力总成物料号")] + public string? AssemblyMaterialCode { get; set; } + + /// + /// 发动机物料号 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "发动机物料号")] + public string? MotorMaterialCode { get; set; } + + /// + /// 工厂 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "工厂")] + public string? Plant { get; set; } + + /// + /// 创建人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "创建人")] + public string? CreateByUser { get; set; } + + /// + /// 创建时间 + /// + [ExporterHeader(DisplayName = "创建时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? CreateTime { get; set; } + + /// + /// 修改人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "修改人")] + public string? UpdateByUser { get; set; } + + /// + /// 修改时间 + /// + [ExporterHeader(DisplayName = "修改时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? UpdateTime { get; set; } + + /// + /// 删除标记(0:未删除,1:已删除) + /// + [ExporterHeader(DisplayName = "删除标记")] + public int IsDelete { get; set; } = 0; + + /// + /// 数据版本号 + /// + [ExporterHeader(DisplayName = "版本号")] + public int Version { get; set; } = 0; + + } + + /// + /// 看板配送单 + /// + public class SUPPLIER_DEL_STATE_LOGS : CherryReadBaseEntity + { + + + /// + /// 配送单号 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "配送单号")] + public string? DeliveryNumber { get; set; } + + /// + /// 行项目号 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "行项目号")] + public string? SerialNumber { get; set; } + + /// + /// 配送单状态 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "配送单状态")] + public string? SerialSrate { get; set; } + + /// + /// 零件号 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "零件号")] + public string? MaterialCode { get; set; } + + /// + /// 零件名称 + /// + [MaxLength(100)] + [ExporterHeader(DisplayName = "零件名称")] + public string? MaterialDescription { get; set; } + + /// + /// 工厂代码 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "工厂代码")] + public string? PlantId { get; set; } + + /// + /// 收货道口 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "收货道口")] + public string? ReceivingCrossings { get; set; } + + /// + /// 数量 + /// + [ExporterHeader(DisplayName = "数量")] + public decimal? QuantityDelivery { get; set; } = 0; + + /// + /// 创建时间 + /// + [ExporterHeader(DisplayName = "数据创建时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? DataCreateTime { get; set; } + + /// + /// 供应商接收时间 + /// + [ExporterHeader(DisplayName = "供应商接收时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? SupplierReceiveTime { get; set; } + + /// + /// 道口发货时间 + /// + [ExporterHeader(DisplayName = "道口发货时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? RoadShippedTime { get; set; } + + /// + /// 道口收货时间 + /// + [ExporterHeader(DisplayName = "道口收货时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? RoadReceiveTime { get; set; } + + /// + /// 创建人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "创建人")] + public string? CreateByUser { get; set; } + + /// + /// 创建时间 + /// + [ExporterHeader(DisplayName = "创建时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime CreateTime { get; set; } = DateTime.Now; + + /// + /// 修改人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "修改人")] + public string? UpdateByUser { get; set; } + + /// + /// 修改时间 + /// + [ExporterHeader(DisplayName = "修改时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime UpdateTime { get; set; } = DateTime.Now; + + /// + /// 删除标记(0:未删除,1:已删除) + /// + [ExporterHeader(DisplayName = "删除标记")] + public int IsDelete { get; set; } = 0; + + /// + /// 数据版本号 + /// + [ExporterHeader(DisplayName = "版本号")] + public int Version { get; set; } = 0; + + + + } + + /// + /// 退货单 + /// + public class SUPPLIER_RETURN_LOGS : CherryReadBaseEntity + { + + /// + /// 退货单号 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "退货单号")] + public string? ReturnNumber { get; set; } + + /// + /// 行项目号 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "行项目号")] + public string? SerialNumber { get; set; } + + /// + /// 退货单状态 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "退货单状态")] + public string? SerialSrate { get; set; } + + /// + /// 取货地 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "取货地")] + public string? PickUpLocation { get; set; } + + /// + /// 需求取货时间 + /// + [ExporterHeader(DisplayName = "需求取货时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? DemandPickupTime { get; set; } + + /// + /// 取货道口 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "取货道口")] + public string? PickUpCrossings { get; set; } + + /// + /// 反馈信息 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "反馈信息")] + public string? Feedback { get; set; } + + /// + /// 工厂 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "工厂")] + public string? Plant { get; set; } + + /// + /// 零件号 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "零件号")] + public string? MaterialCode { get; set; } + + /// + /// 零件名称 + /// + [MaxLength(100)] + [ExporterHeader(DisplayName = "零件名称")] + public string? MaterialDescription { get; set; } + + /// + /// 数量 + /// + [ExporterHeader(DisplayName = "数量")] + public decimal QuantityDelivery { get; set; } = 0; + + /// + /// 退货类型(0-不合格品;1-合格品) + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "退货类型")] + public string? ReturnType { get; set; } + + /// + /// 批次号 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "批次号")] + public string? LotNumber { get; set; } + + /// + /// 判定人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "判定人")] + public string? Judge { get; set; } + + /// + /// 退货原因 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "退货原因")] + public string? ReturnReason { get; set; } + + /// + /// 创建人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "创建人")] + public string? CreateByUser { get; set; } + + /// + /// 创建时间 + /// + [ExporterHeader(DisplayName = "创建时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? CreateTime { get; set; } + + /// + /// 修改人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "修改人")] + public string? UpdateByUser { get; set; } + + /// + /// 修改时间 + /// + [ExporterHeader(DisplayName = "修改时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? UpdateTime { get; set; } + + /// + /// 删除标记(0:未删除,1:已删除) + /// + [ExporterHeader(DisplayName = "删除标记")] + public int IsDelete { get; set; } = 0; + + /// + /// 数据版本号 + /// + [ExporterHeader(DisplayName = "版本号")] + public int Version { get; set; } = 0; + + + + + + } + + /// + /// 奇瑞RDC共享库存 + /// + public class SUPPLIER_INV_DATA_LOGS : CherryReadBaseEntity + { + + + /// + /// 工厂代码 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "工厂代码")] + public string? PlantId { get; set; } + + /// + /// 工厂名称 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "工厂名称")] + public string? PlantName { get; set; } + + /// + /// 零件号 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "零件号")] + public string? MaterialCode { get; set; } + + /// + /// 零件名称 + /// + [MaxLength(100)] + [ExporterHeader(DisplayName = "零件名称")] + public string? MaterialDescription { get; set; } + + /// + /// 当前库存数量 + /// + [ExporterHeader(DisplayName = "当前库存数量")] + public decimal? QuantityCurrent { get; set; } = 0; + + /// + /// 库存状态 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "库存状态")] + public string? StockState { get; set; } + + /// + /// 更新时间 + /// + [ExporterHeader(DisplayName = "数据更新时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? DataUpdateTime { get; set; } + + /// + /// 创建人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "创建人")] + public string? CreateByUser { get; set; } + + /// + /// 创建时间 + /// + [ExporterHeader(DisplayName = "创建时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? CreateTime { get; set; } + + /// + /// 修改人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "修改人")] + public string? UpdateByUser { get; set; } + + /// + /// 修改时间 + /// + [ExporterHeader(DisplayName = "修改时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? UpdateTime { get; set; } + + /// + /// 删除标记(0:未删除,1:已删除) + /// + [ExporterHeader(DisplayName = "删除标记")] + public string IsDelete { get; set; } = "0"; + + /// + /// 数据版本号 + /// + [ExporterHeader(DisplayName = "版本号")] + public int Version { get; set; } = 0; + + } + + + + /// + /// 日MRP状态监控 + /// + public class SUPPLIER_MRP_STATE_LOGS : CherryReadBaseEntity + { + + /// + /// 工厂代码 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "工厂代码")] + public string? PlantId { get; set; } + + /// + /// 工厂名称 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "工厂名称")] + public string? PlantName { get; set; } + + /// + /// 需求状态 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "需求状态")] + public string? DemandSrate { get; set; } + + /// + /// 需求类型 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "需求类型")] + public string? DemandType { get; set; } + + /// + /// 零件号(奇瑞零件号) + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "零件号")] + public string? MaterialCode { get; set; } + + /// + /// 零件名称 + /// + [MaxLength(100)] + [ExporterHeader(DisplayName = "零件名称")] + public string? MaterialDescription { get; set; } + + /// + /// 集货标识 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "集货标识")] + public string? SummarySign { get; set; } + + /// + /// 需求日期 + /// + [ExporterHeader(DisplayName = "需求日期", Format = "yyyy-MM-dd")] + public DateTime? DateRequired { get; set; } + + /// + /// 需求数量 + /// + [ExporterHeader(DisplayName = "需求数量")] + public decimal? QuantityDemand { get; set; } = 0; + + /// + /// 需求确认时间 + /// + [ExporterHeader(DisplayName = "需求确认时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? ConfirmTime { get; set; } + + /// + /// 已建单数量 + /// + [ExporterHeader(DisplayName = "已建单数量")] + public decimal? CreatQuantity { get; set; } = 0; + + /// + /// 已发货数量 + /// + [ExporterHeader(DisplayName = "已发货数量")] + public decimal? QuantityDelivery { get; set; } = 0; + + /// + /// 已收货数量 + /// + [ExporterHeader(DisplayName = "已收货数量")] + public decimal? QuantityReceive { get; set; } = 0; + + /// + /// 在途数量 + /// + [ExporterHeader(DisplayName = "在途数量")] + public decimal? QuantityInTransit { get; set; } = 0; + + /// + /// 按时到货比(百分比,如:95表示95%) + /// + [ExporterHeader(DisplayName = "按时到货比")] + public decimal? OnTimePercentage { get; set; } + + /// + /// 集货件已建单数量 + /// + [ExporterHeader(DisplayName = "集货件已建单数量")] + public decimal? SummaryCreatQuantity { get; set; } = 0; + + /// + /// 集货件已发货数量 + /// + [ExporterHeader(DisplayName = "集货件已发货数量")] + public decimal? SummaryQuantityDelivery { get; set; } = 0; + + /// + /// 集货件已收货数量 + /// + [ExporterHeader(DisplayName = "集货件已收货数量")] + public decimal? SummaryQuantityReceive { get; set; } = 0; + + /// + /// 集货件已在途数量 + /// + [ExporterHeader(DisplayName = "集货件已在途数量")] + public decimal? SummaryQuantityInTransit { get; set; } = 0; + + /// + /// 创建人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "创建人")] + public string? CreateByUser { get; set; } + + /// + /// 创建时间 + /// + [ExporterHeader(DisplayName = "创建时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? CreateTime { get; set; } + + /// + /// 修改人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "修改人")] + public string? UpdateByUser { get; set; } + + /// + /// 修改时间 + /// + [ExporterHeader(DisplayName = "修改时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? UpdateTime { get; set; } + + /// + /// 删除标记(0:未删除,1:已删除) + /// + [ExporterHeader(DisplayName = "删除标记")] + public int IsDelete { get; set; } = 0; + + /// + /// 数据版本号 + /// + [ExporterHeader(DisplayName = "版本号")] + public int Version { get; set; } = 0; + + + + + } + + /// + /// 日MRP预警推移 + /// + public class SUPPLIER_MRP_WARNING_LOGS : CherryReadBaseEntity + { + + + + + /// + /// 工厂代码 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "工厂代码")] + public string? PlantId { get; set; } + + /// + /// 零件号(奇瑞零件号) + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "零件号")] + public string? MaterialCode { get; set; } + + /// + /// 零件名称 + /// + [MaxLength(100)] + [ExporterHeader(DisplayName = "零件名称")] + public string? MaterialDescription { get; set; } + + /// + /// 当前库存 + /// + [ExporterHeader(DisplayName = "当前库存")] + public decimal? QuantityCurrent { get; set; } = 0; + + /// + /// 需求日期 + /// + [ExporterHeader(DisplayName = "需求日期", Format = "yyyy-MM-dd")] + public DateTime? ReckonDate { get; set; } + + /// + /// 需求数量 + /// + [ExporterHeader(DisplayName = "需求数量")] + public decimal? QuantityPlanned { get; set; } = 0; + + /// + /// 满足数量 + /// + [ExporterHeader(DisplayName = "满足数量")] + public decimal? QuantityPlannedDelivery { get; set; } = 0; + + /// + /// 在途数量 + /// + [ExporterHeader(DisplayName = "在途数量")] + public decimal? QuantityInTransit { get; set; } = 0; + + /// + /// 日GAP(日需求数量与满足数量差异) + /// + [ExporterHeader(DisplayName = "日GAP")] + public decimal? DateGap { get; set; } = 0; + + /// + /// 库存GAP(库存推移差异) + /// + [ExporterHeader(DisplayName = "库存GAP")] + public decimal? InventoryGap { get; set; } = 0; + + /// + /// 创建人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "创建人")] + public string? CreateByUser { get; set; } + + /// + /// 创建时间 + /// + [ExporterHeader(DisplayName = "创建时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? CreateTime { get; set; } + /// + /// 修改人 + /// + [MaxLength(50)] + [ExporterHeader(DisplayName = "修改人")] + public string? UpdateByUser { get; set; } + + /// + /// 修改时间 + /// + [ExporterHeader(DisplayName = "修改时间", Format = "yyyy-MM-dd HH:mm:ss")] + public DateTime? UpdateTime { get; set; } + + /// + /// 删除标记(0:未删除,1:已删除) + /// + [ExporterHeader(DisplayName = "删除标记")] + public int IsDelete { get; set; } = 0; + + /// + /// 数据版本号 + /// + [ExporterHeader(DisplayName = "版本号")] + public int Version { get; set; } = 0; + + + + } + + + + + + + + + + } diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_BOM_LOGS.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_BOM_LOGS.cs new file mode 100644 index 0000000..4f8d58b --- /dev/null +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_BOM_LOGS.cs @@ -0,0 +1,119 @@ +using Magicodes.ExporterAndImporter.Core; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TaskManager.Entity +{ + /// + /// BOM主数据 + /// + public class SUPPLIER_BOM_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// BOM编码 + /// + [ExporterHeader(DisplayName = "BOM编码")] + [ImporterHeader(Name = "BOM编码")] + public string BomCode { get; set; } + /// + /// BOM名称 + /// + [ExporterHeader(DisplayName = "BOM名称")] + [ImporterHeader(Name = "BOM名称")] + public string BomName { get; set; } + /// + /// BOM版本 + /// + [ExporterHeader(DisplayName = "BOM版本")] + [ImporterHeader(Name = "BOM版本")] + public string BomVersion { get; set; } + /// + /// 奇瑞零件号 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [ImporterHeader(Name = "奇瑞零件号")] + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + [ExporterHeader(DisplayName = "奇瑞零件名称")] + [ImporterHeader(Name = "奇瑞零件名称")] + public string CheryProductName { get; set; } + /// + /// 供应商父件编码 + /// + [ExporterHeader(DisplayName = "供应商父件编码")] + [ImporterHeader(Name = "供应商父件编码")] + public string VendorProductNo { get; set; } + /// + /// 供应商父件名称 + /// + [ExporterHeader(DisplayName = "供应商父件名称")] + [ImporterHeader(Name = "供应商父件名称")] + public string VendorProductName { get; set; } + /// + /// 父件类型(成品,半成品) + /// + [ExporterHeader(DisplayName = "父件类型")] + [ImporterHeader(Name = "父件类型")] + public string? VendorProductType { get; set; } + /// + /// 父件单位 + /// + [ExporterHeader(DisplayName = "父件单位")] + [ImporterHeader(Name = "父件单位")] + public string? MaterialUnit { get; set; } + /// + /// 子件编码 + /// + [ExporterHeader(DisplayName = "子件编码")] + [ImporterHeader(Name = "子件编码")] + public string SubMaterialCode { get; set; } + /// + /// 子件名称 + /// + [ExporterHeader(DisplayName = "子件名称")] + [ImporterHeader(Name = "子件名称")] + public string SubMaterialName { get; set; } + /// + /// 子件类型(半成品,原材料) + /// + [ExporterHeader(DisplayName = "子件类型")] + [ImporterHeader(Name = "子件类型")] + public string? SubMaterialType { get; set; } + /// + /// 子件单位 + /// + [ExporterHeader(DisplayName = "子件单位")] + [ImporterHeader(Name = "子件单位")] + public string SubMaterialUnit { get; set; } + /// + /// 子件用量 + /// + [ExporterHeader(DisplayName = "子件用量")] + [ImporterHeader(Name = "子件用量")] + public decimal SubMaterialQuota { get; set; } + /// + /// BOM变更时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "BOM变更时间")] + [ImporterHeader(Name = "BOM变更时间")] + public string DataUpdateTime { get; set; } + } + +} diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_EMPLOYEE_LOGS.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_EMPLOYEE_LOGS.cs new file mode 100644 index 0000000..c145982 --- /dev/null +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_EMPLOYEE_LOGS.cs @@ -0,0 +1,130 @@ +using Magicodes.ExporterAndImporter.Core; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TaskManager.Entity +{ + /// + /// 人员资质信息 + /// + public class SUPPLIER_EMPLOYEE_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 工厂代码 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [ImporterHeader(Name = "工厂代码")] + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + [ExporterHeader(DisplayName = "工厂名称")] + [ImporterHeader(Name = "工厂名称")] + public string PlantName { get; set; } + /// + /// 车间代码 + /// + [ExporterHeader(DisplayName = "车间代码")] + [ImporterHeader(Name = "车间代码")] + public string WorkshopId { get; set; } + /// + /// 车间名称 + /// + [ExporterHeader(DisplayName = "车间名称")] + [ImporterHeader(Name = "车间名称")] + public string WorkshopName { get; set; } + /// + /// 产线代码 + /// + [ExporterHeader(DisplayName = "产线代码")] + [ImporterHeader(Name = "产线代码")] + public string ProductionLineId { get; set; } + /// + /// 产线名称 + /// + [ExporterHeader(DisplayName = "产线名称")] + [ImporterHeader(Name = "产线名称")] + public string ProductionLineName { get; set; } + /// + /// 工位代码 + /// + [ExporterHeader(DisplayName = "工位代码")] + [ImporterHeader(Name = "工位代码")] + public string StationId { get; set; } + /// + /// 工位名称 + /// + [ExporterHeader(DisplayName = "工位名称")] + [ImporterHeader(Name = "工位名称")] + public string StationName { get; set; } + /// + /// 工位人员账号 + /// + [ExporterHeader(DisplayName = "工位人员账号")] + [ImporterHeader(Name = "工位人员账号")] + public string OperatorId { get; set; } + /// + /// 工位人员姓名 + /// + [ExporterHeader(DisplayName = "工位人员姓名")] + [ImporterHeader(Name = "工位人员姓名")] + public string OperatorName { get; set; } + /// + /// 是否有资质(Y,N) + /// + [ExporterHeader(DisplayName = "是否有资质(Y,N)")] + [ImporterHeader(Name = "是否有资质(Y,N)")] + public string HaveQuantity { get; set; } + /// + /// 供应商修改时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "供应商修改时间")] + [ImporterHeader(Name = "供应商修改时间")] + public string DataUpdateTime { get; set; } + /// + /// 岗位代码 + /// + [ExporterHeader(DisplayName = "岗位代码")] + [ImporterHeader(Name = "岗位代码")] + public string PositionId { get; set; } + /// + /// 岗位名称 + /// + [ExporterHeader(DisplayName = "岗位名称")] + [ImporterHeader(Name = "岗位名称")] + public string PositionName { get; set; } + /// + /// 资质等级(Level_4,Level_3,Level_2,Level_1) + /// + [ExporterHeader(DisplayName = "资质等级")] + [ImporterHeader(Name = "资质等级")] + public string QualificationLevel { get; set; } + /// + /// 资质获取时间 + /// + [ExporterHeader(DisplayName = "资质获取时间")] + [ImporterHeader(Name = "资质获取时间")] + public string CheckInTime { get; set; } + /// + /// 资质失去时间 + /// + [ExporterHeader(DisplayName = "资质失去时间")] + [ImporterHeader(Name = "资质失去时间")] + public string CheckOutTime { get; set; } + } +} diff --git a/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_INFO_LOGS.cs b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_INFO_LOGS.cs new file mode 100644 index 0000000..f47e4ac --- /dev/null +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_INFO_LOGS.cs @@ -0,0 +1,125 @@ +using Magicodes.ExporterAndImporter.Core; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TaskManager.Entity +{ + /// + /// 供应商基础信息 + /// + public class SUPPLIER_INFO_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 工厂代码 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [ImporterHeader(Name = "工厂代码")] + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + [ExporterHeader(DisplayName = "工厂名称")] + [ImporterHeader(Name = "工厂名称")] + public string PlantName { get; set; } + /// + /// 车间代码 + /// + [ExporterHeader(DisplayName = "车间代码")] + [ImporterHeader(Name = "车间代码")] + public string WorkshopId { get; set; } + /// + /// 车间名称 + /// + [ExporterHeader(DisplayName = "车间名称")] + [ImporterHeader(Name = "车间名称")] + public string WorkshopName { get; set; } + /// + /// 产线代码 + /// + [ExporterHeader(DisplayName = "产线代码")] + [ImporterHeader(Name = "产线代码")] + public string ProductionLineId { get; set; } + /// + /// 产线名称 + /// + [ExporterHeader(DisplayName = "产线名称")] + [ImporterHeader(Name = "产线名称")] + public string ProductionLineName { get; set; } + /// + /// 工位代码 + /// + [ExporterHeader(DisplayName = "工位代码")] + [ImporterHeader(Name = "工位代码")] + public string StationId { get; set; } + /// + /// 工位名称 + /// + [ExporterHeader(DisplayName = "工位名称")] + [ImporterHeader(Name = "工位名称")] + public string StationName { get; set; } + /// + /// 是否关键工位(Y/N) + /// + [ExporterHeader(DisplayName = "是否关键工位(Y/N)")] + [ImporterHeader(Name = "是否关键工位(Y/N)")] + public string KeyStation { get; set; } + /// + /// 供应商修改时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "供应商修改时间")] + [ImporterHeader(Name = "供应商修改时间")] + public string DataUpdateTime { get; set; } + /// + /// 产线顺序 + /// + [ExporterHeader(DisplayName = "产线顺序")] + [ImporterHeader(Name = "产线顺序")] + public decimal ProductionLineOrder { get; set; } + /// + /// 工位顺序 + /// + [ExporterHeader(DisplayName = "工位顺序")] + [ImporterHeader(Name = "工位顺序")] + public decimal StationOrder { get; set; } + /// + /// 供应商总成零件号 + /// + [ExporterHeader(DisplayName = "供应商总成零件号")] + [ImporterHeader(Name = "供应商总成零件号")] + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + [ExporterHeader(DisplayName = "供应商总成零件名称")] + [ImporterHeader(Name = "供应商总成零件名称")] + public string VendorProductName { get; set; } + /// + /// 奇瑞零件号 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [ImporterHeader(Name = "奇瑞零件号")] + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + [ExporterHeader(DisplayName = "奇瑞零件名称")] + [ImporterHeader(Name = "奇瑞零件名称")] + public string CheryProductName { get; set; } + } + +} 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 new file mode 100644 index 0000000..d1f9369 --- /dev/null +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_CPS_LOGS.cs @@ -0,0 +1,305 @@ +using Magicodes.ExporterAndImporter.Core; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TaskManager.Entity +{ + /// + /// 过程控制项质量数据 + /// + public class SUPPLIER_PRO_CPS_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 供应商总成零件号 + /// + [ExporterHeader(DisplayName = "供应商总成零件号")] + [ImporterHeader(Name = "供应商总成零件号")] + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + [ExporterHeader(DisplayName = "供应商总成零件名称")] + [ImporterHeader(Name = "供应商总成零件名称")] + public string VendorProductName { get; set; } + /// + /// 供应商总成SN码 + /// + [ExporterHeader(DisplayName = "供应商总成SN码")] + [ImporterHeader(Name = "供应商总成SN码")] + public string VendorProductSn { get; set; } + /// + /// 供应商总成批次号 + /// + [ExporterHeader(DisplayName = "供应商总成批次号")] + [ImporterHeader(Name = "供应商总成批次号")] + public string VendorProductBatch { get; set; } + /// + /// 奇瑞零件号 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [ImporterHeader(Name = "奇瑞零件号")] + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + [ExporterHeader(DisplayName = "奇瑞零件名称")] + [ImporterHeader(Name = "奇瑞零件名称")] + public string CheryProductName { get; set; } + /// + /// 奇瑞SN码 + /// + [ExporterHeader(DisplayName = "奇瑞SN码")] + [ImporterHeader(Name = "奇瑞SN码")] + public string CheryProductSn { get; set; } + /// + /// 生产批次号 + /// + [ExporterHeader(DisplayName = "生产批次号")] + [ImporterHeader(Name = "生产批次号")] + public string ProductBatchNo { get; set; } + /// + /// 生产工单号 + /// + [ExporterHeader(DisplayName = "生产工单号")] + [ImporterHeader(Name = "生产工单号")] + public string ManufactureNo { get; set; } + /// + /// 工厂代码 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [ImporterHeader(Name = "工厂代码")] + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + [ExporterHeader(DisplayName = "工厂名称")] + [ImporterHeader(Name = "工厂名称")] + public string PlantName { get; set; } + /// + /// 车间代码 + /// + [ExporterHeader(DisplayName = "车间代码")] + [ImporterHeader(Name = "车间代码")] + public string WorkshopId { get; set; } + /// + /// 车间名称 + /// + [ExporterHeader(DisplayName = "车间名称")] + [ImporterHeader(Name = "车间名称")] + public string WorkshopName { get; set; } + /// + /// 产线代码 + /// + [ExporterHeader(DisplayName = "产线代码")] + [ImporterHeader(Name = "产线代码")] + public string ProductionLineId { get; set; } + /// + /// 产线名称 + /// + [ExporterHeader(DisplayName = "产线名称")] + [ImporterHeader(Name = "产线名称")] + public string ProductionLineName { get; set; } + /// + /// 工位代码 + /// + [ExporterHeader(DisplayName = "工位代码")] + [ImporterHeader(Name = "工位代码")] + public string StationId { get; set; } + /// + /// 工位名称 + /// + [ExporterHeader(DisplayName = "工位名称")] + [ImporterHeader(Name = "工位名称")] + public string StationName { get; set; } + /// + /// 工位人员编号 + /// + [ExporterHeader(DisplayName = "工位人员编号")] + [ImporterHeader(Name = "工位人员编号")] + public string EmpCode { get; set; } + /// + /// 工位人员姓名 + /// + [ExporterHeader(DisplayName = "工位人员姓名")] + [ImporterHeader(Name = "工位人员姓名")] + public string EmpName { get; set; } + /// + /// 控制项名称 + /// + [ExporterHeader(DisplayName = "控制项名称")] + [ImporterHeader(Name = "控制项名称")] + public string VendorFieldName { get; set; } + /// + /// 控制项代码 + /// + [ExporterHeader(DisplayName = "控制项代码")] + [ImporterHeader(Name = "控制项代码")] + public string VendorFieldCode { get; set; } + /// + /// 控制项点位 + /// + [ExporterHeader(DisplayName = "控制项点位")] + [ImporterHeader(Name = "控制项点位")] + public string? GatherSpot { get; set; } + /// + /// 控制项要求频率 + /// + [ExporterHeader(DisplayName = "控制项要求频率")] + [ImporterHeader(Name = "控制项要求频率")] + public decimal? SamplingRate { get; set; } + /// + /// 上下限更新时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "上下限更新时间")] + [ImporterHeader(Name = "上下限更新时间")] + public string? LimitUpdateTime { get; set; } + /// + /// 控制项描述 + /// + [ExporterHeader(DisplayName = "控制项描述")] + [ImporterHeader(Name = "控制项描述")] + public string? VendorFieldDesc { get; set; } + /// + /// 载体编码 + /// + [ExporterHeader(DisplayName = "载体编码")] + [ImporterHeader(Name = "载体编码")] + public string? CarrierCode { get; set; } + /// + /// 投入数量 + /// + [ExporterHeader(DisplayName = "投入数量")] + [ImporterHeader(Name = "投入数量")] + public decimal IntputQty { get; set; } + /// + /// 一次合格数量 + /// + [ExporterHeader(DisplayName = "一次合格数量")] + [ImporterHeader(Name = "一次合格数量")] + public decimal FttQty { get; set; } + /// + /// 参数 + /// + [ExporterHeader(DisplayName = "参数")] + [ImporterHeader(Name = "参数")] + public string Parameter { get; set; } + /// + /// 特性 + /// + [ExporterHeader(DisplayName = "特性")] + [ImporterHeader(Name = "特性")] + public string Characteristic { get; set; } + /// + /// CC项 + /// + [ExporterHeader(DisplayName = "CC项")] + [ImporterHeader(Name = "CC项")] + public string Cc { get; set; } + /// + /// SC项 + /// + [ExporterHeader(DisplayName = "SC项")] + [ImporterHeader(Name = "SC项")] + public string Sc { get; set; } + /// + /// SPC + /// + [ExporterHeader(DisplayName = "SPC")] + [ImporterHeader(Name = "SPC")] + public string Spc { get; set; } + /// + /// 控制项标准值 + /// + [ExporterHeader(DisplayName = "控制项标准值")] + [ImporterHeader(Name = "控制项标准值")] + public string StandardValue { get; set; } + /// + /// 控制项上限 + /// + [ExporterHeader(DisplayName = "控制项上限")] + [ImporterHeader(Name = "控制项上限")] + public decimal UpperLimit { get; set; } + /// + /// 控制项下限 + /// + [ExporterHeader(DisplayName = "控制项下限")] + [ImporterHeader(Name = "控制项下限")] + public decimal LowerLimit { get; set; } + /// + /// 控制项实测值 + /// + [ExporterHeader(DisplayName = "控制项实测值")] + [ImporterHeader(Name = "控制项实测值")] + public decimal DecimalValue { get; set; } + /// + /// 控制项值的单位名称-中文 + /// + [ExporterHeader(DisplayName = "控制项值的单位名称-中文")] + [ImporterHeader(Name = "控制项值的单位名称-中文")] + public string? UnitCn { get; set; } + /// + /// 控控制项单位英文 + /// + [ExporterHeader(DisplayName = "控控制项单位英文")] + [ImporterHeader(Name = "控控制项单位英文")] + public string UnitEn { get; set; } + /// + /// 检测结果 + /// + [ExporterHeader(DisplayName = "检测结果")] + [ImporterHeader(Name = "检测结果")] + public string CheckResult { get; set; } + /// + /// 在线检测(inline,offline,both),可选项:inline-在生产线上进行检测.offline-从生产线上拿下来进行检测.both-inline和offline同时存在. + /// + [ExporterHeader(DisplayName = "在线检测")] + [ImporterHeader(Name = "在线检测")] + public string? DetectionMode { get; set; } + /// + /// 班次(白班,晚班,中班) + /// + [ExporterHeader(DisplayName = "班次")] + [ImporterHeader(Name = "班次")] + public string WorkShift { get; set; } + /// + /// 采集时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "采集时间")] + [ImporterHeader(Name = "采集时间")] + public string CollectTime { get; set; } + /// + /// 检测方式(人工,设备) + /// + [ExporterHeader(DisplayName = "检测方式")] + [ImporterHeader(Name = "检测方式")] + public string CheckMode { get; set; } + /// + /// 检测设备编号 + /// + [ExporterHeader(DisplayName = "检测设备编号")] + [ImporterHeader(Name = "检测设备编号")] + public string DeviceCode { get; set; } + /// + /// 检测设备名称 + /// + [ExporterHeader(DisplayName = "检测设备名称")] + [ImporterHeader(Name = "检测设备名称")] + public string DeviceName { get; set; } + } + +} 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 new file mode 100644 index 0000000..359b865 --- /dev/null +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_DATA_LOGS.cs @@ -0,0 +1,281 @@ +using Magicodes.ExporterAndImporter.Core; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TaskManager.Entity +{ + /// + /// 生产过程数据 + /// + public class SUPPLIER_PRO_DATA_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 工厂代码 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [ImporterHeader(Name = "工厂代码")] + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + [ExporterHeader(DisplayName = "工厂名称")] + [ImporterHeader(Name = "工厂名称")] + public string PlantName { get; set; } + /// + /// 车间代码 + /// + [ExporterHeader(DisplayName = "车间代码")] + [ImporterHeader(Name = "车间代码")] + public string WorkshopId { get; set; } + /// + /// 车间名称 + /// + [ExporterHeader(DisplayName = "车间名称")] + [ImporterHeader(Name = "车间名称")] + public string WorkshopName { get; set; } + /// + /// 产线代码 + /// + [ExporterHeader(DisplayName = "产线代码")] + [ImporterHeader(Name = "产线代码")] + public string ProductionLineId { get; set; } + /// + /// 产线名称 + /// + [ExporterHeader(DisplayName = "产线名称")] + [ImporterHeader(Name = "产线名称")] + public string ProductionLineName { get; set; } + /// + /// 工位代码 + /// + [ExporterHeader(DisplayName = "工位代码")] + [ImporterHeader(Name = "工位代码")] + public string StationId { get; set; } + /// + /// 工位名称 + /// + [ExporterHeader(DisplayName = "工位名称")] + [ImporterHeader(Name = "工位名称")] + public string StationName { get; set; } + /// + /// 工位人员编号 + /// + [ExporterHeader(DisplayName = "工位人员编号")] + [ImporterHeader(Name = "工位人员编号")] + public string EmpCode { get; set; } + /// + /// 工位人员姓名 + /// + [ExporterHeader(DisplayName = "工位人员姓名")] + [ImporterHeader(Name = "工位人员姓名")] + public string EmpName { get; set; } + /// + /// 供应商总成零件名称 + /// + [ExporterHeader(DisplayName = "供应商总成零件名称")] + [ImporterHeader(Name = "供应商总成零件名称")] + public string VendorProductName { get; set; } + /// + /// 供应商总成零件号 + /// + [ExporterHeader(DisplayName = "供应商总成零件号")] + [ImporterHeader(Name = "供应商总成零件号")] + public string VendorProductNo { get; set; } + /// + /// 供应商总成批次号 + /// + [ExporterHeader(DisplayName = "供应商总成批次号")] + [ImporterHeader(Name = "供应商总成批次号")] + public string VendorProductBatch { get; set; } + /// + /// 供应商总成SN码 + /// + [ExporterHeader(DisplayName = "供应商总成SN码")] + [ImporterHeader(Name = "供应商总成SN码")] + public string VendorProductSn { get; set; } + /// + /// 子件编码 + /// + [ExporterHeader(DisplayName = "子件编码")] + [ImporterHeader(Name = "子件编码")] + public string SubProdNo { get; set; } + /// + /// 子件名称 + /// + [ExporterHeader(DisplayName = "子件名称")] + [ImporterHeader(Name = "子件名称")] + public string SubProdName { get; set; } + /// + /// 子件批次号 + /// + [ExporterHeader(DisplayName = "子件批次号")] + [ImporterHeader(Name = "子件批次号")] + public string SubBatchNo { get; set; } + /// + /// 子件分包号 + /// + [ExporterHeader(DisplayName = "子件分包号")] + [ImporterHeader(Name = "子件分包号")] + public string? ChildPackageInfo { get; set; } + /// + /// 子件扣料数量 + /// + [ExporterHeader(DisplayName = "子件扣料数量")] + [ImporterHeader(Name = "子件扣料数量")] + public decimal SubProdNum { get; set; } + /// + /// 子件SN码 + /// + [ExporterHeader(DisplayName = "子件SN码")] + [ImporterHeader(Name = "子件SN码")] + public string SubProdSn { get; set; } + /// + /// 子件物料来源 + /// + [ExporterHeader(DisplayName = "子件物料来源")] + [ImporterHeader(Name = "子件物料来源")] + public string ChildSource { get; set; } + /// + /// 分供方代码 + /// + [ExporterHeader(DisplayName = "分供方代码")] + [ImporterHeader(Name = "分供方代码")] + public string? SubSupplierCode { get; set; } + /// + /// 分分供方名称 + /// + [ExporterHeader(DisplayName = "分分供方名称")] + [ImporterHeader(Name = "分分供方名称")] + public string? SubSupplierName { get; set; } + /// + /// 奇瑞零件号 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [ImporterHeader(Name = "奇瑞零件号")] + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + [ExporterHeader(DisplayName = "奇瑞零件名称")] + [ImporterHeader(Name = "奇瑞零件名称")] + public string CheryProductName { get; set; } + /// + /// 奇瑞SN码 + /// + [ExporterHeader(DisplayName = "奇瑞SN码")] + [ImporterHeader(Name = "奇瑞SN码")] + public string CheryProductSn { get; set; } + /// + /// 生产工单号 + /// + [ExporterHeader(DisplayName = "生产工单号")] + [ImporterHeader(Name = "生产工单号")] + public string ManufactureNo { get; set; } + /// + /// 生产批次号 + /// + [ExporterHeader(DisplayName = "生产批次号")] + [ImporterHeader(Name = "生产批次号")] + public string? ProductBatchNo { get; set; } + /// + /// 班次(白班,晚班,中班) + /// + [ExporterHeader(DisplayName = "班次(白班,晚班,中班)")] + [ImporterHeader(Name = "班次(白班,晚班,中班)")] + public string WorkShift { get; set; } + /// + /// 进工位的时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "进工位的时间")] + [ImporterHeader(Name = "进工位的时间")] + public string MaterialInputTime { get; set; } + /// + /// 出工位的时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "出工位的时间")] + [ImporterHeader(Name = "出工位的时间")] + public string MaterialOutputTime { get; set; } + /// + /// 装配设备编号 + /// + [ExporterHeader(DisplayName = "装配设备编号")] + [ImporterHeader(Name = "装配设备编号")] + public string VendorFieldNum { get; set; } + /// + /// 装配设备名称 + /// + [ExporterHeader(DisplayName = "装配设备名称")] + [ImporterHeader(Name = "装配设备名称")] + public string VendorFieldName { get; set; } + /// + /// 设备判定的质量状态,合格与否,NG不合适OK合适 + /// + [ExporterHeader(DisplayName = "设备判定的质量状态")] + [ImporterHeader(Name = "设备判定的质量状态")] + public string? InstrumentQualityStatus { get; set; } + /// + /// 人工判定的质量状态,合格与否,NG不合适OK合适 + /// + [ExporterHeader(DisplayName = "人工判定的质量状态")] + [ImporterHeader(Name = "人工判定的质量状态")] + public string? ManualQualityStatus { get; set; } + /// + /// 最终质量状态,合格与否,NG不合适OK合适 + /// + [ExporterHeader(DisplayName = "最终质量状态")] + [ImporterHeader(Name = "最终质量状态")] + public string FinalQualityStatus { get; set; } + /// + /// 采集时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "采集时间")] + [ImporterHeader(Name = "采集时间")] + public string CollectTime { get; set; } + /// + /// 子件绑定扫码时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "子件绑定扫码时间")] + [ImporterHeader(Name = "子件绑定扫码时间")] + public string DateTime { get; set; } + /// + /// 父件硬件版本号 + /// + [ExporterHeader(DisplayName = "父件硬件版本号")] + [ImporterHeader(Name = "父件硬件版本号")] + public string? ParentHardwareRevision { get; set; } + /// + /// 父件软件版本号 + /// + [ExporterHeader(DisplayName = "父件软件版本号")] + [ImporterHeader(Name = "父件软件版本号")] + public string? ParentSoftwareRevision { get; set; } + /// + /// 子件硬件版本号 + /// + [ExporterHeader(DisplayName = "子件硬件版本号")] + [ImporterHeader(Name = "子件硬件版本号")] + public string? ChildHardwareRevision { get; set; } + /// + /// 子件软件版本号 + /// + [ExporterHeader(DisplayName = "子件软件版本号")] + [ImporterHeader(Name = "子件软件版本号")] + public string? ChildSoftwareRevision { get; set; } + } + +} 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 new file mode 100644 index 0000000..ceb56a8 --- /dev/null +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_FIRST_PASSYIELD_LOGS.cs @@ -0,0 +1,149 @@ +using Magicodes.ExporterAndImporter.Core; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TaskManager.Entity +{ + /// + /// 产品一次合格率 + /// + public class SUPPLIER_PRO_FIRST_PASSYIELD_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 供应商总成零件号 + /// + [ExporterHeader(DisplayName = "供应商总成零件号")] + [ImporterHeader(Name = "供应商总成零件号")] + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + [ExporterHeader(DisplayName = "供应商总成零件名称")] + [ImporterHeader(Name = "供应商总成零件名称")] + public string VendorProductName { get; set; } + /// + /// 工厂代码 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [ImporterHeader(Name = "工厂代码")] + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + [ExporterHeader(DisplayName = "工厂名称")] + [ImporterHeader(Name = "工厂名称")] + public string PlantName { get; set; } + /// + /// 车间代码 + /// + [ExporterHeader(DisplayName = "车间代码")] + [ImporterHeader(Name = "车间代码")] + public string? WorkshopId { get; set; } + /// + /// 车间名称 + /// + [ExporterHeader(DisplayName = "车间名称")] + [ImporterHeader(Name = "车间名称")] + public string? WorkshopName { get; set; } + /// + /// 产线代码 + /// + [ExporterHeader(DisplayName = "产线代码")] + [ImporterHeader(Name = "产线代码")] + public string? ProductionLineId { get; set; } + /// + /// 产线名称 + /// + [ExporterHeader(DisplayName = "产线名称")] + [ImporterHeader(Name = "产线名称")] + public string? ProductionLineName { get; set; } + /// + /// 奇瑞零件号 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [ImporterHeader(Name = "奇瑞零件号")] + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + [ExporterHeader(DisplayName = "奇瑞零件名称")] + [ImporterHeader(Name = "奇瑞零件名称")] + public string CheryProductName { get; set; } + /// + /// 生产工单号 + /// + [ExporterHeader(DisplayName = "生产工单号")] + [ImporterHeader(Name = "生产工单号")] + public string ManufactureNo { get; set; } + /// + /// 生产批次号 + /// + [ExporterHeader(DisplayName = "生产批次号")] + [ImporterHeader(Name = "生产批次号")] + public string ProductBatchNo { get; set; } + /// + /// 批次计划数量:每个批次号对应的计划数量 + /// + [ExporterHeader(DisplayName = "批次计划数量")] + [ImporterHeader(Name = "批次计划数量")] + public decimal WorkOrderNumber { get; set; } + /// + /// 不合格数 + /// + [ExporterHeader(DisplayName = "不合格数")] + [ImporterHeader(Name = "不合格数")] + public decimal DefectiveNumber { get; set; } + /// + /// 合格数:当班次合格数汇总 + /// + [ExporterHeader(DisplayName = "合格数")] + [ImporterHeader(Name = "合格数")] + public decimal AcceptableNumber { get; set; } + /// + /// 一次合格率实际值 + /// + [ExporterHeader(DisplayName = "一次合格率实际值")] + [ImporterHeader(Name = "一次合格率实际值")] + public decimal OncePassRateRealValue { get; set; } + /// + /// 一次合格率目标值 + /// + [ExporterHeader(DisplayName = "一次合格率目标值")] + [ImporterHeader(Name = "一次合格率目标值")] + public decimal OncePassRateTagValue { get; set; } + /// + /// 班次(白班,晚班,中班) + /// + [ExporterHeader(DisplayName = "班次")] + [ImporterHeader(Name = "班次")] + public string WorkShift { get; set; } + /// + /// 生产日期,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "生产日期")] + [ImporterHeader(Name = "生产日期")] + public string StatisticalTime { get; set; } + /// + /// 值统计时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "值统计时间")] + [ImporterHeader(Name = "值统计时间")] + public string DateTime { get; set; } + } + +} 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 new file mode 100644 index 0000000..30a29e6 --- /dev/null +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_MATERIAL_STOCK_LOGS.cs @@ -0,0 +1,197 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Magicodes.ExporterAndImporter.Core; + +namespace TaskManager.Entity +{ + /// + /// 来料检验数据 + /// + public class SUPPLIER_PRO_MATERIAL_STOCK_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 供应商子零件编号 + /// + [ExporterHeader(DisplayName = "供应商子零件编号")] + [ImporterHeader(Name = "供应商子零件编号")] + public string SupplierSubCode { get; set; } + /// + /// 供应商子零件名称 + /// + [ExporterHeader(DisplayName = "供应商子零件名称")] + [ImporterHeader(Name = "供应商子零件名称")] + public string SupplierSubName { get; set; } + /// + /// 分供方代码 + /// + [ExporterHeader(DisplayName = "分供方代码")] + [ImporterHeader(Name = "分供方代码")] + public string SubSupplierCode { get; set; } + /// + /// 分供方名称 + /// + [ExporterHeader(DisplayName = "分供方名称")] + [ImporterHeader(Name = "分供方名称")] + public string SubSupplierName { get; set; } + /// + /// 分供方地址,分供方发货地址:省市区(县),不用于详细地址 + /// + [ExporterHeader(DisplayName = "分供方地址")] + [ImporterHeader(Name = "分供方地址")] + public string SubSupplierAddress { get; set; } + /// + /// 分供方子件编码 + /// + [ExporterHeader(DisplayName = "分供方子件编码")] + [ImporterHeader(Name = "分供方子件编码")] + public string? ComponentCode { get; set; } + /// + /// 分供方子件名称, + /// + [ExporterHeader(DisplayName = "分供方子件名称,")] + [ImporterHeader(Name = "分供方子件名称,")] + public string? ComponentName { get; set; } + /// + /// 子件批次号 + /// + [ExporterHeader(DisplayName = "子件批次号")] + [ImporterHeader(Name = "子件批次号")] + public string SubBatchNo { get; set; } + /// + /// 子件批次数量 + /// + [ExporterHeader(DisplayName = "子件批次数量")] + [ImporterHeader(Name = "子件批次数量")] + public decimal SubBatchNum { get; set; } + /// + /// 子件SN码 + /// + [ExporterHeader(DisplayName = "子件SN码")] + [ImporterHeader(Name = "子件SN码")] + public string? SubBatchSn { get; set; } + /// + /// 检验人员编号 + /// + [ExporterHeader(DisplayName = "检验人员编号")] + [ImporterHeader(Name = "检验人员编号")] + public string EmpCode { get; set; } + /// + /// 检验人员姓名 + /// + [ExporterHeader(DisplayName = "检验人员姓名")] + [ImporterHeader(Name = "检验人员姓名")] + public string EmpName { get; set; } + /// + /// 检测设备编号 + /// + [ExporterHeader(DisplayName = "检测设备编号")] + [ImporterHeader(Name = "检测设备编号")] + public string DeviceCode { get; set; } + /// + /// 检测设备名称 + /// + [ExporterHeader(DisplayName = "检测设备名称")] + [ImporterHeader(Name = "检测设备名称")] + public string DeviceName { get; set; } + /// + /// 参数名称/特性名称 + /// + [ExporterHeader(DisplayName = "参数名称/特性名称")] + [ImporterHeader(Name = "参数名称/特性名称")] + public string FeatureName { get; set; } + /// + /// 参数单位/特性单位 + /// + [ExporterHeader(DisplayName = "参数单位/特性单位")] + [ImporterHeader(Name = "参数单位/特性单位")] + public string FeatureUnit { get; set; } + /// + /// 参数/特性标准值 + /// + [ExporterHeader(DisplayName = "参数/特性标准值")] + [ImporterHeader(Name = "参数/特性标准值")] + public string StandardValue { get; set; } + /// + /// 参数/特性上限值 + /// + [ExporterHeader(DisplayName = "参数/特性上限值")] + [ImporterHeader(Name = "参数/特性上限值")] + public string FeatureUpper { get; set; } + /// + /// 参数/特性下限值 + /// + [ExporterHeader(DisplayName = "参数/特性下限值")] + [ImporterHeader(Name = "参数/特性下限值")] + public string FeatureLower { get; set; } + /// + /// 参数/特性实测值 + /// + [ExporterHeader(DisplayName = "参数/特性实测值")] + [ImporterHeader(Name = "参数/特性实测值")] + public string FeatureValue { get; set; } + /// + /// 来料检验单号 + /// + [ExporterHeader(DisplayName = "来料检验单号")] + [ImporterHeader(Name = "来料检验单号")] + public string CheckNo { get; set; } + /// + /// 批次的最终判定结果,OK合格/NG不合格 + /// + [ExporterHeader(DisplayName = "批次的最终判定结果")] + [ImporterHeader(Name = "批次的最终判定结果")] + public string CheckResult { get; set; } + /// + /// 检验时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "检验时间")] + [ImporterHeader(Name = "检验时间")] + public string CheckTime { get; set; } + /// + /// 控制项要求频率 + /// + [ExporterHeader(DisplayName = "控制项要求频率")] + [ImporterHeader(Name = "控制项要求频率")] + public decimal? SamplingRate { get; set; } + /// + /// 上下限更新时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "上下限更新时间")] + [ImporterHeader(Name = "上下限更新时间")] + public string? LimitUpdateTime { get; set; } + /// + /// 控制项描述 + /// + [ExporterHeader(DisplayName = "控制项描述")] + [ImporterHeader(Name = "控制项描述")] + public string? VendorFieldDesc { get; set; } + /// + /// 控制项代码 + /// + [ExporterHeader(DisplayName = "控制项代码")] + [ImporterHeader(Name = "控制项代码")] + public string VendorFieldCode { get; set; } + /// + /// 库存有效日期,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "库存有效日期")] + [ImporterHeader(Name = "库存有效日期")] + public string DeadLine { get; set; } + } + +} 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 new file mode 100644 index 0000000..85cf457 --- /dev/null +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_SCHEDULING_LOGS.cs @@ -0,0 +1,131 @@ +using Magicodes.ExporterAndImporter.Core; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TaskManager.Entity +{ + /// + /// 排产数据 + /// + public class SUPPLIER_PRO_SCHEDULING_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 工厂代码 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [ImporterHeader(Name = "工厂代码")] + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + [ExporterHeader(DisplayName = "工厂名称")] + [ImporterHeader(Name = "工厂名称")] + public string PlantName { get; set; } + /// + /// 供应商总成零件号 + /// + [ExporterHeader(DisplayName = "供应商总成零件号")] + [ImporterHeader(Name = "供应商总成零件号")] + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + [ExporterHeader(DisplayName = "供应商总成零件名称")] + [ImporterHeader(Name = "供应商总成零件名称")] + public string VendorProductName { get; set; } + /// + /// 奇瑞零件号 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [ImporterHeader(Name = "奇瑞零件号")] + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + [ExporterHeader(DisplayName = "奇瑞零件名称")] + [ImporterHeader(Name = "奇瑞零件名称")] + public string CheryProductName { get; set; } + /// + /// 计划单号 + /// + [ExporterHeader(DisplayName = "计划单号")] + [ImporterHeader(Name = "计划单号")] + public string PlanNo { get; set; } + /// + /// 生产工单号 + /// + [ExporterHeader(DisplayName = "生产工单号")] + [ImporterHeader(Name = "生产工单号")] + public string ManufactureNo { get; set; } + /// + /// 生产批次号 + /// + [ExporterHeader(DisplayName = "生产批次号")] + [ImporterHeader(Name = "生产批次号")] + public string ProductBatchNo { get; set; } + /// + /// 批次计划数量 + /// + [ExporterHeader(DisplayName = "批次计划数量")] + [ImporterHeader(Name = "批次计划数量")] + public decimal ManufactureNum { get; set; } + /// + /// 批次投入数量 + /// + [ExporterHeader(DisplayName = "批次投入数量")] + [ImporterHeader(Name = "批次投入数量")] + public decimal? ManufactureInputNum { get; set; } + /// + /// 批次产出数量 + /// + [ExporterHeader(DisplayName = "批次产出数量")] + [ImporterHeader(Name = "批次产出数量")] + public decimal ManufactureOutputNum { get; set; } + /// + /// 排产状态,0未生产1.生产中,2.已完工,3.已取消,4.已终止 + /// + [ExporterHeader(DisplayName = "排产状态")] + [ImporterHeader(Name = "排产状态")] + public string PlanStatus { get; set; } + /// + /// 计划开始时间,时间格式:yyyy-MM-ddHH:mm:ss + /// + [ExporterHeader(DisplayName = "计划开始时间")] + [ImporterHeader(Name = "计划开始时间")] + public string PlanBeginTime { get; set; } + /// + /// 计划结束时间,时间格式:yyyy-MM-ddHH:mm:ss + /// + [ExporterHeader(DisplayName = "计划结束时间")] + [ImporterHeader(Name = "计划结束时间")] + public string PlanEndTime { get; set; } + /// + /// 实际开始时间,时间格式:yyyy-MM-ddHH:mm:ss + /// + [ExporterHeader(DisplayName = "实际开始时间")] + [ImporterHeader(Name = "实际开始时间")] + public string? ActualBeginTime { get; set; } + /// + /// 实际结束时间,时间格式:yyyy-MM-ddHH:mm:ss + /// + [ExporterHeader(DisplayName = "实际结束时间")] + [ImporterHeader(Name = "实际结束时间")] + public string? ActualEndTime { get; set; } + } + +} 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 new file mode 100644 index 0000000..f7c6631 --- /dev/null +++ b/API/TaskManager.Entity/Entitys/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS.cs @@ -0,0 +1,161 @@ +using Magicodes.ExporterAndImporter.Core; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TaskManager.Entity +{ + /// + /// 工位一次合格率 + /// + public class SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS : BaseEntity + { + /// + /// 供应商代码 + /// + [ExporterHeader(DisplayName = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + [ExporterHeader(DisplayName = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string SupplierName { get; set; } + /// + /// 工厂代码 + /// + [ExporterHeader(DisplayName = "工厂代码")] + [ImporterHeader(Name = "工厂代码")] + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + [ExporterHeader(DisplayName = "工厂名称")] + [ImporterHeader(Name = "工厂名称")] + public string PlantName { get; set; } + /// + /// 车间代码 + /// + [ExporterHeader(DisplayName = "车间代码")] + [ImporterHeader(Name = "车间代码")] + public string WorkshopId { get; set; } + /// + /// 车间名称 + /// + [ExporterHeader(DisplayName = "车间名称")] + [ImporterHeader(Name = "车间名称")] + public string WorkshopName { get; set; } + /// + /// 产线代码 + /// + [ExporterHeader(DisplayName = "产线代码")] + [ImporterHeader(Name = "产线代码")] + public string ProductionLineId { get; set; } + /// + /// 产线名称 + /// + [ExporterHeader(DisplayName = "产线名称")] + [ImporterHeader(Name = "产线名称")] + public string ProductionLineName { get; set; } + /// + /// 工位代码 + /// + [ExporterHeader(DisplayName = "工位代码")] + [ImporterHeader(Name = "工位代码")] + public string StationId { get; set; } + /// + /// 工位名称 + /// + [ExporterHeader(DisplayName = "工位名称")] + [ImporterHeader(Name = "工位名称")] + public string StationName { get; set; } + /// + /// 奇瑞零件号 + /// + [ExporterHeader(DisplayName = "奇瑞零件号")] + [ImporterHeader(Name = "奇瑞零件号")] + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + [ExporterHeader(DisplayName = "奇瑞零件名称")] + [ImporterHeader(Name = "奇瑞零件名称")] + public string CheryProductName { get; set; } + /// + /// 供应商总成零件号 + /// + [ExporterHeader(DisplayName = "供应商总成零件号")] + [ImporterHeader(Name = "供应商总成零件号")] + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + [ExporterHeader(DisplayName = "供应商总成零件名称")] + [ImporterHeader(Name = "供应商总成零件名称")] + public string VendorProductName { get; set; } + /// + /// 生产批次号 + /// + [ExporterHeader(DisplayName = "生产批次号")] + [ImporterHeader(Name = "生产批次号")] + public string ProductBatchNo { get; set; } + /// + /// 生产工单号,(跟排产工单号关联) + /// + [ExporterHeader(DisplayName = "生产工单号")] + [ImporterHeader(Name = "生产工单号")] + public string ManufactureNo { get; set; } + /// + /// 批次计划数量 + /// + [ExporterHeader(DisplayName = "批次计划数量")] + [ImporterHeader(Name = "批次计划数量")] + public decimal WorkOrderNumber { get; set; } + /// + /// 不合格数 + /// + [ExporterHeader(DisplayName = "不合格数")] + [ImporterHeader(Name = "不合格数")] + public decimal DefectiveNumber { get; set; } + /// + /// 合格数 + /// + [ExporterHeader(DisplayName = "合格数")] + [ImporterHeader(Name = "合格数")] + public decimal AcceptableNumber { get; set; } + /// + /// 一次合格率实际值,使用小数表示,如0.9601表示合格率为96.01%整数位最多10位,小数位最多3位 + /// + [ExporterHeader(DisplayName = "一次合格率实际值")] + [ImporterHeader(Name = "一次合格率实际值")] + public decimal OncePassRateRealValue { get; set; } + /// + /// 一次合格率目标值,使用小数表示,如0.96表示合格率目标为96.00%。整数位最多10位,小数位最多3位 + /// + [ExporterHeader(DisplayName = "一次合格率目标值")] + [ImporterHeader(Name = "一次合格率目标值")] + public decimal OncePassRateTagValue { get; set; } + /// + /// 班次,班次如何区分需备注(白班,晚班,中班) + /// + [ExporterHeader(DisplayName = "班次")] + [ImporterHeader(Name = "班次")] + public string WorkShift { get; set; } + /// + /// 生产日期,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "生产日期")] + [ImporterHeader(Name = "生产日期")] + public string StatisticalTime { get; set; } + /// + /// 值统计时间,格式(yyyy-MM-ddHH:mm:ss) + /// + [ExporterHeader(DisplayName = "值统计时间")] + [ImporterHeader(Name = "值统计时间")] + public string DateTime { get; set; } + } + +} diff --git a/API/TaskManager.EntityFramework/JobDbContext.cs b/API/TaskManager.EntityFramework/JobDbContext.cs index ab27fd9..359417f 100644 --- a/API/TaskManager.EntityFramework/JobDbContext.cs +++ b/API/TaskManager.EntityFramework/JobDbContext.cs @@ -126,11 +126,6 @@ namespace TaskManager.EntityFramework public DbSet SUPPLIER_PRO_PROCESS_EQUIPMENT { get; set; } public DbSet SUPPLIER_PRO_PROCESS { get; set; } - //public DbSet SUPPLIER_CON_MMRP { get; set; } - //public DbSet SUPPLIER_CON_DATE { get; set; } - //public DbSet SUPPLIER_CON_PO { get; set; } - //public DbSet SUPPLIER_SINV_DATA { get; set; } - /// /// 整车月度生产计划-2 @@ -211,6 +206,183 @@ namespace TaskManager.EntityFramework /// 日MRP状态监控 /// public DbSet SUPPLIER_MRP_STATE { get; set; } + + + + + /// + /// 来料检验数据 + /// + public DbSet SUPPLIER_PRO_MATERIAL_STOCK_LOGS { get; set; } // 类名与属性名一致 + + /// + /// 排产数据 + /// + public DbSet SUPPLIER_PRO_SCHEDULING_LOGS { get; set; } + + /// + /// 供应商基础信息 + /// + public DbSet SUPPLIER_INFO_LOGS { get; set; } + + /// + /// 人员资质信息 + /// + public DbSet SUPPLIER_EMPLOYEE_LOGS { get; set; } + + /// + /// BOM主数据 + /// + public DbSet SUPPLIER_BOM_LOGS { get; set; } + + /// + /// 过程控制项质量数据 + /// + public DbSet SUPPLIER_PRO_CPS_LOGS { get; set; } + + /// + /// 生产过程数据 + /// + public DbSet SUPPLIER_PRO_DATA_LOGS { get; set; } + + /// + /// 产品一次合格率 + /// + public DbSet SUPPLIER_PRO_FIRST_PASSYIELD_LOGS { get; set; } + + /// + /// 工位一次合格率 + /// + public DbSet SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS { get; set; } + + /// + /// 缺陷业务数据 + /// + public DbSet SUPPLIER_PRO_FLAW_LOGS { get; set; } + + public DbSet SUPPLIER_PRO_ENVIRONMENT_LOGS { get; set; } + public DbSet SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS { get; set; } + public DbSet SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS { get; set; } + public DbSet SUPPLIER_PRO_MATERIAL_DATA_LOGS { get; set; } + public DbSet SUPPLIER_PRO_ATTACHMENT_DATA_LOGS { get; set; } + public DbSet SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS { get; set; } + public DbSet SUPPLIER_PRO_PROCESS_LOGS { get; set; } + + + + + + + + + + + + + + + + + + /// + /// 整车月度生产计划-2 + /// + public DbSet SUPPLIER_PRO_PLANING_LOGS { get; set; } + + /// + /// M+6月物料需求计划 + /// + public DbSet SUPPLIER_MRP_MONTH_LOGS { get; set; } + + /// + /// M+6月物料需求计划风险确认 + /// + public DbSet SUPPLIER_CON_MMRP_LOGS { get; set; } + + /// + /// 日物料需求计划 + /// + public DbSet SUPPLIER_MRP_DATE_LOGS { get; set; } + + /// + /// 日物料需求计划风险确认 + /// + public DbSet SUPPLIER_CON_DATE_LOGS { get; set; } + + /// + /// 计划协议 + /// + public DbSet SUPPLIER_SA_WEEK_LOGS { get; set; } + + /// + /// 采购订单 + /// + public DbSet SUPPLIER_PO_LOGS { get; set; } + + /// + /// 采购订单风险确认 + /// + public DbSet SUPPLIER_CON_PO_LOGS { get; set; } + + /// + /// 过焊装未过总装 + /// + public DbSet SUPPLIER_PRO_HSCHEDUL_LOGS { get; set; } + + /// + /// 过涂装未过总装 + /// + public DbSet SUPPLIER_PRO_TSCHEDUL_LOGS { get; set; } + + /// + /// 排序供货 + /// + public DbSet SUPPLIER_PRO_CSCHEDUL_LOGS { get; set; } + + /// + /// 看板配送单 + /// + public DbSet SUPPLIER_DEL_STATE_LOGS { get; set; } + + /// + /// 退货单 + /// + public DbSet SUPPLIER_RETURN_LOGS { get; set; } + + /// + /// 奇瑞RDC共享库存 + /// + public DbSet SUPPLIER_INV_DATA_LOGS { get; set; } + + /// + /// 供应商共享库存 + /// + public DbSet SUPPLIER_SINV_DATA_LOGS { get; set; } + + /// + /// 日MRP状态监控 + /// + public DbSet SUPPLIER_MRP_STATE_LOGS { get; set; } + + + + + + + + + + + + + + + + + + + + public DbSet TaskLogs { get; set; } @@ -1744,6 +1916,1497 @@ namespace TaskManager.EntityFramework #endregion + + + + #region 来料检验数据 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商子零件编号 + b.Property(e => e.SupplierSubCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商子零件名称 + b.Property(e => e.SupplierSubName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //分供方代码 + b.Property(e => e.SubSupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //分供方名称 + b.Property(e => e.SubSupplierName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //分供方地址,分供方发货地址:省市区(县),不用于详细地址 + b.Property(e => e.SubSupplierAddress).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //分供方子件编码 + b.Property(e => e.ComponentCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false); + //分供方子件名称, + b.Property(e => e.ComponentName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false); + //子件批次号 + b.Property(e => e.SubBatchNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //子件批次数量 + b.Property(e => e.SubBatchNum).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //子件SN码 + b.Property(e => e.SubBatchSn).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false); + //检验人员编号 + b.Property(e => e.EmpCode).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //检验人员姓名 + b.Property(e => e.EmpName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //检测设备编号 + b.Property(e => e.DeviceCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //检测设备名称 + b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //参数名称/特性名称 + b.Property(e => e.FeatureName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //参数单位/特性单位 + b.Property(e => e.FeatureUnit).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //参数/特性标准值 + b.Property(e => e.StandardValue).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //参数/特性上限值 + b.Property(e => e.FeatureUpper).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //参数/特性下限值 + b.Property(e => e.FeatureLower).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //参数/特性实测值 + b.Property(e => e.FeatureValue).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //来料检验单号 + b.Property(e => e.CheckNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //批次的最终判定结果,OK合格/NG不合格 + b.Property(e => e.CheckResult).HasColumnType("CHAR").HasMaxLength(2).IsRequired(); + //检验时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.CheckTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //控制项要求频率 + b.Property(e => e.SamplingRate).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //上下限更新时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.LimitUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false); + //控制项描述 + b.Property(e => e.VendorFieldDesc).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false); + //控制项代码 + b.Property(e => e.VendorFieldCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //库存有效日期,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DeadLine).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region 排产数据 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //计划单号 + b.Property(e => e.PlanNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //生产工单号 + b.Property(e => e.ManufactureNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //生产批次号 + b.Property(e => e.ProductBatchNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //批次计划数量 + b.Property(e => e.ManufactureNum).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //批次投入数量 + b.Property(e => e.ManufactureInputNum).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //批次产出数量 + b.Property(e => e.ManufactureOutputNum).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //排产状态,0未生产1.生产中,2.已完工,3.已取消,4.已终止 + b.Property(e => e.PlanStatus).HasColumnType("CHAR").HasMaxLength(1).IsRequired(); + //计划开始时间,时间格式:yyyy-MM-ddHH:mm:ss + b.Property(e => e.PlanBeginTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //计划结束时间,时间格式:yyyy-MM-ddHH:mm:ss + b.Property(e => e.PlanEndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //实际开始时间,时间格式:yyyy-MM-ddHH:mm:ss + b.Property(e => e.ActualBeginTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false); + //实际结束时间,时间格式:yyyy-MM-ddHH:mm:ss + b.Property(e => e.ActualEndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region 供应商基础信息 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_INFO_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //车间代码 + b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //车间名称 + b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工位代码 + b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位名称 + b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //是否关键工位(Y/N) + b.Property(e => e.KeyStation).HasColumnType("CHAR").HasMaxLength(1).IsRequired(); + //供应商修改时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DataUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //产线顺序 + b.Property(e => e.ProductionLineOrder).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 0).IsRequired(); + //工位顺序 + b.Property(e => e.StationOrder).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 0).IsRequired(); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region 人员资质信息 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_EMPLOYEE_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //车间代码 + b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //车间名称 + b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //工位代码 + b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工位名称 + b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位人员账号 + b.Property(e => e.OperatorId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位人员姓名 + b.Property(e => e.OperatorName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //是否有资质(Y,N) + b.Property(e => e.HaveQuantity).HasColumnType("CHAR").HasMaxLength(1).IsRequired(); + //供应商修改时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DataUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //岗位代码 + b.Property(e => e.PositionId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //岗位名称 + b.Property(e => e.PositionName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //资质等级(Level_4,Level_3,Level_2,Level_1) + b.Property(e => e.QualificationLevel).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //资质获取时间 + b.Property(e => e.CheckInTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //资质失去时间 + b.Property(e => e.CheckOutTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region BOM主数据 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_BOM_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //BOM编码 + b.Property(e => e.BomCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //BOM名称 + b.Property(e => e.BomName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //BOM版本 + b.Property(e => e.BomVersion).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //供应商父件编码 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商父件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //父件类型(成品,半成品) + b.Property(e => e.VendorProductType).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false); + //父件单位 + b.Property(e => e.MaterialUnit).HasColumnType("VARCHAR").HasMaxLength(8).IsRequired(false); + //子件编码 + b.Property(e => e.SubMaterialCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //子件名称 + b.Property(e => e.SubMaterialName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //子件类型(半成品,原材料) + b.Property(e => e.SubMaterialType).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false); + //子件单位 + b.Property(e => e.SubMaterialUnit).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //子件用量 + b.Property(e => e.SubMaterialQuota).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //BOM变更时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DataUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region 过程控制项质量数据 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_CPS_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //供应商总成SN码 + b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成批次号 + b.Property(e => e.VendorProductBatch).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //奇瑞SN码 + b.Property(e => e.CheryProductSn).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //生产批次号 + b.Property(e => e.ProductBatchNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //生产工单号 + b.Property(e => e.ManufactureNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //车间代码 + b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //车间名称 + b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //工位代码 + b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工位名称 + b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位人员编号 + b.Property(e => e.EmpCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位人员姓名 + b.Property(e => e.EmpName).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired(); + //控制项名称 + b.Property(e => e.VendorFieldName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //控制项代码 + b.Property(e => e.VendorFieldCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //控制项点位 + b.Property(e => e.GatherSpot).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false); + //控制项要求频率 + b.Property(e => e.SamplingRate).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //上下限更新时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.LimitUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false); + //控制项描述 + b.Property(e => e.VendorFieldDesc).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(false); + //载体编码 + b.Property(e => e.CarrierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false); + //投入数量 + b.Property(e => e.IntputQty).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //一次合格数量 + b.Property(e => e.FttQty).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //参数,是传Y,否传N + b.Property(e => e.Parameter).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //特性,是传Y,否传N + b.Property(e => e.Characteristic).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //CC项,是传Y,否传N + b.Property(e => e.Cc).HasColumnType("CHAR").HasMaxLength(1).IsRequired(); + //SC项,是传Y,否传N + b.Property(e => e.Sc).HasColumnType("CHAR").HasMaxLength(1).IsRequired(); + //SPC,是传Y,否传N + b.Property(e => e.Spc).HasColumnType("CHAR").HasMaxLength(1).IsRequired(); + //控制项标准值 + b.Property(e => e.StandardValue).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //控制项上限 + b.Property(e => e.UpperLimit).HasColumnType("DECIMAL").HasPrecision(precision: 26, scale: 15).IsRequired(); + //控制项下限 + b.Property(e => e.LowerLimit).HasColumnType("DECIMAL").HasPrecision(precision: 26, scale: 15).IsRequired(); + //控制项实测值 + b.Property(e => e.DecimalValue).HasColumnType("DECIMAL").HasPrecision(precision: 26, scale: 15).IsRequired(); + //控制项值的单位名称-中文 + b.Property(e => e.UnitCn).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(false); + //控控制项单位英文 + b.Property(e => e.UnitEn).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //检测结果 + b.Property(e => e.CheckResult).HasColumnType("VARCHAR").HasMaxLength(8).IsRequired(); + //在线检测(inline,offline,both),可选项:inline-在生产线上进行检测.offline-从生产线上拿下来进行检测.both-inline和offline同时存在. + b.Property(e => e.DetectionMode).HasColumnType("VARCHAR").HasMaxLength(20).IsRequired(false); + //班次(白班,晚班,中班) + b.Property(e => e.WorkShift).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired(); + //采集时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.CollectTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //检测方式(人工,设备) + b.Property(e => e.CheckMode).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired(); + //检测设备编号 + b.Property(e => e.DeviceCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //检测设备名称 + b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region 生产过程数据 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_DATA_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //车间代码 + b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //车间名称 + b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //工位代码 + b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位名称 + b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工位人员编号 + b.Property(e => e.EmpCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位人员姓名 + b.Property(e => e.EmpName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商总成批次号 + b.Property(e => e.VendorProductBatch).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商总成SN码 + b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //子件编码 + b.Property(e => e.SubProdNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //子件名称 + b.Property(e => e.SubProdName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //子件批次号 + b.Property(e => e.SubBatchNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //子件分包号 + b.Property(e => e.ChildPackageInfo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false); + //子件扣料数量 + b.Property(e => e.SubProdNum).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //子件SN码 + b.Property(e => e.SubProdSn).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //子件物料来源 + b.Property(e => e.ChildSource).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //分供方代码 + b.Property(e => e.SubSupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false); + //分分供方名称 + b.Property(e => e.SubSupplierName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(false); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //奇瑞SN码 + b.Property(e => e.CheryProductSn).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //生产工单号 + b.Property(e => e.ManufactureNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //生产批次号 + b.Property(e => e.ProductBatchNo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false); + //班次(白班,晚班,中班) + b.Property(e => e.WorkShift).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired(); + //进工位的时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.MaterialInputTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //出工位的时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.MaterialOutputTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //装配设备编号 + b.Property(e => e.VendorFieldNum).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //装配设备名称 + b.Property(e => e.VendorFieldName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //设备判定的质量状态,合格与否,NG不合适OK合适 + b.Property(e => e.InstrumentQualityStatus).HasColumnType("VARCHAR").HasMaxLength(8).IsRequired(false); + //人工判定的质量状态,合格与否,NG不合适OK合适 + b.Property(e => e.ManualQualityStatus).HasColumnType("VARCHAR").HasMaxLength(8).IsRequired(false); + //最终质量状态,合格与否,NG不合适OK合适 + b.Property(e => e.FinalQualityStatus).HasColumnType("VARCHAR").HasMaxLength(8).IsRequired(); + //采集时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.CollectTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //子件绑定扫码时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(16).IsRequired(); + //父件硬件版本号 + b.Property(e => e.ParentHardwareRevision).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false); + //父件软件版本号 + b.Property(e => e.ParentSoftwareRevision).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false); + //子件硬件版本号 + b.Property(e => e.ChildHardwareRevision).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false); + //子件软件版本号 + b.Property(e => e.ChildSoftwareRevision).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region 产品一次合格率 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //车间代码 + b.Property(e => e.WorkshopId).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false); + //车间名称 + b.Property(e => e.WorkshopName).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //生产工单号 + b.Property(e => e.ManufactureNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //生产批次号 + b.Property(e => e.ProductBatchNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //批次计划数量:每个批次号对应的计划数量 + b.Property(e => e.WorkOrderNumber).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //不合格数 + b.Property(e => e.DefectiveNumber).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //合格数:当班次合格数汇总 + b.Property(e => e.AcceptableNumber).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //一次合格率实际值 + b.Property(e => e.OncePassRateRealValue).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //一次合格率目标值 + b.Property(e => e.OncePassRateTagValue).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //班次(白班,晚班,中班) + b.Property(e => e.WorkShift).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired(); + //生产日期,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //值统计时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + + + + #region 工位一次合格率 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64); + //车间代码 + b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32); + //车间名称 + b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(100); + //工位代码 + b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32); + //工位名称 + b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(64); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(100); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(100); + //生产批次号 + b.Property(e => e.ProductBatchNo).HasColumnType("VARCHAR").HasMaxLength(32); + //生产工单号,(跟排产工单号关联) + b.Property(e => e.ManufactureNo).HasColumnType("VARCHAR").HasMaxLength(32); + //批次计划数量 + b.Property(e => e.WorkOrderNumber).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); + //不合格数 + b.Property(e => e.DefectiveNumber).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); + //合格数 + b.Property(e => e.AcceptableNumber).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); + //一次合格率实际值,使用小数表示,如0.9601表示合格率为96.01%整数位最多10位,小数位最多3位 + b.Property(e => e.OncePassRateRealValue).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); + //一次合格率目标值,使用小数表示,如0.96表示合格率目标为96.00%。整数位最多10位,小数位最多3位 + b.Property(e => e.OncePassRateTagValue).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); + //班次,班次如何区分需备注(白班,晚班,中班) + b.Property(e => e.WorkShift).HasColumnType("VARCHAR").HasMaxLength(10); + //生产日期,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19); + //值统计时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500); + b.HasKey(e => e.UId); + + }); + #endregion + + #region 缺陷业务数据 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_FLAW_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //车间代码 + b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //车间名称 + b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工位代码 + b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位名称 + b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //缺陷代码 + b.Property(e => e.DefectsCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //缺陷名称 + b.Property(e => e.DefectsName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //缺陷分类(外观,尺寸,材料,功能,性能,其他) + b.Property(e => e.ClassOfName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //供应商总成批次号 + b.Property(e => e.VendorProductBatch).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商总成SN码 + b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //奇瑞SN码 + b.Property(e => e.CheryProductSn).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //生产批次号 + b.Property(e => e.ProductBatchNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //生产工单号,或生产批次(工单业务数据) + b.Property(e => e.ManufactureNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //班次(白班,晚班,中班) + b.Property(e => e.WorkShift).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired(); + //缺陷件数 + b.Property(e => e.Numberofdefect).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //缺陷描述 + b.Property(e => e.DefectsDesc).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired(); + //缺陷等级,(1.严重、2.一般、3.轻微) + b.Property(e => e.DefectsLevel).HasColumnType("CHAR").HasMaxLength(1).IsRequired(); + //缺陷录入时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region 环境业务数据 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //车间代码 + b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //车间名称 + b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //环境指标名称,例如:温度、湿度、洁净度等 + b.Property(e => e.EnvIndicatorName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //指标实测值,(最大支持11位整数+5位小数) + b.Property(e => e.NumValue).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //上限值,(最大支持11位整数+5位小数) + b.Property(e => e.UpperLimit).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //下限值,(最大支持11位整数+5位小数) + b.Property(e => e.LowerLimit).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //单位,相应的单位名称,如度数 + b.Property(e => e.ChineseUnit).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //采集仪器代码,环境采集的仪器/工具代码 + b.Property(e => e.EquipmentCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //采集仪器名称,环境采集的仪器/工具名称 + b.Property(e => e.EquipmentName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //数据采集的点位 + b.Property(e => e.DataCollectionPoint).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false); + //数据采集的时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.CollectTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region 设备OEE达成率 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //车间代码 + b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //车间名称 + b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工位代码 + b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位名称 + b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //设备代码 + b.Property(e => e.DeviceId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //设备名称 + b.Property(e => e.DeviceName).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //生产批次号 + b.Property(e => e.ProductBatchNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //生产工单号 + b.Property(e => e.ManufactureNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //OEE实际值 + b.Property(e => e.Rate).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //OEE目标值 + b.Property(e => e.RateTagValue).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //班次(白班,晚班,中班) + b.Property(e => e.WorkShift).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired(); + //生产日期,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //值统计时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region OEE时间明细 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //车间代码 + b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //车间名称 + b.Property(e => e.WorkshopName).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false); + //工位代码 + b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位名称 + b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //设备代码 + b.Property(e => e.DeviceId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //设备名称 + b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(33).IsRequired(); + //记录ID + b.Property(e => e.RecId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //大类(1计划工作,2计划停机,3非计划停机) + b.Property(e => e.Type).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //小类编码 + b.Property(e => e.SubType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //小类描述 + b.Property(e => e.SubTypeName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //开始时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.StartTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //结束时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.EndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region 物料主数据 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商物料号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商物料名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //类型(成品,半成品,原材料) + b.Property(e => e.Type).HasColumnType("DECIMAL").HasPrecision(precision: 1, scale: 0).IsRequired(); + //供应商零件版本号 + b.Property(e => e.VendorHardwareRevision).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //奇瑞硬件版本号 + b.Property(e => e.OemHardwareRevision).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞软件版本号 + b.Property(e => e.OemSoftwareRevision).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false); + //车型 + b.Property(e => e.OemModel).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false); + //项目名称 + b.Property(e => e.OemProjectName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false); + //是否SOP(Y/N) + b.Property(e => e.Launched).HasColumnType("VARCHAR").HasMaxLength(6).IsRequired(false); + //数据同步执行时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false); + //供应商工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false); + //供应商工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false); + //芯片采购类型(AVAP,CS,CMcontro) + b.Property(e => e.ProcurementType).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(false); + //芯片MPN标识码 + b.Property(e => e.MpnCode).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(false); + //芯片MPN标识名称 + b.Property(e => e.MpnName).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(false); + //物料有效期(天) + b.Property(e => e.ValidDays).HasColumnType("CHAR").HasMaxLength(12).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region 附件类数据 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //数据类型(1产前管理;2人员资质;3监控视频) + b.Property(e => e.Type).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //文件名 + b.Property(e => e.FileName).HasColumnType("VARCHAR").HasMaxLength(300).IsRequired(); + //图文地址 + b.Property(e => e.FileUrl).HasColumnType("VARCHAR").HasMaxLength(1000).IsRequired(); + //生成时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位名称 + b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位代码 + b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //设备名称 + b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //设备编码 + b.Property(e => e.DeviceId).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成SN码 + b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(false); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region 工艺装备 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工艺装备类型分类(1模具;2检具;3夹具) + b.Property(e => e.DeviceType).HasColumnType("DECIMAL").HasPrecision(precision: 1, scale: 0).IsRequired(); + //工艺装备编码 + b.Property(e => e.DeviceCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工艺装备名称 + b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //生产厂家 + b.Property(e => e.Manufacturer).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工艺装备型号 + b.Property(e => e.ModelNumber).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工艺装备序列号 + b.Property(e => e.SerialNumber).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工艺装备制造日期,格式(yyyy-MM-dd) + b.Property(e => e.ProductionDate).HasColumnType("CHAR").HasMaxLength(16).IsRequired(); + //主要材质 + b.Property(e => e.Material).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //当前存放地点 + b.Property(e => e.CurrentLocation).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工艺装备状态 + b.Property(e => e.DeviceStatus).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //穴腔数量 + b.Property(e => e.CavityCount).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 0).IsRequired(); + //模具尺寸规格 + b.Property(e => e.MoldSize).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //设计寿命单位 + b.Property(e => e.DesignLifeUnits).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //设计寿命 + b.Property(e => e.DesignLifeValue).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //当前剩余寿命, + b.Property(e => e.CurrentUsageCount).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //模具大修次数 + b.Property(e => e.OverhaulCount).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 0).IsRequired(); + //图纸编号描述 + b.Property(e => e.CoolingChannelLayout).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //检测精度 + b.Property(e => e.DetectionAccuracy).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //最近校准日期,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.CalibrationDate).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //校准到期天数 + b.Property(e => e.CalibrationDueDays).HasColumnType("CHAR").HasMaxLength(12).IsRequired(); + //允许误差范围 + b.Property(e => e.ToleranceRange).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //磨损阈值 + b.Property(e => e.WearThreshold).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //检测范围 + b.Property(e => e.DetectionRange).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //检测单位 + b.Property(e => e.UnitType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + #region 工艺 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_PROCESS_LOGS"); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工艺编码 + b.Property(e => e.TechCode).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工艺名称 + b.Property(e => e.TechName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //有效期,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.ValidPeriod).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //工艺版本 + b.Property(e => e.TechVersion).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //模具编码 + b.Property(e => e.MoldCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //模具名称 + b.Property(e => e.MoldName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //最大加工能力 + b.Property(e => e.MaxProcessingCapacity).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工序编码 + b.Property(e => e.ProcessCode).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工序名称 + b.Property(e => e.ProcessName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工序顺序号 + b.Property(e => e.ProcessOrder).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 0).IsRequired(); + //设备编码 + b.Property(e => e.DeviceCode).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工序节拍 + b.Property(e => e.Rhythm).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //节拍单位 + b.Property(e => e.RhythmUnit).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + }); + #endregion + + + #region M+6月物料需求计划风险确认 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_CON_MMRP_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false); + //需求发布版次,取自M+6月物料需求计划接口中的需求发布版次,针对与这个版次的需求进行风险反馈 + b.Property(e => e.ReleaseEdition).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false); + //零件号,奇瑞零件号 + b.Property(e => e.MaterialCode).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false); + //工厂代码, + b.Property(e => e.PlantId).HasColumnType("NVARCHAR").HasMaxLength(64).IsRequired(false); + //反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常) + b.Property(e => e.FeedbackResults).HasColumnType("NVARCHAR").HasMaxLength(10).IsRequired(false); + //风险类型,当反馈结果=1时,此字段必输1.生产节拍不足2.人员不足3.原材料不足4.设备异常5.其他 + b.Property(e => e.VentureType).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false); + //具体风险,当反馈结果=1时,此字段必输描述具体风险 + b.Property(e => e.VentureSpecific).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false); + //应对措施,当反馈结果=1时,此字段必输描述具体应对措施 + b.Property(e => e.Measures).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false); + //起始月份-格式:yyyy-MM + b.Property(e => e.StartMonth).HasColumnType("NVARCHAR").HasMaxLength(7).IsRequired(false); + //满足数量1 + b.Property(e => e.QuantityMeet1).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量2 + b.Property(e => e.QuantityMeet2).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量3 + b.Property(e => e.QuantityMeet3).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量4 + b.Property(e => e.QuantityMeet4).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量5 + b.Property(e => e.QuantityMeet5).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量6 + b.Property(e => e.QuantityMeet6).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量7 + b.Property(e => e.QuantityMeet7).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量8 + b.Property(e => e.QuantityMeet8).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量9 + b.Property(e => e.QuantityMeet9).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量10 + b.Property(e => e.QuantityMeet10).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量11 + b.Property(e => e.QuantityMeet11).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量12 + b.Property(e => e.QuantityMeet12).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + + #region 日物料需求计划风险确认 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_CON_DATE_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false); + //需求发布版次,取自日物料需求计划接口中的需求发布版次,针对与这个版次的需求进行风险反馈 + b.Property(e => e.ReleaseEdition).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false); + //零件号,奇瑞零件号 + b.Property(e => e.MaterialCode).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("NVARCHAR").HasMaxLength(64).IsRequired(false); + //反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常) + b.Property(e => e.FeedbackResults).HasColumnType("NVARCHAR").HasMaxLength(10).IsRequired(false); + //风险类型,当反馈结果=1时,此字段必输1.生产节拍不足2.人员不足3.原材料不足4.设备异常5.其他 + b.Property(e => e.VentureType).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false); + //具体风险,当反馈结果=1时,此字段必输描述具体风险 + b.Property(e => e.VentureSpecific).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false); + //应对措施,当反馈结果=1时,此字段必输描述具体应对措施 + b.Property(e => e.Measures).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false); + //起始日期,格式:yyyy-MM-dd + + //满足数量1,数量锁定,7日内满足数量必须等于需求数量 + b.Property(e => e.QuantityMeet1).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量2, + b.Property(e => e.QuantityMeet2).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量3, + b.Property(e => e.QuantityMeet3).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量4, + b.Property(e => e.QuantityMeet4).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量5, + b.Property(e => e.QuantityMeet5).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量6, + b.Property(e => e.QuantityMeet6).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量7, + b.Property(e => e.QuantityMeet7).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量8,根据物料需求计划接口发布的需求天数,针对企业自身产能情况反馈可满足数量注:目前发送数据为滚动12天的数据,13至31天的字段为预留,未来可能会增加至31天 + b.Property(e => e.QuantityMeet8).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量9, + b.Property(e => e.QuantityMeet9).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量10, + b.Property(e => e.QuantityMeet10).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量11, + b.Property(e => e.QuantityMeet11).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量12, + b.Property(e => e.QuantityMeet12).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量13, + b.Property(e => e.QuantityMeet13).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量14, + b.Property(e => e.QuantityMeet14).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量15, + b.Property(e => e.QuantityMeet15).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量16, + b.Property(e => e.QuantityMeet16).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量17, + b.Property(e => e.QuantityMeet17).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量18, + b.Property(e => e.QuantityMeet18).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量19, + b.Property(e => e.QuantityMeet19).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量20, + b.Property(e => e.QuantityMeet20).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量21, + b.Property(e => e.QuantityMeet21).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量22, + b.Property(e => e.QuantityMeet22).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量23, + b.Property(e => e.QuantityMeet23).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量24, + b.Property(e => e.QuantityMeet24).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量25, + b.Property(e => e.QuantityMeet25).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量26, + b.Property(e => e.QuantityMeet26).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量27, + b.Property(e => e.QuantityMeet27).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量28, + b.Property(e => e.QuantityMeet28).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量29, + b.Property(e => e.QuantityMeet29).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量30, + b.Property(e => e.QuantityMeet30).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //满足数量31, + b.Property(e => e.QuantityMeet31).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + + #region 采购订单风险确认 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_CON_PO_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false); + //采购订单号 + b.Property(e => e.PurchaseOrder).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false); + //行项目号 + b.Property(e => e.SerialNumber).HasColumnType("NVARCHAR").HasMaxLength(10).IsRequired(false); + //满足数量 + b.Property(e => e.QuantityMeet).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); + //反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常) + b.Property(e => e.FeedbackResults).HasColumnType("NVARCHAR").HasMaxLength(10).IsRequired(false); + //风险类型,当反馈结果=1时,此字段必输1.生产节拍不足2.人员不足3.原材料不足4.设备异常5.其他 + b.Property(e => e.VentureType).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false); + //具体风险,当反馈结果=1时,此字段必输描述具体风险 + b.Property(e => e.VentureSpecific).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false); + //应对措施,当反馈结果=1时,此字段必输描述具体应对措施 + b.Property(e => e.Measures).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + + #region 供应商共享库存 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_SINV_DATA_LOGS"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //零件号 + b.Property(e => e.MaterialCode).HasColumnType("VARCHAR").HasMaxLength(50).IsRequired(); + //零件名称 + b.Property(e => e.MaterialDescription).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //物料类型(成品,半成品,原材料) + b.Property(e => e.MaterialType).HasColumnType("VARCHAR").HasMaxLength(20).IsRequired(); + //当前库存数量 + b.Property(e => e.QuantityCurrent).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //原材料在途数量 + b.Property(e => e.QuantityPlan).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //库存状态(生产件,呆滞件,备件,KD件) + b.Property(e => e.InventoryStatus).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //安全库存 + b.Property(e => e.SafetyStock).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(); + //生产/采购周期:成品即半成品为生产周期(天),原材料为采购周期(天) + b.Property(e => e.ProductionCycle).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired(); + //库存更新时间-格式:yyyy-MM-ddHH:mm:ss + b.Property(e => e.DataUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //批次 + b.Property(e => e.SupplierBatch).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false); + //有效期截止日期 非必填 + b.Property(e => e.SupplieryxqDate).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + + }); + #endregion + + + #region Data + //供应商基础信息 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_INFO_DT"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //车间代码 + b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //车间名称 + b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工位代码 + b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位名称 + b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //是否关键工位(Y/N) + b.Property(e => e.KeyStation).HasColumnType("CHAR").HasMaxLength(1).IsRequired(); + //供应商修改时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DataUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //产线顺序 + b.Property(e => e.ProductionLineOrder).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 0).IsRequired(); + //工位顺序 + b.Property(e => e.StationOrder).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 0).IsRequired(); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + b.Ignore(e => e.TaskId); + }); + + //人员资质信息 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_EMPLOYEE_DT"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //车间代码 + b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //车间名称 + b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); + //工位代码 + b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工位名称 + b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位人员账号 + b.Property(e => e.OperatorId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位人员姓名 + b.Property(e => e.OperatorName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //是否有资质(Y,N) + b.Property(e => e.HaveQuantity).HasColumnType("CHAR").HasMaxLength(1).IsRequired(); + //供应商修改时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DataUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //岗位代码 + b.Property(e => e.PositionId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //岗位名称 + b.Property(e => e.PositionName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //资质等级(Level_4,Level_3,Level_2,Level_1) + b.Property(e => e.QualificationLevel).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //资质获取时间 + b.Property(e => e.CheckInTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //资质失去时间 + b.Property(e => e.CheckOutTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + b.Ignore(e => e.TaskId); + }); + + //附件类数据 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //数据类型(1产前管理;2人员资质;3监控视频) + b.Property(e => e.Type).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //文件名 + b.Property(e => e.FileName).HasColumnType("VARCHAR").HasMaxLength(300).IsRequired(); + //图文地址 + b.Property(e => e.FileUrl).HasColumnType("VARCHAR").HasMaxLength(1000).IsRequired(); + //生成时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位名称 + b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工位代码 + b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //设备名称 + b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //设备编码 + b.Property(e => e.DeviceId).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成SN码 + b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(false); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + b.Ignore(e => e.TaskId); + }); + + //工艺装备 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工艺装备类型分类(1模具;2检具;3夹具) + b.Property(e => e.DeviceType).HasColumnType("DECIMAL").HasPrecision(precision: 1, scale: 0).IsRequired(); + //工艺装备编码 + b.Property(e => e.DeviceCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //工艺装备名称 + b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //生产厂家 + b.Property(e => e.Manufacturer).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工艺装备型号 + b.Property(e => e.ModelNumber).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工艺装备序列号 + b.Property(e => e.SerialNumber).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工艺装备制造日期,格式(yyyy-MM-dd) + b.Property(e => e.ProductionDate).HasColumnType("CHAR").HasMaxLength(16).IsRequired(); + //主要材质 + b.Property(e => e.Material).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //当前存放地点 + b.Property(e => e.CurrentLocation).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //工艺装备状态 + b.Property(e => e.DeviceStatus).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //穴腔数量 + b.Property(e => e.CavityCount).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 0).IsRequired(); + //模具尺寸规格 + b.Property(e => e.MoldSize).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //设计寿命单位 + b.Property(e => e.DesignLifeUnits).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //设计寿命 + b.Property(e => e.DesignLifeValue).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //当前剩余寿命, + b.Property(e => e.CurrentUsageCount).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); + //模具大修次数 + b.Property(e => e.OverhaulCount).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 0).IsRequired(); + //图纸编号描述 + b.Property(e => e.CoolingChannelLayout).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //检测精度 + b.Property(e => e.DetectionAccuracy).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); + //最近校准日期,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.CalibrationDate).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); + //校准到期天数 + b.Property(e => e.CalibrationDueDays).HasColumnType("CHAR").HasMaxLength(12).IsRequired(); + //允许误差范围 + b.Property(e => e.ToleranceRange).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //磨损阈值 + b.Property(e => e.WearThreshold).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //检测范围 + b.Property(e => e.DetectionRange).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + //检测单位 + b.Property(e => e.UnitType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); + b.Property(e => e.ReadState).HasDefaultValue(false); + b.Property(e => e.WriteState).HasDefaultValue(false); + b.HasKey(e => e.UId); + b.Ignore(e => e.TaskId); + }); + + #endregion + + + + } } } diff --git a/API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.Designer.cs new file mode 100644 index 0000000..961b9e4 --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.Designer.cs @@ -0,0 +1,9997 @@ +// +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("20250616060016_z202506160003")] + partial class z202506160003 + { + /// + 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("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("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + 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("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("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + 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(450)"); + + 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("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("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + 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(450)"); + + 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("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("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + 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("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("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + 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("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("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + 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("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("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", (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("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("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("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("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", (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("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("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("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("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", (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("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("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("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("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", (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("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("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("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("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", (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("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("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("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("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", (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("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("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("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("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", (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("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("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", (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("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("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("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("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("MaterialUnit") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + 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", (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("MaterialUnit") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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("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("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", (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("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("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("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("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", (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("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("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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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("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("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", (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("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("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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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("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("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", (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("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("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("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("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", (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("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("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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + 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", (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("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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("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("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", (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("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("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("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("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", (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("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("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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + 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.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + 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("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(30) + .HasColumnType("nvarchar(30)"); + + 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.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/20250616060016_z202506160003.cs b/API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.cs new file mode 100644 index 0000000..bdd261a --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.cs @@ -0,0 +1,1850 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace TaskManager.EntityFramework.Migrations +{ + /// + public partial class z202506160003 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "SalseDepartment", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(50)", + maxLength: 50, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Omterior", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(50)", + maxLength: 50, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.CreateTable( + name: "SUPPLIER_BOM_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + BomCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + BomName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + BomVersion = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialUnit = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true), + SubMaterialCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubMaterialName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + SubMaterialType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SubMaterialUnit = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubMaterialQuota = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_BOM_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_CON_DATE_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + ReleaseEdition = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + MaterialCode = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + PlantId = table.Column(type: "NVARCHAR(64)", maxLength: 64, nullable: true), + FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), + VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + StartDate = table.Column(type: "datetime2", nullable: true), + QuantityMeet1 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet2 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet3 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet4 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet5 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet6 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet7 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet8 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet9 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet10 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet11 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet12 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet13 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet14 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet15 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet16 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet17 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet18 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet19 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet20 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet21 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet22 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet23 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet24 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet25 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet26 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet27 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet28 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet29 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet30 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet31 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_CON_DATE_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_CON_MMRP_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Id = table.Column(type: "nvarchar(450)", nullable: true), + SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + ReleaseEdition = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + MaterialCode = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + PlantId = table.Column(type: "NVARCHAR(64)", maxLength: 64, nullable: true), + FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), + VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + StartMonth = table.Column(type: "NVARCHAR(7)", maxLength: 7, nullable: true), + QuantityMeet1 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet2 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet3 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet4 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet5 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet6 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet7 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet8 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet9 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet10 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet11 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet12 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_CON_MMRP_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_CON_PO_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + PurchaseOrder = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), + QuantityMeet = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), + VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_CON_PO_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_DEL_STATE_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + DeliveryNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialSrate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ReceivingCrossings = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), + DataCreateTime = table.Column(type: "datetime2", nullable: true), + SupplierReceiveTime = table.Column(type: "datetime2", nullable: true), + RoadShippedTime = table.Column(type: "datetime2", nullable: true), + RoadReceiveTime = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_DEL_STATE_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_EMPLOYEE_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + OperatorId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + OperatorName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + HaveQuantity = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + PositionId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PositionName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + QualificationLevel = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + CheckInTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + CheckOutTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_EMPLOYEE_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_INFO_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + KeyStation = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + ProductionLineOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + StationOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_INFO_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_INV_DATA_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + QuantityCurrent = table.Column(type: "decimal(18,2)", nullable: true), + StockState = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DataUpdateTime = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "nvarchar(max)", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_INV_DATA_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_MRP_DATE_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ReleaseEdition = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + StartDate = table.Column(type: "datetime2", nullable: true), + QuantityDemand1 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand2 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand3 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand4 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand5 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand6 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand7 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand8 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand9 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand10 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand11 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand12 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand13 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand14 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand15 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand16 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand17 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand18 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand19 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand20 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand21 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand22 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand23 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand24 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand25 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand26 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand27 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand28 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand29 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand30 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand31 = table.Column(type: "decimal(18,2)", nullable: false), + IsUpdate = table.Column(type: "nvarchar(max)", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_MRP_DATE_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_MRP_MONTH_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ReleaseEdition = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + StartMonth = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + QuantityDemand1 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand2 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand3 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand4 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand5 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand6 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand7 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand8 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand9 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand10 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand11 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand12 = table.Column(type: "decimal(18,2)", nullable: true), + IsUpdate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_MRP_MONTH_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_MRP_STATE_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DemandSrate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DemandType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + SummarySign = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DateRequired = table.Column(type: "datetime2", nullable: true), + QuantityDemand = table.Column(type: "decimal(18,2)", nullable: true), + ConfirmTime = table.Column(type: "datetime2", nullable: true), + CreatQuantity = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), + QuantityReceive = table.Column(type: "decimal(18,2)", nullable: true), + QuantityInTransit = table.Column(type: "decimal(18,2)", nullable: true), + OnTimePercentage = table.Column(type: "decimal(18,2)", nullable: true), + SummaryCreatQuantity = table.Column(type: "decimal(18,2)", nullable: true), + SummaryQuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), + SummaryQuantityReceive = table.Column(type: "decimal(18,2)", nullable: true), + SummaryQuantityInTransit = table.Column(type: "decimal(18,2)", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_MRP_STATE_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PO_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + PurchaseOrder = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + VoucherDate = table.Column(type: "datetime2", nullable: true), + Purchaser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Supplier = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + QuantityDemand = table.Column(type: "decimal(18,2)", nullable: true), + MaterialUnit = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DeliveryDate = table.Column(type: "datetime2", nullable: true), + DeliveryPlace = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), + Note = table.Column(type: "nvarchar(max)", nullable: true), + ItemType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + TradeTerms = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Country = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Batch = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PO_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + FileName = table.Column(type: "VARCHAR(300)", maxLength: 300, nullable: false), + FileUrl = table.Column(type: "VARCHAR(1000)", maxLength: 1000, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductSn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_CPS_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductBatch = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheryProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EmpCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EmpName = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + VendorFieldName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorFieldCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + GatherSpot = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + SamplingRate = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + LimitUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + VendorFieldDesc = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), + CarrierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + IntputQty = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + FttQty = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + Parameter = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + Characteristic = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + Cc = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + Sc = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + Spc = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + StandardValue = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + UpperLimit = table.Column(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false), + LowerLimit = table.Column(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false), + DecimalValue = table.Column(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false), + UnitCn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), + UnitEn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheckResult = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: false), + DetectionMode = table.Column(type: "VARCHAR(20)", maxLength: 20, nullable: true), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + CollectTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + CheckMode = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_CPS_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_CSCHEDUL_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Vin = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + SortDate = table.Column(type: "datetime2", nullable: true), + SortTime = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), + OnLineDate = table.Column(type: "datetime2", nullable: true), + OnLineTime = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), + ModelCategory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + AssemblyMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MotorMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Plant = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_CSCHEDUL_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_DATA_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + EmpCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EmpName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductBatch = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SubProdNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubProdName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + SubBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ChildPackageInfo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + SubProdNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + SubProdSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ChildSource = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SubSupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + SubSupplierName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheryProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + MaterialInputTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + MaterialOutputTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + VendorFieldNum = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorFieldName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + InstrumentQualityStatus = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true), + ManualQualityStatus = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true), + FinalQualityStatus = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: false), + CollectTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + DateTime = table.Column(type: "CHAR(16)", maxLength: 16, nullable: false), + ParentHardwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + ParentSoftwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + ChildHardwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + ChildSoftwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_DATA_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_ENVIRONMENT_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + EnvIndicatorName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + NumValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + UpperLimit = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + LowerLimit = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + ChineseUnit = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EquipmentCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EquipmentName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + DataCollectionPoint = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + CollectTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + WorkshopName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkOrderNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + DefectiveNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + AcceptableNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateRealValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_FLAW_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DefectsCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DefectsName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + ClassOfName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductBatch = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheryProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + Numberofdefect = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + DefectsDesc = table.Column(type: "VARCHAR(255)", maxLength: 255, nullable: false), + DefectsLevel = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_FLAW_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_HSCHEDUL_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Vin = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ProductionType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + OnLineTime = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_HSCHEDUL_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_MATERIAL_DATA_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false), + VendorHardwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + OemHardwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + OemSoftwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + OemModel = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + OemProjectName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + Launched = table.Column(type: "VARCHAR(6)", maxLength: 6, nullable: true), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + ProcurementType = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), + MpnCode = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), + MpnName = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), + ValidDays = table.Column(type: "CHAR(12)", maxLength: 12, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SupplierSubCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierSubName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + SubSupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubSupplierName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + SubSupplierAddress = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + ComponentCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + ComponentName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + SubBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubBatchNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + SubBatchSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + EmpCode = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + EmpName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + FeatureName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + FeatureUnit = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StandardValue = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + FeatureUpper = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + FeatureLower = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + FeatureValue = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheckNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheckResult = table.Column(type: "CHAR(2)", maxLength: 2, nullable: false), + CheckTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + SamplingRate = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + LimitUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + VendorFieldDesc = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + VendorFieldCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeadLine = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_STOCK_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + Rate = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + RateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(33)", maxLength: 33, nullable: false), + RecId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + Type = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubType = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubTypeName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StartTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + EndTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PLANING_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ReleaseEdition = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Assembly = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Pattern = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + StartMonth = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Quantity1 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity2 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity3 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity4 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity5 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity6 = table.Column(type: "decimal(18,2)", nullable: true), + Plant = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + Omterior = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SalseDepartment = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_PLANING_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceType = table.Column(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false), + DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Manufacturer = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ModelNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SerialNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionDate = table.Column(type: "CHAR(16)", maxLength: 16, nullable: false), + Material = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CurrentLocation = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceStatus = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + CavityCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + MoldSize = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DesignLifeUnits = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + DesignLifeValue = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + CurrentUsageCount = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + OverhaulCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + CoolingChannelLayout = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DetectionAccuracy = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CalibrationDate = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + CalibrationDueDays = table.Column(type: "CHAR(12)", maxLength: 12, nullable: false), + ToleranceRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WearThreshold = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DetectionRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + UnitType = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PROCESS_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + CheryProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SupplierCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + TechCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + TechName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ValidPeriod = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + TechVersion = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + MoldCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + MoldName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + MaxProcessingCapacity = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProcessCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProcessName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProcessOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + DeviceCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Rhythm = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + RhythmUnit = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_SCHEDULING_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + PlanNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + ManufactureInputNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + ManufactureOutputNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + PlanStatus = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + PlanBeginTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + PlanEndTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + ActualBeginTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + ActualEndTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_SCHEDULING_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkOrderNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + DefectiveNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + AcceptableNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateRealValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_TSCHEDUL_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Vin = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + OnLineTime = table.Column(type: "datetime2", nullable: true), + FinalWorkshop = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + FinalOnLineTime = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "nvarchar(5)", maxLength: 5, nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_TSCHEDUL_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_RETURN_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ReturnNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialSrate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PickUpLocation = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DemandPickupTime = table.Column(type: "datetime2", nullable: true), + PickUpCrossings = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Feedback = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Plant = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: false), + ReturnType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + LotNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Judge = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ReturnReason = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_RETURN_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_SA_WEEK_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ScheduleAgreement = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + PurchasingGroup = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + QuantityDemand = table.Column(type: "decimal(18,2)", nullable: true), + DateReceived = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_SA_WEEK_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_SINV_DATA_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + MaterialCode = table.Column(type: "VARCHAR(50)", maxLength: 50, nullable: false), + MaterialDescription = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + MaterialType = table.Column(type: "VARCHAR(20)", maxLength: 20, nullable: false), + QuantityCurrent = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + QuantityPlan = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + InventoryStatus = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SafetyStock = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + ProductionCycle = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + SupplierBatch = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + SupplieryxqDate = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_SINV_DATA_LOGS", x => x.UId); + }); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_DATE_LOGS_Id", + table: "SUPPLIER_CON_DATE_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + 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_MMRP_LOGS_Id", + table: "SUPPLIER_CON_MMRP_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + 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_PO_LOGS_Id", + table: "SUPPLIER_CON_PO_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + 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_DEL_STATE_LOGS_Id", + table: "SUPPLIER_DEL_STATE_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_DEL_STATE_LOGS_ReadState", + table: "SUPPLIER_DEL_STATE_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_DEL_STATE_LOGS_TaskId", + table: "SUPPLIER_DEL_STATE_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_DEL_STATE_LOGS_WriteState", + table: "SUPPLIER_DEL_STATE_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_LOGS_Id", + table: "SUPPLIER_INV_DATA_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_LOGS_ReadState", + table: "SUPPLIER_INV_DATA_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_LOGS_TaskId", + table: "SUPPLIER_INV_DATA_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_LOGS_WriteState", + table: "SUPPLIER_INV_DATA_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_LOGS_Id", + table: "SUPPLIER_MRP_DATE_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_LOGS_ReadState", + table: "SUPPLIER_MRP_DATE_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_LOGS_TaskId", + table: "SUPPLIER_MRP_DATE_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_LOGS_WriteState", + table: "SUPPLIER_MRP_DATE_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_LOGS_Id", + table: "SUPPLIER_MRP_MONTH_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_LOGS_ReadState", + table: "SUPPLIER_MRP_MONTH_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_LOGS_TaskId", + table: "SUPPLIER_MRP_MONTH_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_LOGS_WriteState", + table: "SUPPLIER_MRP_MONTH_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_LOGS_Id", + table: "SUPPLIER_MRP_STATE_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_LOGS_ReadState", + table: "SUPPLIER_MRP_STATE_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_LOGS_TaskId", + table: "SUPPLIER_MRP_STATE_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_LOGS_WriteState", + table: "SUPPLIER_MRP_STATE_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_LOGS_Id", + table: "SUPPLIER_PO_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_LOGS_ReadState", + table: "SUPPLIER_PO_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_LOGS_TaskId", + table: "SUPPLIER_PO_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_LOGS_WriteState", + table: "SUPPLIER_PO_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_Id", + table: "SUPPLIER_PRO_CSCHEDUL_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_ReadState", + table: "SUPPLIER_PRO_CSCHEDUL_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_TaskId", + table: "SUPPLIER_PRO_CSCHEDUL_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_WriteState", + table: "SUPPLIER_PRO_CSCHEDUL_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_Id", + table: "SUPPLIER_PRO_HSCHEDUL_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_ReadState", + table: "SUPPLIER_PRO_HSCHEDUL_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_TaskId", + table: "SUPPLIER_PRO_HSCHEDUL_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_WriteState", + table: "SUPPLIER_PRO_HSCHEDUL_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_LOGS_Id", + table: "SUPPLIER_PRO_PLANING_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_LOGS_ReadState", + table: "SUPPLIER_PRO_PLANING_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_LOGS_TaskId", + table: "SUPPLIER_PRO_PLANING_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_LOGS_WriteState", + table: "SUPPLIER_PRO_PLANING_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_Id", + table: "SUPPLIER_PRO_TSCHEDUL_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_ReadState", + table: "SUPPLIER_PRO_TSCHEDUL_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_TaskId", + table: "SUPPLIER_PRO_TSCHEDUL_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_WriteState", + table: "SUPPLIER_PRO_TSCHEDUL_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_LOGS_Id", + table: "SUPPLIER_RETURN_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_LOGS_ReadState", + table: "SUPPLIER_RETURN_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_LOGS_TaskId", + table: "SUPPLIER_RETURN_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_LOGS_WriteState", + table: "SUPPLIER_RETURN_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_LOGS_Id", + table: "SUPPLIER_SA_WEEK_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_LOGS_ReadState", + table: "SUPPLIER_SA_WEEK_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_LOGS_TaskId", + table: "SUPPLIER_SA_WEEK_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_LOGS_WriteState", + table: "SUPPLIER_SA_WEEK_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SINV_DATA_LOGS_Id", + table: "SUPPLIER_SINV_DATA_LOGS", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SINV_DATA_LOGS_ReadState", + table: "SUPPLIER_SINV_DATA_LOGS", + column: "ReadState"); + + 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"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "SUPPLIER_BOM_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_CON_DATE_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_CON_MMRP_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_CON_PO_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_DEL_STATE_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_EMPLOYEE_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_INFO_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_INV_DATA_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_MRP_DATE_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_MRP_MONTH_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_MRP_STATE_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PO_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_CPS_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_CSCHEDUL_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_DATA_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_ENVIRONMENT_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_FLAW_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_HSCHEDUL_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_MATERIAL_DATA_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PLANING_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PROCESS_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_SCHEDULING_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_TSCHEDUL_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_RETURN_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_SA_WEEK_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_SINV_DATA_LOGS"); + + migrationBuilder.AlterColumn( + name: "SalseDepartment", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Omterior", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50, + oldNullable: true); + } + } +} diff --git a/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs b/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs index 6b48739..5c6fa48 100644 --- a/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs +++ b/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs @@ -228,7 +228,7 @@ namespace TaskManager.EntityFramework.Migrations b.ToTable("SUPPLIER_CON_DATE", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -244,7 +244,8 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("NVARCHAR"); b.Property("Id") - .HasColumnType("nvarchar(450)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("MaterialCode") .HasMaxLength(50) @@ -274,14 +275,90 @@ namespace TaskManager.EntityFramework.Migrations .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"); @@ -319,9 +396,8 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); + b.Property("StartDate") + .HasColumnType("datetime2"); b.Property("SupplierCode") .HasMaxLength(32) @@ -355,10 +431,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasIndex("WriteState"); - b.ToTable("SUPPLIER_CON_MMRP", (string)null); + b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -374,18 +450,65 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("NVARCHAR"); b.Property("Id") + .HasColumnType("nvarchar(450)"); + + b.Property("MaterialCode") .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasColumnType("NVARCHAR"); b.Property("Measures") .HasMaxLength(255) .HasColumnType("NVARCHAR"); - b.Property("PurchaseOrder") - .HasMaxLength(50) + b.Property("PlantId") + .HasMaxLength(64) .HasColumnType("NVARCHAR"); - b.Property("QuantityMeet") + 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"); @@ -394,12 +517,16 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit") .HasDefaultValue(false); + b.Property("ReleaseEdition") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + b.Property("Remark") .HasMaxLength(500) .HasColumnType("NVarchar"); - b.Property("SerialNumber") - .HasMaxLength(10) + b.Property("StartMonth") + .HasMaxLength(7) .HasColumnType("NVARCHAR"); b.Property("SupplierCode") @@ -434,10 +561,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasIndex("WriteState"); - b.ToTable("SUPPLIER_CON_PO", (string)null); + b.ToTable("SUPPLIER_CON_MMRP", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -445,103 +572,265 @@ namespace TaskManager.EntityFramework.Migrations 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("FeedbackResults") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); - b.Property("DeviceId") + b.Property("Id") + .HasColumnType("nvarchar(450)"); + + b.Property("MaterialCode") .HasMaxLength(50) - .HasColumnType("nvarchar"); + .HasColumnType("NVARCHAR"); - b.Property("DeviceName") - .IsRequired() + b.Property("Measures") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("PlantId") .HasMaxLength(64) - .HasColumnType("VARCHAR"); + .HasColumnType("NVARCHAR"); - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet1") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet10") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet11") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + 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("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("StartMonth") + .HasMaxLength(7) + .HasColumnType("NVARCHAR"); b.Property("SupplierCode") - .IsRequired() .HasMaxLength(32) - .HasColumnType("VARCHAR"); + .HasColumnType("NVARCHAR"); - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + 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("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + 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("SerialNumber") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("SupplierCode") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); - b.Property("VendorProductNo") - .IsRequired() + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + 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("SerialNumber") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("SupplierCode") .HasMaxLength(32) - .HasColumnType("VARCHAR"); + .HasColumnType("NVARCHAR"); - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); b.Property("WriteState") .ValueGeneratedOnAdd() @@ -550,10 +839,20 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -637,6 +936,9 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(64) .HasColumnType("VARCHAR"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("Type") .IsRequired() .HasMaxLength(16) @@ -663,10 +965,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); + b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -674,54 +976,41 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("ChineseUnit") + b.Property("CheryProductName") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("CollectTime") + b.Property("CheryProductNo") .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") + b.Property("DateTime") .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("DeviceId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); - b.Property("EquipmentName") + b.Property("DeviceName") .IsRequired() - .HasMaxLength(100) + .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") + b.Property("FileName") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(300) .HasColumnType("VARCHAR"); - b.Property("PlantName") + b.Property("FileUrl") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(1000) .HasColumnType("VARCHAR"); b.Property("ProductionLineId") @@ -731,7 +1020,7 @@ namespace TaskManager.EntityFramework.Migrations b.Property("ProductionLineName") .IsRequired() - .HasMaxLength(100) + .HasMaxLength(64) .HasColumnType("VARCHAR"); b.Property("ReadState") @@ -743,7 +1032,17 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); - b.Property("SupplierCode") + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); @@ -753,21 +1052,23 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("Type") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("WorkshopId") + b.Property("VendorProductNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) + b.Property("VendorProductSn") + .HasMaxLength(100) .HasColumnType("VARCHAR"); b.Property("WriteState") @@ -777,10 +1078,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); + b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -789,21 +1090,11 @@ namespace TaskManager.EntityFramework.Migrations 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") + b.Property("CheryProductNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); @@ -811,48 +1102,28 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") + b.Property("DateTime") .IsRequired() - .HasMaxLength(1) + .HasMaxLength(19) .HasColumnType("CHAR"); - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); + b.Property("DeviceId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); - b.Property("PlantId") + b.Property("DeviceName") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("PlantName") + b.Property("FileName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(300) .HasColumnType("VARCHAR"); - b.Property("ProductBatchNo") + b.Property("FileUrl") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(1000) .HasColumnType("VARCHAR"); b.Property("ProductionLineId") @@ -881,14 +1152,9 @@ namespace TaskManager.EntityFramework.Migrations b.Property("StationName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) @@ -902,14 +1168,14 @@ namespace TaskManager.EntityFramework.Migrations b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("VendorProductBatch") + b.Property("Type") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(16) .HasColumnType("VARCHAR"); b.Property("VendorProductName") .IsRequired() - .HasMaxLength(100) + .HasMaxLength(64) .HasColumnType("VARCHAR"); b.Property("VendorProductNo") @@ -918,23 +1184,7 @@ namespace TaskManager.EntityFramework.Migrations .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) + .HasMaxLength(100) .HasColumnType("VARCHAR"); b.Property("WriteState") @@ -944,10 +1194,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); + b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -955,62 +1205,64 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") + b.Property("ChineseUnit") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") + b.Property("CollectTime") + .IsRequired() .HasMaxLength(19) .HasColumnType("CHAR"); - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); + b.Property("CreationTime") + .HasColumnType("datetime2"); - b.Property("MpnCode") - .HasMaxLength(16) + b.Property("DataCollectionPoint") + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("MpnName") - .HasMaxLength(16) + b.Property("EnvIndicatorName") + .IsRequired() + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("OemHardwareRevision") + b.Property("EquipmentCode") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("OemModel") - .HasMaxLength(32) + b.Property("EquipmentName") + .IsRequired() + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("LowerLimit") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + 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("ProcurementType") - .HasMaxLength(16) + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) .HasColumnType("VARCHAR"); b.Property("ReadState") @@ -1035,29 +1287,20 @@ namespace TaskManager.EntityFramework.Migrations b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("Type") - .HasPrecision(1) + b.Property("UpperLimit") + .HasPrecision(16, 5) .HasColumnType("DECIMAL"); - b.Property("ValidDays") + b.Property("WorkshopId") .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("VendorProductName") + b.Property("WorkshopName") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - b.Property("WriteState") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -1065,10 +1308,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); + b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1076,38 +1319,46 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CheryProductName") + b.Property("ChineseUnit") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("CheryProductNo") + b.Property("CollectTime") .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + .HasMaxLength(19) + .HasColumnType("CHAR"); b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DateTime") + b.Property("DataCollectionPoint") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("EnvIndicatorName") .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("DeviceId") + b.Property("EquipmentCode") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") + b.Property("EquipmentName") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(100) .HasColumnType("VARCHAR"); + b.Property("LowerLimit") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("NumValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + b.Property("PlantId") .IsRequired() .HasMaxLength(32) @@ -1118,11 +1369,6 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - b.Property("ProductionLineId") .IsRequired() .HasMaxLength(32) @@ -1130,17 +1376,9 @@ namespace TaskManager.EntityFramework.Migrations b.Property("ProductionLineName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - b.Property("ReadState") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -1150,22 +1388,7 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); - 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") + b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); @@ -1178,20 +1401,9 @@ namespace TaskManager.EntityFramework.Migrations 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("UpperLimit") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); b.Property("WorkshopId") .IsRequired() @@ -1210,10 +1422,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); + b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1221,30 +1433,69 @@ namespace TaskManager.EntityFramework.Migrations 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("DeviceId") + b.Property("DefectsCode") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("DeviceName") + b.Property("DefectsDesc") .IsRequired() - .HasMaxLength(33) + .HasMaxLength(255) .HasColumnType("VARCHAR"); - b.Property("EndTime") + b.Property("DefectsLevel") .IsRequired() - .HasMaxLength(19) + .HasMaxLength(1) .HasColumnType("CHAR"); + b.Property("DefectsName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + 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"); @@ -1255,64 +1506,70 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("VARCHAR"); b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("ReadState") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false); - b.Property("RecId") + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StationId") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("StartTime") + b.Property("StatisticalTime") .IsRequired() .HasMaxLength(19) .HasColumnType("CHAR"); - b.Property("StationId") + b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("StationName") + b.Property("SupplierName") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("SubType") + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductBatch") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("SubTypeName") + b.Property("VendorProductName") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("SupplierCode") + b.Property("VendorProductNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("SupplierName") + b.Property("VendorProductSn") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") + b.Property("WorkShift") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(10) .HasColumnType("VARCHAR"); b.Property("WorkshopId") @@ -1321,8 +1578,9 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("VARCHAR"); b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("WriteState") .ValueGeneratedOnAdd() @@ -1331,10 +1589,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); + b.ToTable("SUPPLIER_PRO_FLAW", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1344,50 +1602,80 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CheryProductName") .IsRequired() - .HasMaxLength(64) + .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("DeviceCode") + b.Property("DefectsCode") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("MaxProcessingCapacity") + b.Property("DefectsDesc") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(255) .HasColumnType("VARCHAR"); - b.Property("MoldCode") + b.Property("DefectsLevel") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("DefectsName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("MoldName") + b.Property("Numberofdefect") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("ProcessCode") + b.Property("PlantName") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("ProcessName") + b.Property("ProductBatchNo") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("ReadState") .ValueGeneratedOnAdd() @@ -1398,18 +1686,24 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("RhythmUnit") + b.Property("StationName") .IsRequired() - .HasMaxLength(16) + .HasMaxLength(64) .HasColumnType("VARCHAR"); + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + b.Property("SupplierCode") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("SupplierName") @@ -1420,32 +1714,37 @@ namespace TaskManager.EntityFramework.Migrations b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("TechCode") + b.Property("VendorProductBatch") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("TechName") + b.Property("VendorProductName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("TechVersion") + b.Property("VendorProductNo") .IsRequired() - .HasMaxLength(16) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("ValidPeriod") + b.Property("VendorProductSn") .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("VendorProductName") + b.Property("WorkShift") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(10) .HasColumnType("VARCHAR"); - b.Property("VendorProductNo") + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); @@ -1457,10 +1756,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); + b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1468,115 +1767,63 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CalibrationDate") + b.Property("CheryProductName") .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - 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") + 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("DateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) + b.Property("Launched") + .HasMaxLength(6) .HasColumnType("VARCHAR"); - b.Property("DesignLifeUnits") - .IsRequired() + b.Property("MpnCode") .HasMaxLength(16) .HasColumnType("VARCHAR"); - b.Property("DesignLifeValue") - .IsRequired() + b.Property("MpnName") .HasMaxLength(16) .HasColumnType("VARCHAR"); - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") + b.Property("OemHardwareRevision") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("DeviceCode") - .IsRequired() + b.Property("OemModel") .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() + b.Property("OemProjectName") .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("Material") - .IsRequired() + b.Property("OemSoftwareRevision") .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) + b.Property("PlantId") + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("MoldSize") - .IsRequired() + b.Property("PlantName") .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() + b.Property("ProcurementType") .HasMaxLength(16) - .HasColumnType("CHAR"); + .HasColumnType("VARCHAR"); b.Property("ReadState") .ValueGeneratedOnAdd() @@ -1587,11 +1834,6 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) @@ -1605,13 +1847,16 @@ namespace TaskManager.EntityFramework.Migrations b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("Type") + .HasPrecision(1) + .HasColumnType("DECIMAL"); - b.Property("UnitType") + b.Property("ValidDays") .IsRequired() + .HasMaxLength(12) + .HasColumnType("CHAR"); + + b.Property("VendorHardwareRevision") .HasMaxLength(32) .HasColumnType("VARCHAR"); @@ -1625,11 +1870,6 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - b.Property("WriteState") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -1637,10 +1877,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); + b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1648,20 +1888,6 @@ namespace TaskManager.EntityFramework.Migrations 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) @@ -1672,91 +1898,53 @@ namespace TaskManager.EntityFramework.Migrations .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("DateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) + b.Property("Launched") + .HasMaxLength(6) .HasColumnType("VARCHAR"); - b.Property("DesignLifeUnits") - .IsRequired() + b.Property("MpnCode") .HasMaxLength(16) .HasColumnType("VARCHAR"); - b.Property("DesignLifeValue") - .IsRequired() + b.Property("MpnName") .HasMaxLength(16) .HasColumnType("VARCHAR"); - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") + b.Property("OemHardwareRevision") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("DeviceCode") - .IsRequired() + b.Property("OemModel") .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() + b.Property("OemProjectName") .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("Material") - .IsRequired() + b.Property("OemSoftwareRevision") .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) + b.Property("PlantId") + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("MoldSize") - .IsRequired() + b.Property("PlantName") .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() + b.Property("ProcurementType") .HasMaxLength(16) - .HasColumnType("CHAR"); + .HasColumnType("VARCHAR"); b.Property("ReadState") .ValueGeneratedOnAdd() @@ -1767,11 +1955,6 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) @@ -1782,13 +1965,19 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); - b.Property("UnitType") + b.Property("Type") + .HasPrecision(1) + .HasColumnType("DECIMAL"); + + b.Property("ValidDays") .IsRequired() + .HasMaxLength(12) + .HasColumnType("CHAR"); + + b.Property("VendorHardwareRevision") .HasMaxLength(32) .HasColumnType("VARCHAR"); @@ -1802,11 +1991,6 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - b.Property("WriteState") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -1814,10 +1998,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); + b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1825,24 +2009,9 @@ namespace TaskManager.EntityFramework.Migrations 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) + .HasMaxLength(64) .HasColumnType("VARCHAR"); b.Property("CheryProductNo") @@ -1853,194 +2022,131 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DataUpdateTime") + b.Property("DateTime") .IsRequired() .HasMaxLength(19) .HasColumnType("CHAR"); - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SubMaterialCode") + b.Property("DeviceId") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") + b.Property("DeviceName") .HasMaxLength(50) .HasColumnType("nvarchar"); - b.Property("SubMaterialUnit") + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("SupplierCode") + b.Property("PlantId") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("SupplierName") + b.Property("PlantName") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") + b.Property("ProductBatchNo") .IsRequired() - .HasMaxLength(100) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("VendorProductNo") + b.Property("ProductionLineId") .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", (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("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("Rate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); + b.Property("RateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); 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("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("WriteState") - .HasColumnType("bit"); + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.HasKey("UId"); + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.HasIndex("ReadState"); + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.HasIndex("TaskId"); + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.HasIndex("WriteState"); + b.HasKey("UId"); - b.ToTable("SUPPLIER_DEL_STATE"); + b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2048,42 +2154,41 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CheckInTime") + b.Property("CheryProductName") .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("CheckOutTime") + b.Property("CheryProductNo") .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DataUpdateTime") + b.Property("DateTime") .IsRequired() .HasMaxLength(19) .HasColumnType("CHAR"); - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") + b.Property("DeviceId") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("OperatorName") + b.Property("DeviceName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("PlantId") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("PlantName") @@ -2091,30 +2196,28 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") + b.Property("ProductBatchNo") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("ProductionLineId") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("ProductionLineName") .IsRequired() - .HasMaxLength(100) + .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); + b.Property("Rate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("RateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); b.Property("ReadState") .ValueGeneratedOnAdd() @@ -2127,14 +2230,19 @@ namespace TaskManager.EntityFramework.Migrations b.Property("StationId") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("StationName") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(64) .HasColumnType("VARCHAR"); + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) @@ -2148,12 +2256,27 @@ namespace TaskManager.EntityFramework.Migrations b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") + 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"); @@ -2165,10 +2288,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); + b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2176,86 +2299,65 @@ namespace TaskManager.EntityFramework.Migrations 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") + b.Property("DeviceId") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("PlantId") + b.Property("DeviceName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(33) .HasColumnType("VARCHAR"); - b.Property("PlantName") + b.Property("EndTime") .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("PositionId") + b.Property("PlantId") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("PositionName") + b.Property("PlantName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("ProductionLineId") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); + .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("StartTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + b.Property("StationId") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("StationName") @@ -2263,6 +2365,16 @@ namespace TaskManager.EntityFramework.Migrations .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) @@ -2270,19 +2382,26 @@ namespace TaskManager.EntityFramework.Migrations b.Property("SupplierName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("WorkshopId") + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("WorkshopName") + b.Property("WorkshopId") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); + b.Property("WorkshopName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + b.Property("WriteState") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -2290,10 +2409,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); + b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2301,29 +2420,24 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CheryProductName") + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeviceId") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("CheryProductNo") + b.Property("DeviceName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(33) .HasColumnType("VARCHAR"); - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") + b.Property("EndTime") .IsRequired() .HasMaxLength(19) .HasColumnType("CHAR"); - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - b.Property("PlantId") .IsRequired() .HasMaxLength(32) @@ -2331,7 +2445,7 @@ namespace TaskManager.EntityFramework.Migrations b.Property("PlantName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("ProductionLineId") @@ -2340,23 +2454,28 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("VARCHAR"); b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); + .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("StartTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + b.Property("StationId") .IsRequired() .HasMaxLength(32) @@ -2364,12 +2483,18 @@ namespace TaskManager.EntityFramework.Migrations b.Property("StationName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); + b.Property("SubType") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubTypeName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); b.Property("SupplierCode") .IsRequired() @@ -2378,20 +2503,15 @@ namespace TaskManager.EntityFramework.Migrations b.Property("SupplierName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") + b.Property("Type") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("WorkshopId") @@ -2400,9 +2520,8 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("VARCHAR"); b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + .HasMaxLength(50) + .HasColumnType("nvarchar"); b.Property("WriteState") .ValueGeneratedOnAdd() @@ -2411,10 +2530,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_INFO", (string)null); + b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2435,37 +2554,37 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DataUpdateTime") + b.Property("DeviceCode") .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("KeyStation") + b.Property("MaxProcessingCapacity") .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("PlantId") + b.Property("MoldCode") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("PlantName") + b.Property("MoldName") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("ProductionLineId") + b.Property("ProcessCode") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("ProductionLineName") + b.Property("ProcessName") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("ProductionLineOrder") + b.Property("ProcessOrder") .HasPrecision(16) .HasColumnType("DECIMAL"); @@ -2478,23 +2597,18 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("Rhythm") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("StationName") + b.Property("RhythmUnit") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(16) .HasColumnType("VARCHAR"); - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - b.Property("SupplierCode") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(64) .HasColumnType("VARCHAR"); b.Property("SupplierName") @@ -2502,37 +2616,50 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("VendorProductName") + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TechCode") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("VendorProductNo") + b.Property("TechName") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("WorkshopId") + b.Property("TechVersion") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(16) .HasColumnType("VARCHAR"); - b.Property("WorkshopName") + b.Property("ValidPeriod") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("VendorProductName") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("WriteState") - .ValueGeneratedOnAdd() + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false); b.HasKey("UId"); - b.ToTable("SUPPLIER_INFO_DT", (string)null); + b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2540,92 +2667,179 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("CalibrationDate") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("CreateTime") - .HasColumnType("datetime2"); + 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("DataUpdateTime") - .HasColumnType("datetime2"); + b.Property("CurrentLocation") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("CurrentUsageCount") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); - b.Property("IsDelete") + b.Property("DesignLifeUnits") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(16) + .HasColumnType("VARCHAR"); - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("DesignLifeValue") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + b.Property("DetectionAccuracy") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("DetectionRange") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); + 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") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.Property("Remark") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); + b.Property("SerialNumber") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); 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("ToleranceRange") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("WriteState") - .HasColumnType("bit"); + b.Property("UnitType") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.HasKey("UId"); + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.HasIndex("ReadState"); + b.Property("WearThreshold") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.HasIndex("TaskId"); + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.HasIndex("WriteState"); + b.HasKey("UId"); - b.ToTable("SUPPLIER_INV_DATA"); + b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2633,184 +2847,3690 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("CalibrationDate") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("CreateTime") - .HasColumnType("datetime2"); + b.Property("CalibrationDueDays") + .IsRequired() + .HasMaxLength(12) + .HasColumnType("CHAR"); - b.Property("CreationTime") - .HasColumnType("datetime2"); + b.Property("CavityCount") + .HasPrecision(16) + .HasColumnType("DECIMAL"); - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("IsDelete") - .HasColumnType("int"); + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); + b.Property("CoolingChannelLayout") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("CreationTime") + .HasColumnType("datetime2"); - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + b.Property("CurrentLocation") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("PlantId") + 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("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("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("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("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("MaterialUnit") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + 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", (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("MaterialUnit") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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("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("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", (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("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("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("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("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", (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("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("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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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("PlantName") - .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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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("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("QuantityDemand1") - .HasColumnType("decimal(18,2)"); + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); + b.Property("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); + b.Property("Sc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); + b.Property("Spc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); + b.Property("StandardValue") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); + 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", (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("IntputQty") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("LowerLimit") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); + b.Property("Parameter") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); + b.Property("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); + b.Property("Sc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); + b.Property("Spc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); + b.Property("StandardValue") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); - b.Property("ReadState") - .HasColumnType("bit"); + b.Property("UnitCn") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("UnitEn") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); + b.Property("UpperLimit") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); + b.Property("VendorFieldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("StartDate") - .HasColumnType("datetime2"); + b.Property("VendorFieldDesc") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("VendorFieldName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("VendorProductBatch") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("UpdateTime") - .HasColumnType("datetime2"); + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("Version") - .HasColumnType("int"); + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("WriteState") - .HasColumnType("bit"); + b.Property("VendorProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.HasKey("UId"); + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.HasIndex("ReadState"); + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.HasIndex("TaskId"); + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.HasIndex("WriteState"); + b.HasKey("UId"); - b.ToTable("SUPPLIER_MRP_DATE"); + b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2818,14 +6538,16 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("AssemblyMaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("CreateByUser") .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); + .HasColumnType("nvarchar(50)"); - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); + b.Property("CreateTime") + .HasColumnType("datetime2"); b.Property("CreationTime") .HasColumnType("datetime2"); @@ -2835,90 +6557,50 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("nvarchar(50)"); b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); + .HasColumnType("int"); b.Property("MaterialCode") .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); + .HasColumnType("nvarchar(50)"); b.Property("MaterialDescription") .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); + .HasColumnType("nvarchar(100)"); - b.Property("PlantId") + b.Property("ModelCategory") .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); + .HasColumnType("nvarchar(50)"); - b.Property("PlantName") + b.Property("Models") .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"); + .HasColumnType("nvarchar(50)"); - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); + b.Property("MotorMaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); + b.Property("OnLineDate") + .HasColumnType("datetime2"); - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); + b.Property("OnLineTime") + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); + b.Property("Plant") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("ReadState") .HasColumnType("bit"); - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - b.Property("Remark") .HasColumnType("nvarchar(max)"); @@ -2926,26 +6608,29 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(30) .HasColumnType("nvarchar(30)"); - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); + 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)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); + .HasColumnType("nvarchar(50)"); - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); + b.Property("UpdateTime") + .HasColumnType("datetime2"); b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); + .HasColumnType("int"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("WriteState") .HasColumnType("bit"); @@ -2962,10 +6647,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasIndex("WriteState"); - b.ToTable("SUPPLIER_MRP_MONTH"); + b.ToTable("SUPPLIER_PRO_CSCHEDUL"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2973,11 +6658,9 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); + b.Property("AssemblyMaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("CreateByUser") .HasMaxLength(50) @@ -2989,17 +6672,6 @@ namespace TaskManager.EntityFramework.Migrations 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)"); @@ -3015,28 +6687,36 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(100) .HasColumnType("nvarchar(100)"); - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); + b.Property("ModelCategory") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("PlantId") + b.Property("Models") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("PlantName") + b.Property("MotorMaterialCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); + b.Property("OnLineDate") + .HasColumnType("datetime2"); - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); + b.Property("OnLineTime") + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); + b.Property("Plant") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("ReadState") .HasColumnType("bit"); @@ -3048,21 +6728,12 @@ namespace TaskManager.EntityFramework.Migrations .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("SortDate") + .HasColumnType("datetime2"); - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("SortTime") + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); @@ -3077,6 +6748,10 @@ namespace TaskManager.EntityFramework.Migrations b.Property("Version") .HasColumnType("int"); + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("WriteState") .HasColumnType("bit"); @@ -3092,109 +6767,252 @@ namespace TaskManager.EntityFramework.Migrations b.HasIndex("WriteState"); - b.ToTable("SUPPLIER_MRP_STATE"); + b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") + 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("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("bigint"); + .HasColumnType("bit") + .HasDefaultValue(false); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("CreateTime") - .HasColumnType("datetime2"); + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("CreationTime") - .HasColumnType("datetime2"); + b.Property("SubBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); + b.Property("SubProdName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("SubProdNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); + b.Property("SubProdNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("IsDelete") - .HasColumnType("int"); + b.Property("SubProdSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("SubSupplierCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("MaterialDescription") + b.Property("SubSupplierName") .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasColumnType("VARCHAR"); - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); + b.Property("VendorFieldName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("ReadState") - .HasColumnType("bit"); + b.Property("VendorFieldNum") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("ReckonDate") - .HasColumnType("datetime2"); + b.Property("VendorProductBatch") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("VendorProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); - b.Property("UpdateTime") - .HasColumnType("datetime2"); + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Version") - .HasColumnType("int"); + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("WriteState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.HasKey("UId"); - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); + b.ToTable("SUPPLIER_PRO_DATA", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -3202,136 +7020,241 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("CheryProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("CreateTime") - .HasColumnType("datetime2"); + 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("DeliveryDate") - .HasColumnType("datetime2"); + b.Property("DateTime") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("CHAR"); - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + 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("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("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("ParentSoftwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("IsDelete") - .HasColumnType("int"); + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("ProductBatchNo") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("MaterialDescription") + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasColumnType("VARCHAR"); - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.Property("Note") - .HasColumnType("nvarchar(max)"); + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("SubBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("SubProdName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); + b.Property("SubProdNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); + b.Property("SubProdNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("ReadState") - .HasColumnType("bit"); + b.Property("SubProdSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); + b.Property("SubSupplierCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); + b.Property("SubSupplierName") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("VendorFieldName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + b.Property("VendorFieldNum") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("UpdateTime") - .HasColumnType("datetime2"); + b.Property("VendorProductBatch") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Version") - .HasColumnType("int"); + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("VoucherDate") - .HasColumnType("datetime2"); + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("WriteState") - .HasColumnType("bit"); + b.Property("VendorProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.HasKey("UId"); + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.HasIndex("ReadState"); + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.HasIndex("TaskId"); + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.HasIndex("WriteState"); + b.HasKey("UId"); - b.ToTable("SUPPLIER_PO"); + b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -3339,114 +7262,182 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CarrierCode") + 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("Cc") + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") .IsRequired() - .HasMaxLength(1) + .HasMaxLength(19) .HasColumnType("CHAR"); - b.Property("Characteristic") + b.Property("DefectiveNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("CheckMode") + b.Property("OncePassRateRealValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("OncePassRateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") .IsRequired() - .HasMaxLength(10) + .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("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("CheckResult") + b.Property("SupplierName") .IsRequired() - .HasMaxLength(8) + .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("CheryProductName") + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") .IsRequired() .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("CheryProductNo") + b.Property("VendorProductNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("CheryProductSn") + b.Property("WorkOrderNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("WorkShift") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(10) .HasColumnType("VARCHAR"); - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + b.Property("WorkshopId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); - b.Property("CreationTime") - .HasColumnType("datetime2"); + b.Property("WorkshopName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); + b.HasKey("UId"); - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); + }); - b.Property("DeviceName") + 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("EmpCode") + b.Property("CheryProductNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("EmpName") + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("FttQty") + b.Property("DefectiveNumber") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); - b.Property("GatherSpot") + b.Property("ManufactureNo") + .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("IntputQty") + b.Property("OncePassRateRealValue") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) + b.Property("OncePassRateTagValue") + .HasPrecision(16, 5) .HasColumnType("DECIMAL"); - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - b.Property("PlantId") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("PlantName") @@ -3460,14 +7451,12 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("VARCHAR"); b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + .HasMaxLength(50) + .HasColumnType("nvarchar"); b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + .HasMaxLength(50) + .HasColumnType("nvarchar"); b.Property("ReadState") .ValueGeneratedOnAdd() @@ -3478,35 +7467,11 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") + b.Property("StatisticalTime") .IsRequired() - .HasMaxLength(1) + .HasMaxLength(19) .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) @@ -3520,79 +7485,141 @@ namespace TaskManager.EntityFramework.Migrations b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("UnitCn") + b.Property("VendorProductName") + .IsRequired() .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("UnitEn") + b.Property("VendorProductNo") .IsRequired() - .HasMaxLength(100) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("UpperLimit") - .HasPrecision(26, 15) + b.Property("WorkOrderNumber") + .HasPrecision(16, 5) .HasColumnType("DECIMAL"); - b.Property("VendorFieldCode") + b.Property("WorkShift") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(10) .HasColumnType("VARCHAR"); - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + b.Property("WorkshopId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("WorkshopName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.Property("VendorProductName") - .IsRequired() + 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("VARCHAR"); + .HasColumnType("nvarchar(100)"); - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("OnLineTime") + .HasColumnType("datetime2"); - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); + 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("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("UpdateTime") + .HasColumnType("datetime2"); - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); + .HasColumnType("bit"); b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_CPS", (string)null); + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_PRO_HSCHEDUL"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -3600,15 +7627,11 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - b.Property("CreateByUser") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("CreateTime") + b.Property("CreateTime") .HasColumnType("datetime2"); b.Property("CreationTime") @@ -3629,34 +7652,22 @@ namespace TaskManager.EntityFramework.Migrations .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") + b.Property("OnLineTime") .HasColumnType("datetime2"); - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") + b.Property("ProductionLineId") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("ProductionLineId") + b.Property("ProductionLineName") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("ProductionLineName") + b.Property("ProductionType") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -3670,13 +7681,6 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(30) .HasColumnType("nvarchar(30)"); - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - b.Property("TaskId") .HasColumnType("uniqueidentifier"); @@ -3684,7 +7688,7 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("UpdateTime") + b.Property("UpdateTime") .HasColumnType("datetime2"); b.Property("Version") @@ -3709,10 +7713,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasIndex("WriteState"); - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); + b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -3720,121 +7724,262 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CheryProductName") + 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("CheryProductNo") + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("CheryProductSn") + b.Property("FeatureLower") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("ChildHardwareRevision") - .HasMaxLength(64) + b.Property("FeatureName") + .IsRequired() + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("ChildPackageInfo") - .HasMaxLength(64) + b.Property("FeatureUnit") + .IsRequired() + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("ChildSoftwareRevision") + b.Property("FeatureUpper") + .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("ChildSource") + b.Property("FeatureValue") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("CollectTime") - .IsRequired() + b.Property("LimitUpdateTime") .HasMaxLength(19) .HasColumnType("CHAR"); - b.Property("CreationTime") - .HasColumnType("datetime2"); + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.Property("DateTime") + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("StandardValue") .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("EmpCode") + b.Property("SubBatchNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("EmpName") + 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("FinalQualityStatus") + b.Property("SupplierSubCode") .IsRequired() - .HasMaxLength(8) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) + b.Property("SupplierSubName") + .IsRequired() + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("ManualQualityStatus") - .HasMaxLength(8) + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorFieldCode") + .IsRequired() + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("ManufactureNo") + b.Property("VendorFieldDesc") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + 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("MaterialInputTime") + b.Property("CheckResult") .IsRequired() - .HasMaxLength(19) + .HasMaxLength(2) .HasColumnType("CHAR"); - b.Property("MaterialOutputTime") + b.Property("CheckTime") .IsRequired() .HasMaxLength(19) .HasColumnType("CHAR"); - b.Property("ParentHardwareRevision") - .HasMaxLength(64) + 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("ParentSoftwareRevision") - .HasMaxLength(64) + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(16) .HasColumnType("VARCHAR"); - b.Property("PlantId") + b.Property("EmpName") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("PlantName") + b.Property("FeatureLower") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("ProductBatchNo") - .HasMaxLength(64) + b.Property("FeatureName") + .IsRequired() + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("ProductionLineId") + b.Property("FeatureUnit") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("ProductionLineName") + b.Property("FeatureUpper") .IsRequired() - .HasMaxLength(100) + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FeatureValue") + .IsRequired() + .HasMaxLength(64) .HasColumnType("VARCHAR"); + b.Property("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + b.Property("ReadState") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -3844,45 +7989,40 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); - 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("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("SubProdName") + b.Property("StandardValue") .IsRequired() .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("SubProdNo") + b.Property("SubBatchNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("SubProdNum") + b.Property("SubBatchNum") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); - b.Property("SubProdSn") - .IsRequired() + 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"); @@ -3896,51 +8036,25 @@ namespace TaskManager.EntityFramework.Migrations .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") + b.Property("SupplierSubCode") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("VendorProductName") + b.Property("SupplierSubName") .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("TaskId") + .HasColumnType("uniqueidentifier"); - b.Property("WorkshopId") + b.Property("VendorFieldCode") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("WorkshopName") - .IsRequired() + b.Property("VendorFieldDesc") .HasMaxLength(64) .HasColumnType("VARCHAR"); @@ -3951,10 +8065,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_DATA", (string)null); + b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -3962,133 +8076,143 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); + b.Property("Assembly") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "assembly"); - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("CreateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "createTime"); b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); + b.Property("IsDelete") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "models"); - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); + b.Property("Omterior") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("Pattern") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "pattern"); - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("Plant") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plant"); - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("Quantity1") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); + b.Property("Quantity2") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); + b.Property("Quantity3") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); + b.Property("Quantity4") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); + b.Property("Quantity5") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + b.Property("Quantity6") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("ReadState") + .HasColumnType("bit"); - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("ReleaseEdition") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("Remark") + .HasColumnType("nvarchar(max)"); - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("SalseDepartment") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); + b.Property("StartMonth") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); - b.Property("WorkshopId") + b.Property("Type") .HasMaxLength(50) - .HasColumnType("nvarchar"); + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "type"); - b.Property("WorkshopName") + b.Property("UpdateByUser") .HasMaxLength(50) - .HasColumnType("nvarchar"); + .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") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); + .HasColumnType("bit"); b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_PRO_PLANING"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -4096,12 +8220,19 @@ namespace TaskManager.EntityFramework.Migrations 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)"); + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "createByUser"); b.Property("CreateTime") - .HasColumnType("datetime2"); + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "createTime"); b.Property("CreationTime") .HasColumnType("datetime2"); @@ -4111,38 +8242,65 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("nvarchar(50)"); b.Property("IsDelete") - .HasColumnType("int"); + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "isDelete"); b.Property("MaterialCode") .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialCode"); b.Property("Models") .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "models"); - b.Property("ProductionLineId") + b.Property("Omterior") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("ProductionLineName") + b.Property("Pattern") .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "pattern"); - b.Property("ProductionType") + b.Property("Plant") .HasMaxLength(50) - .HasColumnType("nvarchar(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)"); @@ -4150,22 +8308,35 @@ namespace TaskManager.EntityFramework.Migrations .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)"); + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); b.Property("UpdateTime") - .HasColumnType("datetime2"); + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "updateTime"); b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "version"); b.Property("WriteState") .HasColumnType("bit"); @@ -4182,10 +8353,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasIndex("WriteState"); - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); + b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -4193,86 +8364,79 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) + b.Property("ActualBeginTime") + .HasMaxLength(19) .HasColumnType("CHAR"); - b.Property("CheckTime") - .IsRequired() + b.Property("ActualEndTime") .HasMaxLength(19) .HasColumnType("CHAR"); - b.Property("ComponentCode") - .HasMaxLength(32) + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("ComponentName") + b.Property("CheryProductNo") + .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); + b.Property("ManufactureInputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("DeviceCode") + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + b.Property("ManufactureNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("EmpCode") + b.Property("ManufactureOutputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlanBeginTime") .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("EmpName") + b.Property("PlanEndTime") .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("FeatureLower") + b.Property("PlanNo") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("FeatureName") + b.Property("PlanStatus") .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + .HasMaxLength(1) + .HasColumnType("CHAR"); - b.Property("FeatureUnit") + b.Property("PlantId") .IsRequired() - .HasMaxLength(100) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("FeatureUpper") + b.Property("PlantName") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("FeatureValue") + b.Property("ProductBatchNo") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - b.Property("ReadState") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -4282,43 +8446,6 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); - 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) @@ -4329,28 +8456,19 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); - b.Property("SupplierSubName") + b.Property("VendorProductName") .IsRequired() .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") + b.Property("VendorProductNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - b.Property("WriteState") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -4358,10 +8476,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); + b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -4369,141 +8487,122 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); + b.Property("ActualBeginTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); + b.Property("ActualEndTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); + 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("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); + b.Property("ManufactureInputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); + b.Property("ManufactureNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); + b.Property("ManufactureOutputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); + b.Property("PlanBeginTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); + b.Property("PlanEndTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); + b.Property("PlanNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); + b.Property("PlanStatus") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); 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("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); b.Property("WriteState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.HasKey("UId"); - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); + b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -4511,13 +8610,9 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); + b.Property("AcceptableNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); b.Property("CheryProductName") .IsRequired() @@ -4532,7 +8627,12 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("ManufactureInputNum") + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DefectiveNumber") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); @@ -4541,57 +8641,60 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("ManufactureNum") + b.Property("OncePassRateRealValue") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); - b.Property("ManufactureOutputNum") + b.Property("OncePassRateTagValue") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); - b.Property("PlanBeginTime") + b.Property("PlantId") .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("PlanEndTime") + b.Property("PlantName") .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("PlanNo") + b.Property("ProductBatchNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("PlanStatus") + b.Property("ProductionLineId") .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("PlantId") + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StationId") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("PlantName") + b.Property("StationName") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("ProductBatchNo") + b.Property("StatisticalTime") .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); + .HasMaxLength(19) + .HasColumnType("CHAR"); b.Property("SupplierCode") .IsRequired() @@ -4616,17 +8719,34 @@ namespace TaskManager.EntityFramework.Migrations .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") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); + .HasColumnType("bit"); b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); + b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -4767,7 +8887,7 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); + b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); }); modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => @@ -4791,19 +8911,229 @@ namespace TaskManager.EntityFramework.Migrations b.Property("FinalOnLineTime") .HasColumnType("datetime2"); - b.Property("FinalWorkshop") + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + 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("Id") + b.Property("LotNumber") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - b.Property("MaterialCode") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); @@ -4812,21 +9142,21 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(100) .HasColumnType("nvarchar(100)"); - b.Property("Models") + b.Property("PickUpCrossings") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") + b.Property("PickUpLocation") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("ProductionLineName") + b.Property("Plant") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + b.Property("ReadState") .HasColumnType("bit"); @@ -4837,6 +9167,26 @@ namespace TaskManager.EntityFramework.Migrations .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"); @@ -4844,16 +9194,12 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(50) .HasColumnType("nvarchar(50)"); - b.Property("UpdateTime") + b.Property("UpdateTime") .HasColumnType("datetime2"); b.Property("Version") .HasColumnType("int"); - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - b.Property("WriteState") .HasColumnType("bit"); @@ -4869,10 +9215,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasIndex("WriteState"); - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); + b.ToTable("SUPPLIER_RETURN"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -4993,7 +9339,7 @@ namespace TaskManager.EntityFramework.Migrations b.HasIndex("WriteState"); - b.ToTable("SUPPLIER_RETURN"); + b.ToTable("SUPPLIER_RETURN_LOGS"); }); modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => @@ -5092,6 +9438,102 @@ namespace TaskManager.EntityFramework.Migrations 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") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_SA_WEEK_LOGS"); + }); + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => { b.Property("UId") @@ -5203,6 +9645,117 @@ namespace TaskManager.EntityFramework.Migrations 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.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.HasIndex("ReadState"); + + b.HasIndex("TaskId"); + + b.HasIndex("WriteState"); + + b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); + }); + modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => { b.Property("UId") diff --git a/API/Wood.Admin.WebApi/Startup.cs b/API/Wood.Admin.WebApi/Startup.cs index e3c84a1..a88fb1a 100644 --- a/API/Wood.Admin.WebApi/Startup.cs +++ b/API/Wood.Admin.WebApi/Startup.cs @@ -102,6 +102,10 @@ namespace Wood.Admin.WebApi .UseSqlServerStorage(GlobalContext.SystemConfig.CustomerDb, new SqlServerStorageOptions { // 可从配置中读取 Hangfire 存储选项(如队列、重试策略等) + + + + CommandBatchMaxTimeout = TimeSpan.FromMinutes(5), SlidingInvisibilityTimeout = TimeSpan.FromMinutes(5), QueuePollInterval = TimeSpan.Zero, diff --git a/API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs b/API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs index ba429e3..ef37dce 100644 --- a/API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs +++ b/API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs @@ -1,5 +1,6 @@ using Azure.Core; using Dapper; +using Hangfire; using Magicodes.ExporterAndImporter.Core; using Magicodes.ExporterAndImporter.Core.Extension; using Magicodes.ExporterAndImporter.Excel; @@ -10,6 +11,7 @@ using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Omu.ValueInjecter; using SkiaSharp; +using System.ComponentModel.DataAnnotations; using System.Data; using System.Drawing.Printing; using System.Globalization; @@ -30,6 +32,7 @@ using static Dapper.SqlMapper; namespace TaskManager.Controllers { + public class CheryRecurringJobInputPageController : RecurringJobBaseController where T : BaseEntity ,new() where TDTO:class,new() @@ -50,18 +53,31 @@ namespace TaskManager.Controllers [HttpGet] public virtual async Task CustomInvokeAsync(string taskName, string client) { - var first = _jobDbContext.TaskConifgure.FirstOrDefault(p => p.TaskName == taskName && p.Client == client); - if (first == null) + + try { - - return; + + var first = _jobDbContext.TaskConifgure.FirstOrDefault(p => p.TaskName == taskName && p.Client == client); + if (first == null) + { + + return; + } + Url = first.Url; + Path = first.Api; + TaskName = first.TaskName; + Client = client; + CPageSize = first.PageSize; + + var jobId1 = BackgroundJob.Enqueue(taskName+Guid.NewGuid().ToString("N"),() => SyncTaskSubTable(TaskName, Client)); } - Url = first.Url; - Path = first.Api; - TaskName = first.TaskName; - Client = client; - CPageSize = first.PageSize; - await SyncTaskSubTable(TaskName, Client); + catch (Exception ex) { + + await _logger.AddError(ex.Message, TaskName, Guid.NewGuid(), DateTime.Now.ToString("yyyyMMdd")); + + } + + //await SyncTaskSubTable(TaskName, Client); } diff --git a/API/Wood.Service/Controllers/CheryRecurringJobInputPageExtendController.cs b/API/Wood.Service/Controllers/CheryRecurringJobInputPageExtendController.cs index 99bad50..c2b5bd7 100644 --- a/API/Wood.Service/Controllers/CheryRecurringJobInputPageExtendController.cs +++ b/API/Wood.Service/Controllers/CheryRecurringJobInputPageExtendController.cs @@ -1,5 +1,6 @@ using Azure.Core; using Dapper; +using Hangfire; using Magicodes.ExporterAndImporter.Core; using Magicodes.ExporterAndImporter.Core.Extension; using Magicodes.ExporterAndImporter.Excel; @@ -53,21 +54,43 @@ namespace TaskManager.Controllers [HttpGet] public virtual async Task CustomInvokeAsync(string taskName, string client) { - var first = _jobDbContext.TaskConifgure.FirstOrDefault(p => p.TaskName == taskName && p.Client == client); - if (first == null) + try { - - return; + var first = _jobDbContext.TaskConifgure.FirstOrDefault(p => p.TaskName == taskName && p.Client == client); + if (first == null) + { + return; + } + Url = first.Url; + Path = first.Api; + TaskName = first.TaskName; + Client = client; + CPageSize = first.PageSize; + //await SyncTaskSubTable(TaskName, Client); + var jobId1 = BackgroundJob.Enqueue((()=>SyncTaskSubTable(TaskName,Client))); } - Url = first.Url; - Path = first.Api; - TaskName = first.TaskName; - Client = client; - CPageSize = first.PageSize; - await SyncTaskSubTable(TaskName, Client); + + catch (Exception ex) + { + + await _logger.AddError(ex.Message, TaskName, Guid.NewGuid(), DateTime.Now.ToString("yyyyMMdd")); + + } + + + + + } + [NonAction] + public async Task SyncTaskSubTable() + { } + + + + protected override async Task DoExecutingAsync(string url, string path, string takName, string client, int pagesize) { Url = url; @@ -87,6 +110,7 @@ namespace TaskManager.Controllers { PropertyNamingPolicy = JsonNamingPolicy.CamelCase, Converters = { new DecimalTrimConverter() }, + Encoder = System.Text.Encodings.Web.JavaScriptEncoder.Create(System.Text.Unicode.UnicodeRanges.All), WriteIndented = false // 可选,用于格式化输出 } ); @@ -166,74 +190,75 @@ namespace TaskManager.Controllers for (int i= 1; i <= totalPages; i++) { var records = _jobDbContext.Database.SqlQuery($"Select TOP {pageSize} * from {tableName} where writeState=0 and readerstate=1 order by uid"); - var taskId = Guid.NewGuid(); - List dtos = new List(); - foreach (var itm in records) - { - TDTO dto = new TDTO(); - dto.InjectFrom(itm); - dtos.Add(dto); - } - PagedRequest pagedRequest = new PagedRequest() - { - batchNo = GenerateRandomStringWith8EG(), - total = pageSize, - pageSize = pageSize, - list = dtos, - pageNum = i - }; - foreach (var itm in records) - { - itm.WriteState = true; - } - var result = await PostPageAsync(pagedRequest,taskId, DateTime.Now.ToString("yyyyMMdd")); - if (result.code == 200) + + if (records.Any()) { - - using (var transaction = await _jobDbContext.Database.BeginTransactionAsync()) + var taskId = Guid.NewGuid(); + List dtos = new List(); + foreach (var itm in records) { - var tran = transaction.GetDbTransaction(); - await _jobDbContext.BulkUpdateAsync(records, options => { options.UseTableLock = false; }); - try - { - var createtask = new TaskSub(); - createtask.TaskId = taskId; - createtask.TaskName =TaskName; - createtask.Subscriber = Client; - createtask.TableName = tableName; - createtask.DataCount = pageSize; - createtask.Domain = "1"; - createtask.Site = "1"; - createtask.FailedCount = 0; - createtask.CreateTime = DateTime.Now; - createtask.CreateUser = "admin"; - createtask.CreationTime = DateTime.Now; - createtask.SyncedPageCount = pageSize; - await _jobDbContext.AddAsync(task); - // 提交事务 - await transaction.CommitAsync(); - } - catch (Exception ex) + TDTO dto = new TDTO(); + dto.InjectFrom(itm); + dtos.Add(dto); + } + PagedRequest pagedRequest = new PagedRequest() + { + batchNo = GenerateRandomStringWith8EG(), + total = pageSize, + pageSize = pageSize, + list = dtos, + pageNum = i + }; + foreach (var itm in records) + { + itm.WriteState = true; + itm.TaskId = taskId; + } + var result = await PostPageAsync(pagedRequest, taskId, DateTime.Now.ToString("yyyyMMdd")); + if (result.code == 200) + { + using (var transaction = await _jobDbContext.Database.BeginTransactionAsync()) { - await _logger.AddError(ex.Message, TaskName, taskId, DateTime.Now.ToString("yyyyMMdd")); - await transaction.RollbackAsync(); - + var tran = transaction.GetDbTransaction(); + await _jobDbContext.BulkUpdateAsync(records, options => { options.UseTableLock = false; }); + try + { + var createtask = new TaskSub(); + createtask.TaskId = taskId; + createtask.TaskName = TaskName; + createtask.Subscriber = Client; + createtask.TableName = tableName; + createtask.DataCount = pageSize; + createtask.Domain = "1"; + createtask.Site = "1"; + createtask.FailedCount = 0; + createtask.CreateTime = DateTime.Now; + createtask.CreateUser = "admin"; + createtask.CreationTime = DateTime.Now; + createtask.SyncedPageCount = i; + await _jobDbContext.AddAsync(task); + // 提交事务 + await transaction.CommitAsync(); + } + catch (Exception ex) + { + await _logger.AddError(ex.Message, TaskName, taskId, DateTime.Now.ToString("yyyyMMdd")); + await transaction.RollbackAsync(); + + } } } - } - else - { - await _logger.AddError($"第 {i} 页数据保存失败,请检查数据。", TaskName,taskId, DateTime.Now.ToString("yyyyMMdd")); - } + else + { + await _logger.AddError($"第 {i} 页数据保存失败,请检查数据。", TaskName, taskId, DateTime.Now.ToString("yyyyMMdd")); + } - await Task.Delay(200); + await Task.Delay(200); + } } - - - } [HttpGet] diff --git a/API/Wood.Service/Controllers/LogConsumerService.cs b/API/Wood.Service/Controllers/LogConsumerService.cs index 9d56252..d77aa15 100644 --- a/API/Wood.Service/Controllers/LogConsumerService.cs +++ b/API/Wood.Service/Controllers/LogConsumerService.cs @@ -81,6 +81,12 @@ namespace TaskManager.Controllers { log.Path = WriteLogToFile(log.Remark); } + + + + + + log.Remark = string.Empty; logsToSave.Add(log); } diff --git a/API/Wood.Service/Controllers/LogController.cs b/API/Wood.Service/Controllers/LogController.cs index 26e4cc3..8b2f903 100644 --- a/API/Wood.Service/Controllers/LogController.cs +++ b/API/Wood.Service/Controllers/LogController.cs @@ -25,12 +25,11 @@ using System.Threading.Tasks; namespace TaskManager.Controllers { - public class LogController { private readonly Channel _logChannel; - public LogController(int bufferSize = 1000) + public LogController(int bufferSize = 10000) { // 创建有界通道,设置缓冲区大小 var options = new BoundedChannelOptions(bufferSize) @@ -67,9 +66,18 @@ namespace TaskManager.Controllers - + /// + /// + /// + /// + /// + /// + /// + /// [NonAction] + + //[HttpGet("AddError")] public async Task AddError(string message, string taskname, Guid taskid, string version) { diff --git a/API/Wood.Service/Controllers/TaskConifgureController.cs b/API/Wood.Service/Controllers/TaskConifgureController.cs index 149ff82..67b4772 100644 --- a/API/Wood.Service/Controllers/TaskConifgureController.cs +++ b/API/Wood.Service/Controllers/TaskConifgureController.cs @@ -140,8 +140,6 @@ namespace TaskManager.Controllers // TimeZoneInfo.Local // ); - - // 从数据库加载所有任务配置 var tasks = _context.TaskConifgure.Where(p => p.IsAuto == true && !string.IsNullOrEmpty(p.Corn) @@ -316,6 +314,7 @@ namespace TaskManager.Controllers task.TaskName, x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, + TimeZoneInfo.Local ); break;