diff --git a/API/TaskManager.Contracts/Dtos/01_09/Class1.cs b/API/TaskManager.Contracts/Dtos/01_09/Class1.cs deleted file mode 100644 index 6caa457..0000000 --- a/API/TaskManager.Contracts/Dtos/01_09/Class1.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace TaskManager.Contracts.Dtos._01_09 -{ - internal class Class1 - { - } -} diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_BOM_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_BOM_DTO.cs new file mode 100644 index 0000000..2198333 --- /dev/null +++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_BOM_DTO.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TaskManager.Contracts.Dtos; + +namespace TaskManager.Contracts.Dtos +{ + /// + /// BOM主数据 + /// + public class SUPPLIER_BOM_DTO : BaseEntityDto + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + + /// + /// BOM编码 + /// + public string BomCode { get; set; } + + /// + /// BOM名称 + /// + public string BomName { get; set; } + + /// + /// BOM版本 + /// + public string BomVersion { get; set; } + + /// + /// 奇瑞零件号 + /// + public string CheryProductNo { get; set; } + + /// + /// 奇瑞零件名称 + /// + public string CheryProductName { get; set; } + + /// + /// 供应商父件编码 + /// + public string VendorProductNo { get; set; } + + /// + /// 供应商父件名称 + /// + public string VendorProductName { get; set; } + + /// + /// 父件类型(成品, 半成品) + /// + public string VendorProductType { get; set; } + + /// + /// 父件单位 + /// + public string MaterialUnit { get; set; } + + /// + /// 子件编码 + /// + public string SubMaterialCode { get; set; } + + /// + /// 子件名称 + /// + public string SubMaterialName { get; set; } + + /// + /// 子件类型(半成品, 原材料) + /// + public string SubMaterialType { get; set; } + + /// + /// 子件单位 + /// + public string SubMaterialUnit { get; set; } + + /// + /// 子件用量 + /// + public decimal SubMaterialQuota { get; set; } + + /// + /// BOM变更时间,格式(yyyy-MM-dd HH:mm:ss) + /// + public string DataUpdateTime { get; set; } + } +} diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_EMPLOYEE_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_EMPLOYEE_DTO.cs new file mode 100644 index 0000000..54be819 --- /dev/null +++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_EMPLOYEE_DTO.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TaskManager.Contracts.Dtos; + +namespace TaskManager.Contracts.Dtos +{ + /// + /// 人员资质信息 + /// + public class SUPPLIER_EMPLOYEE_DTO : BaseEntityDto + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + + /// + /// 工厂代码 + /// + public string PlantId { get; set; } + + /// + /// 工厂名称 + /// + public string PlantName { get; set; } + + /// + /// 车间代码 + /// + public string WorkshopId { get; set; } + + /// + /// 车间名称 + /// + public string WorkshopName { get; set; } + + /// + /// 产线代码 + /// + public string ProductionLineId { get; set; } + + /// + /// 产线名称 + /// + public string ProductionLineName { get; set; } + + /// + /// 工位代码 + /// + public string StationId { get; set; } + + /// + /// 工位名称 + /// + public string StationName { get; set; } + + /// + /// 工位人员账号 + /// + public string OperatorId { get; set; } + + /// + /// 工位人员姓名 + /// + public string OperatorName { get; set; } + + /// + /// 是否有资质(Y,N) + /// + public bool HaveQuantity { get; set; } + + /// + /// 供应商修改时间,格式(yyyy-MM-dd HH:mm:ss) + /// + public string DataUpdateTime { get; set; } + + /// + /// 岗位代码 + /// + public string PositionId { get; set; } + + /// + /// 岗位名称 + /// + public string PositionName { get; set; } + + /// + /// 资质等级(Level_4,Level_3,Level_2, Level_1) + /// + public string QualificationLevel { get; set; } + + /// + /// 资质获取时间 + /// + public string CheckInTime { get; set; } + + /// + /// 资质失去时间 + /// + public string CheckOutTime { get; set; } + } +} diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_INFO_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_INFO_DTO.cs new file mode 100644 index 0000000..bffe9eb --- /dev/null +++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_INFO_DTO.cs @@ -0,0 +1,105 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TaskManager.Contracts.Dtos; + +namespace TaskManager.Contracts.Dtos +{ + /// + /// 供应商基础信息 + /// + public class SUPPLIER_INFO_DTO : BaseEntityDto + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + + /// + /// 工厂代码 + /// + public string PlantId { get; set; } + + /// + /// 工厂名称 + /// + public string PlantName { get; set; } + + /// + /// 车间代码 + /// + public string WorkshopId { get; set; } + + /// + /// 车间名称 + /// + public string WorkshopName { get; set; } + + /// + /// 产线代码 + /// + public string ProductionLineId { get; set; } + + /// + /// 产线名称 + /// + public string ProductionLineName { get; set; } + + /// + /// 工位代码 + /// + public string StationId { get; set; } + + /// + /// 工位名称 + /// + public string StationName { get; set; } + + /// + /// 是否关键工位(Y/N) + /// + public bool KeyStation { get; set; } + + /// + /// 供应商修改时间,格式(yyyy-MM-dd HH:mm:ss) + /// + public string DataUpdateTime { get; set; } + + /// + /// 产线顺序 + /// + public int ProductionLineOrder { get; set; } + + /// + /// 工位顺序 + /// + public int StationOrder { get; set; } + + /// + /// 供应商总成零件号 + /// + public string VendorProductNo { get; set; } + + /// + /// 供应商总成零件名称 + /// + public string VendorProductName { get; set; } + + /// + /// 奇瑞零件号 + /// + public string CheryProductNo { get; set; } + + /// + /// 奇瑞零件名称 + /// + public string CheryProductName { get; set; } + } +} diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_CPS_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_CPS_DTO.cs new file mode 100644 index 0000000..7260019 --- /dev/null +++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_CPS_DTO.cs @@ -0,0 +1,255 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TaskManager.Contracts.Dtos; + +namespace TaskManager.Contracts.Dtos +{ + /// + /// 过程控制项质量数据 + /// + public class SUPPLIER_PRO_CPS_DTO : BaseEntityDto + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + + /// + /// 供应商总成零件号 + /// + public string VendorProductNo { get; set; } + + /// + /// 供应商总成零件名称 + /// + public string VendorProductName { get; set; } + + /// + /// 供应商总成SN码 + /// + public string VendorProductSn { get; set; } + + /// + /// 供应商总成批次号 + /// + public string VendorProductBatch { get; set; } + + /// + /// 奇瑞零件号 + /// + public string CheryProductNo { get; set; } + + /// + /// 奇瑞零件名称 + /// + public string CheryProductName { get; set; } + + /// + /// 奇瑞SN码 + /// + public string CheryProductSn { get; set; } + + /// + /// 生产批次号 + /// + public string ProductBatchNo { get; set; } + + /// + /// 生产工单号 + /// + public string ManufactureNo { get; set; } + + /// + /// 工厂代码 + /// + public string PlantId { get; set; } + + /// + /// 工厂名称 + /// + public string PlantName { get; set; } + + /// + /// 车间代码 + /// + public string WorkshopId { get; set; } + + /// + /// 车间名称 + /// + public string WorkshopName { get; set; } + + /// + /// 产线代码 + /// + public string ProductionLineId { get; set; } + + /// + /// 产线名称 + /// + public string ProductionLineName { get; set; } + + /// + /// 工位代码 + /// + public string StationId { get; set; } + + /// + /// 工位名称 + /// + public string StationName { get; set; } + + /// + /// 工位人员编号 + /// + public string EmpCode { get; set; } + + /// + /// 工位人员姓名 + /// + public string EmpName { get; set; } + + /// + /// 控制项名称 + /// + public string VendorFieldName { get; set; } + + /// + /// 控制项代码 + /// + public string VendorFieldCode { get; set; } + + /// + /// 控制项点位 + /// + public string GatherSpot { get; set; } + + /// + /// 控制项要求频率 + /// + public decimal SamplingRate { get; set; } + + /// + /// 上下限更新时间,格式(yyyy-MM-dd HH:mm:ss) + /// + public string LimitUpdateTime { get; set; } + + /// + /// 控制项描述 + /// + public string VendorFieldDesc { get; set; } + + /// + /// 载体编码 + /// + public string CarrierCode { get; set; } + + /// + /// 投入数量 + /// + public decimal IntputQty { get; set; } + + /// + /// 一次合格数量 + /// + public decimal FttQty { get; set; } + + /// + /// 参数 , 是传Y,否传N + /// + public string Parameter { get; set; } + + /// + /// 特性 , 是传Y,否传N + /// + public string Characteristic { get; set; } + + /// + /// CC项 , 是传Y,否传N + /// + public bool Cc { get; set; } + + /// + /// SC项 , 是传Y,否传N + /// + public bool Sc { get; set; } + + /// + /// SPC , 是传Y,否传N + /// + public bool Spc { get; set; } + + /// + /// 控制项标准值 + /// + public string StandardValue { get; set; } + + /// + /// 控制项上限 + /// + public decimal UpperLimit { get; set; } + + /// + /// 控制项下限 + /// + public decimal LowerLimit { get; set; } + + /// + /// 控制项实测值 + /// + public decimal DecimalValue { get; set; } + + /// + /// 控制项值的单位名称-中文 + /// + public string UnitCn { get; set; } + + /// + /// 控制项单位英文 + /// + public string UnitEn { get; set; } + + /// + /// 检测结果 + /// + public string CheckResult { get; set; } + + /// + /// 在线检测(inline,offline,both) + /// + public string DetectionMode { get; set; } + + /// + /// 班次(白班,晚班,中班) + /// + public string WorkShift { get; set; } + + /// + /// 采集时间,格式(yyyy-MM-dd HH:mm:ss) + /// + public string CollectTime { get; set; } + + /// + /// 检测方式(人工,设备) + /// + public string CheckMode { get; set; } + + /// + /// 检测设备编号 + /// + public string DeviceCode { get; set; } + + /// + /// 检测设备名称 + /// + public string DeviceName { get; set; } + } +} diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_DATA_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_DATA_DTO.cs new file mode 100644 index 0000000..408bdda --- /dev/null +++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_DATA_DTO.cs @@ -0,0 +1,235 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TaskManager.Contracts.Dtos; + +namespace TaskManager.Contracts.Dtos +{ + /// + /// 生产过程数据 + /// + public class SUPPLIER_PRO_DATA_DTO : BaseEntityDto + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + + /// + /// 工厂代码 + /// + public string PlantId { get; set; } + + /// + /// 工厂名称 + /// + public string PlantName { get; set; } + + /// + /// 车间代码 + /// + public string WorkshopId { get; set; } + + /// + /// 车间名称 + /// + public string WorkshopName { get; set; } + + /// + /// 产线代码 + /// + public string ProductionLineId { get; set; } + + /// + /// 产线名称 + /// + public string ProductionLineName { get; set; } + + /// + /// 工位代码 + /// + public string StationId { get; set; } + + /// + /// 工位名称 + /// + public string StationName { get; set; } + + /// + /// 工位人员编号 + /// + public string EmpCode { get; set; } + + /// + /// 工位人员姓名 + /// + public string EmpName { get; set; } + + /// + /// 供应商总成零件名称 + /// + public string VendorProductName { get; set; } + + /// + /// 供应商总成零件号 + /// + public string VendorProductNo { get; set; } + + /// + /// 供应商总成批次号 + /// + public string VendorProductBatch { get; set; } + + /// + /// 供应商总成SN码 + /// + public string VendorProductSn { get; set; } + + /// + /// 子件编码 + /// + public string SubProdNo { get; set; } + + /// + /// 子件名称 + /// + public string SubProdName { get; set; } + + /// + /// 子件批次号 + /// + public string SubBatchNo { get; set; } + + /// + /// 子件分包号 + /// + public string ChildPackageInfo { get; set; } + + /// + /// 子件扣料数量 + /// + public decimal SubProdNum { get; set; } + + /// + /// 子件SN码 + /// + public string SubProdSn { get; set; } + + /// + /// 子件物料来源 + /// + public string ChildSource { get; set; } + + /// + /// 分供方代码 + /// + public string SubSupplierCode { get; set; } + + /// + /// 分供方名称(原注释“分分供方”可能为笔误,此处按“分供方”处理) + /// + public string SubSupplierName { get; set; } + + /// + /// 奇瑞零件号 + /// + public string CheryProductNo { get; set; } + + /// + /// 奇瑞零件名称 + /// + public string CheryProductName { get; set; } + + /// + /// 奇瑞SN码 + /// + public string CheryProductSn { get; set; } + + /// + /// 生产工单号 + /// + public string ManufactureNo { get; set; } + + /// + /// 生产批次号 + /// + public string ProductBatchNo { get; set; } + + /// + /// 班次(白班,晚班,中班) + /// + public string WorkShift { get; set; } + + /// + /// 进工位的时间,格式(yyyy-MM-dd HH:mm:ss) + /// + public string MaterialInputTime { get; set; } + + /// + /// 出工位的时间,格式(yyyy-MM-dd HH:mm:ss) + /// + public string MaterialOutputTime { get; set; } + + /// + /// 装配设备编号(原注释“vendorFieldNum”可能为“设备编号”,此处按业务逻辑命名) + /// + public string VendorFieldNum { get; set; } + + /// + /// 装配设备名称 + /// + public string VendorFieldName { get; set; } + + /// + /// 设备判定的质量状态(合格与否,NG不合适 OK合适) + /// + public string InstrumentQualityStatus { get; set; } + + /// + /// 人工判定的质量状态(合格与否,NG不合适 OK合适) + /// + public string ManualQualityStatus { get; set; } + + /// + /// 最终质量状态(合格与否,NG不合适 OK合适) + /// + public string FinalQualityStatus { get; set; } + + /// + /// 采集时间,格式(yyyy-MM-dd HH:mm:ss) + /// + public string CollectTime { get; set; } + + /// + /// 子件绑定扫码时间,格式(yyyy-MM-dd HH:mm:ss) + /// + public string DateTime { get; set; } + + /// + /// 父件硬件版本号 + /// + public string ParentHardwareRevision { get; set; } + + /// + /// 父件软件版本号 + /// + public string ParentSoftwareRevision { get; set; } + + /// + /// 子件硬件版本号 + /// + public string ChildHardwareRevision { get; set; } + + /// + /// 子件软件版本号 + /// + public string ChildSoftwareRevision { get; set; } + } +} diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_FIRST_PASSYIELD_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_FIRST_PASSYIELD_DTO.cs new file mode 100644 index 0000000..fa81c39 --- /dev/null +++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_FIRST_PASSYIELD_DTO.cs @@ -0,0 +1,125 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TaskManager.Contracts.Dtos; + +namespace TaskManager.Contracts.Dtos +{ + /// + /// 产品一次合格率 + /// + public class SUPPLIER_PRO_FIRST_PASSYIELD_DTO : BaseEntityDto + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + + /// + /// 供应商总成零件号 + /// + public string VendorProductNo { get; set; } + + /// + /// 供应商总成零件名称 + /// + public string VendorProductName { get; set; } + + /// + /// 工厂代码 + /// + public string PlantId { get; set; } + + /// + /// 工厂名称 + /// + public string PlantName { get; set; } + + /// + /// 车间代码 + /// + public string WorkshopId { get; set; } + + /// + /// 车间名称 + /// + public string WorkshopName { get; set; } + + /// + /// 产线代码 + /// + public string ProductionLineId { get; set; } + + /// + /// 产线名称 + /// + public string ProductionLineName { get; set; } + + /// + /// 奇瑞零件号 + /// + public string CheryProductNo { get; set; } + + /// + /// 奇瑞零件名称 + /// + public string CheryProductName { get; set; } + + /// + /// 生产工单号 + /// + public string ManufactureNo { get; set; } + + /// + /// 生产批次号 + /// + public string ProductBatchNo { get; set; } + + /// + /// 批次计划数量:每个批次号对应的计划数量 + /// + public decimal WorkOrderNumber { get; set; } + + /// + /// 不合格数 + /// + public decimal DefectiveNumber { get; set; } + + /// + /// 合格数:当班次合格数汇总 + /// + public decimal AcceptableNumber { get; set; } + + /// + /// 一次合格率实际值 + /// + public decimal OncePassRateRealValue { get; set; } + + /// + /// 一次合格率目标值 + /// + public decimal OncePassRateTagValue { get; set; } + + /// + /// 班次(白班,晚班,中班) + /// + public string WorkShift { get; set; } + + /// + /// 生产日期,格式(yyyy-MM-dd HH:mm:ss) + /// + public string StatisticalTime { get; set; } + + /// + /// 值统计时间,格式(yyyy-MM-dd HH:mm:ss) + /// + public string DateTime { get; set; } + } +} diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_MATERIAL_STOCK_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_MATERIAL_STOCK_DTO.cs new file mode 100644 index 0000000..bd68fc0 --- /dev/null +++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_MATERIAL_STOCK_DTO.cs @@ -0,0 +1,165 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TaskManager.Contracts.Dtos; + +namespace TaskManager.Contracts.Dtos +{ + /// + /// 来料检验数据 + /// + public class SUPPLIER_PRO_MATERIAL_STOCK_DTO : BaseEntityDto + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + + /// + /// 供应商子零件编号 + /// + public string SupplierSubCode { get; set; } + + /// + /// 供应商子零件名称 + /// + public string SupplierSubName { get; set; } + + /// + /// 分供方代码 + /// + public string SubSupplierCode { get; set; } + + /// + /// 分供方名称 + /// + public string SubSupplierName { get; set; } + + /// + /// 分供方地址,分供方发货地址:省市区(县),不用于详细地址 + /// + public string SubSupplierAddress { get; set; } + + /// + /// 分供方子件编码 + /// + public string ComponentCode { get; set; } + + /// + /// 分供方子件名称 + /// + public string ComponentName { get; set; } + + /// + /// 子件批次号 + /// + public string SubBatchNo { get; set; } + + /// + /// 子件批次数量 + /// + public decimal SubBatchNum { get; set; } + + /// + /// 子件SN码 + /// + public string SubBatchSn { get; set; } + + /// + /// 检验人员编号 + /// + public string EmpCode { get; set; } + + /// + /// 检验人员姓名 + /// + public string EmpName { get; set; } + + /// + /// 检测设备编号 + /// + public string DeviceCode { get; set; } + + /// + /// 检测设备名称 + /// + public string DeviceName { get; set; } + + /// + /// 参数名称/特性名称 + /// + public string FeatureName { get; set; } + + /// + /// 参数单位/特性单位 + /// + public string FeatureUnit { get; set; } + + /// + /// 参数/特性标准值 + /// + public string StandardValue { get; set; } + + /// + /// 参数/特性上限值 + /// + public string FeatureUpper { get; set; } + + /// + /// 参数/特性下限值 + /// + public string FeatureLower { get; set; } + + /// + /// 参数/特性实测值 + /// + public string FeatureValue { get; set; } + + /// + /// 来料检验单号 + /// + public string CheckNo { get; set; } + + /// + /// 批次的最终判定结果,OK合格/NG不合格 + /// + public string CheckResult { get; set; } + + /// + /// 检验时间,格式(yyyy-MM-dd HH:mm:ss) + /// + public string CheckTime { get; set; } + + /// + /// 控制项要求频率 + /// + public decimal SamplingRate { get; set; } + + /// + /// 上下限更新时间,格式(yyyy-MM-dd HH:mm:ss) + /// + public string LimitUpdateTime { get; set; } + + /// + /// 控制项描述 + /// + public string VendorFieldDesc { get; set; } + + /// + /// 控制项代码 + /// + public string VendorFieldCode { get; set; } + + /// + /// 库存有效日期,格式(yyyy-MM-dd HH:mm:ss) + /// + public string DeadLine { get; set; } + } +} diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_SCHEDULING_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_SCHEDULING_DTO.cs new file mode 100644 index 0000000..2dcfa1f --- /dev/null +++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_SCHEDULING_DTO.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TaskManager.Contracts.Dtos; + +namespace TaskManager.Contracts.Dtos +{ + /// + /// 排产数据 + /// + public class SUPPLIER_PRO_SCHEDULING_DTO : BaseEntityDto + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + + /// + /// 工厂代码 + /// + public string PlantId { get; set; } + + /// + /// 工厂名称 + /// + public string PlantName { get; set; } + + /// + /// 供应商总成零件号 + /// + public string VendorProductNo { get; set; } + + /// + /// 供应商总成零件名称 + /// + public string VendorProductName { get; set; } + + /// + /// 奇瑞零件号 + /// + public string CheryProductNo { get; set; } + + /// + /// 奇瑞零件名称 + /// + public string CheryProductName { get; set; } + + /// + /// 计划单号 + /// + public string PlanNo { get; set; } + + /// + /// 生产工单号 + /// + public string ManufactureNo { get; set; } + + /// + /// 生产批次号 + /// + public string ProductBatchNo { get; set; } + + /// + /// 批次计划数量 + /// + public decimal ManufactureNum { get; set; } + + /// + /// 批次投入数量 + /// + public decimal ManufactureInputNum { get; set; } + + /// + /// 批次产出数量 + /// + public decimal ManufactureOutputNum { get; set; } + + /// + /// 排产状态(0:未生产,1:生产中,2:已完工,3:已取消,4:已终止) + /// + public int PlanStatus { get; set; } + + /// + /// 计划开始时间(格式:yyyy-MM-dd HH:mm:ss) + /// + public string PlanBeginTime { get; set; } + + /// + /// 计划结束时间(格式:yyyy-MM-dd HH:mm:ss) + /// + public string PlanEndTime { get; set; } + + /// + /// 实际开始时间(格式:yyyy-MM-dd HH:mm:ss) + /// + public string ActualBeginTime { get; set; } + + /// + /// 实际结束时间(格式:yyyy-MM-dd HH:mm:ss) + /// + public string ActualEndTime { get; set; } + } +} diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD_DTO.cs new file mode 100644 index 0000000..62235a9 --- /dev/null +++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD_DTO.cs @@ -0,0 +1,135 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TaskManager.Contracts.Dtos; + +namespace TaskManager.Contracts.Dtos +{ + /// + /// 工位一次合格率 + /// + public class SUPPLIER_PRO_STATION_FIRST_PASSYIELD_DTO : BaseEntityDto + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + + /// + /// 工厂代码 + /// + public string PlantId { get; set; } + + /// + /// 工厂名称 + /// + public string PlantName { get; set; } + + /// + /// 车间代码 + /// + public string WorkshopId { get; set; } + + /// + /// 车间名称 + /// + public string WorkshopName { get; set; } + + /// + /// 产线代码 + /// + public string ProductionLineId { get; set; } + + /// + /// 产线名称 + /// + public string ProductionLineName { get; set; } + + /// + /// 工位代码 + /// + public string StationId { get; set; } + + /// + /// 工位名称 + /// + public string StationName { get; set; } + + /// + /// 奇瑞零件号 + /// + public string CheryProductNo { get; set; } + + /// + /// 奇瑞零件名称 + /// + public string CheryProductName { get; set; } + + /// + /// 供应商总成零件号 + /// + public string VendorProductNo { get; set; } + + /// + /// 供应商总成零件名称 + /// + public string VendorProductName { get; set; } + + /// + /// 生产批次号 + /// + public string ProductBatchNo { get; set; } + + /// + /// 生产工单号(跟排产工单号关联) + /// + public string ManufactureNo { get; set; } + + /// + /// 批次计划数量 + /// + public decimal WorkOrderNumber { get; set; } + + /// + /// 不合格数 + /// + public decimal DefectiveNumber { get; set; } + + /// + /// 合格数 + /// + public decimal AcceptableNumber { get; set; } + + /// + /// 一次合格率实际值(使用小数表示,如 0.9601 表示 96.01%,整数位最多10位,小数位最多3位) + /// + public decimal OncePassRateRealValue { get; set; } + + /// + /// 一次合格率目标值(使用小数表示,如 0.96 表示 96.00%,整数位最多10位,小数位最多3位) + /// + public decimal OncePassRateTagValue { get; set; } + + /// + /// 班次(白班,晚班,中班) + /// + public string WorkShift { get; set; } + + /// + /// 生产日期,格式:yyyy-MM-dd HH:mm:ss + /// + public string StatisticalTime { get; set; } + + /// + /// 值统计时间,格式:yyyy-MM-dd HH:mm:ss + /// + public string DateTime { get; set; } + } +} diff --git a/API/TaskManager.Contracts/Dtos/Dtos.cs b/API/TaskManager.Contracts/Dtos/Dtos.cs index 142c353..e26e00f 100644 --- a/API/TaskManager.Contracts/Dtos/Dtos.cs +++ b/API/TaskManager.Contracts/Dtos/Dtos.cs @@ -1,4 +1,6 @@ using Newtonsoft.Json; +using System.ComponentModel.DataAnnotations.Schema; +using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Text.Json; using System.Text.Json.Serialization; @@ -74,7 +76,20 @@ namespace TaskManager.Contracts.Dtos } + public class BaseEntityDto + { + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.Identity)] + public long UId { get; set; } + public bool WriteState { get; set; } + public bool ReadState { get; set; } + + public DateTime CreationTime { get; set; } + public string Remark { get; set; } + + public Guid TaskId { get; set; } + } public class CherryReadBaseEntityDto { diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs new file mode 100644 index 0000000..87a1501 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs @@ -0,0 +1,78 @@ +namespace TaskManager.Entity.Entitys +{ + /// + /// 附件类数据 + /// + public class SUPPLIER_PRO_ATTACHMENT_DATA : BaseEntity + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + /// + /// 数据类型(1产前管理;2人员资质;3监控视频) + /// + public string Type { get; set; } + /// + /// 文件名 + /// + public string FileName { get; set; } + /// + /// 图文地址 + /// + public string FileUrl { get; set; } + /// + /// 生成时间,格式(yyyy-MM-ddHH:mm:ss) + /// + public string DateTime { get; set; } + /// + /// 产线名称 + /// + public string ProductionLineName { get; set; } + /// + /// 产线代码 + /// + public string ProductionLineId { get; set; } + /// + /// 工位名称 + /// + public string StationName { get; set; } + /// + /// 工位代码 + /// + public string StationId { get; set; } + /// + /// 设备名称 + /// + public string DeviceName { get; set; } + /// + /// 设备编码 + /// + public string? DeviceId { get; set; } + /// + /// 供应商总成零件号 + /// + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + public string VendorProductName { get; set; } + /// + /// 奇瑞零件号 + /// + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + public string CheryProductName { get; set; } + /// + /// 供应商总成SN码 + /// + public string? VendorProductSn { get; set; } + } + +} diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT.cs new file mode 100644 index 0000000..cfcb0d7 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT.cs @@ -0,0 +1,79 @@ +namespace TaskManager.Entity.Entitys +{ + /// + /// 环境业务数据 + /// + public class SUPPLIER_PRO_ENVIRONMENT : BaseEntity + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + /// + /// 工厂代码 + /// + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + public string PlantName { get; set; } + /// + /// 车间代码 + /// + public string WorkshopId { get; set; } + /// + /// 车间名称 + /// + public string WorkshopName { get; set; } + /// + /// 产线代码 + /// + public string ProductionLineId { get; set; } + /// + /// 产线名称 + /// + public string ProductionLineName { get; set; } + /// + /// 环境指标名称,例如:温度、湿度、洁净度等 + /// + public string EnvIndicatorName { get; set; } + /// + /// 指标实测值,(最大支持11位整数+5位小数) + /// + public decimal? NumValue { get; set; } + /// + /// 上限值,(最大支持11位整数+5位小数) + /// + public decimal UpperLimit { get; set; } + /// + /// 下限值,(最大支持11位整数+5位小数) + /// + public decimal LowerLimit { get; set; } + /// + /// 单位,相应的单位名称,如度数 + /// + public string ChineseUnit { get; set; } + /// + /// 采集仪器代码,环境采集的仪器/工具代码 + /// + public string EquipmentCode { get; set; } + /// + /// 采集仪器名称,环境采集的仪器/工具名称 + /// + public string EquipmentName { get; set; } + /// + /// 数据采集的点位 + /// + public string? DataCollectionPoint { get; set; } + /// + /// 数据采集的时间,格式(yyyy-MM-ddHH:mm:ss) + /// + public string CollectTime { get; set; } + } + + +} diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW.cs new file mode 100644 index 0000000..021c9e0 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW.cs @@ -0,0 +1,124 @@ +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 : BaseEntity + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + /// + /// 工厂代码 + /// + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + public string PlantName { get; set; } + /// + /// 车间代码 + /// + public string WorkshopId { get; set; } + /// + /// 车间名称 + /// + public string WorkshopName { get; set; } + /// + /// 产线代码 + /// + public string ProductionLineId { get; set; } + /// + /// 产线名称 + /// + public string ProductionLineName { get; set; } + /// + /// 工位代码 + /// + public string StationId { get; set; } + /// + /// 工位名称 + /// + public string StationName { get; set; } + /// + /// 缺陷代码 + /// + public string DefectsCode { get; set; } + /// + /// 缺陷名称 + /// + public string DefectsName { get; set; } + /// + /// 缺陷分类(外观,尺寸,材料,功能,性能,其他) + /// + public string ClassOfName { get; set; } + /// + /// 供应商总成零件号 + /// + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + public string VendorProductName { get; set; } + /// + /// 供应商总成批次号 + /// + public string VendorProductBatch { get; set; } + /// + /// 供应商总成SN码 + /// + public string VendorProductSn { get; set; } + /// + /// 奇瑞零件号 + /// + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + public string CheryProductName { get; set; } + /// + /// 奇瑞SN码 + /// + public string CheryProductSn { get; set; } + /// + /// 生产批次号 + /// + public string ProductBatchNo { get; set; } + /// + /// 生产工单号,或生产批次(工单业务数据) + /// + public string ManufactureNo { get; set; } + /// + /// 班次(白班,晚班,中班) + /// + public string WorkShift { get; set; } + /// + /// 缺陷件数 + /// + public decimal Numberofdefect { get; set; } + /// + /// 缺陷描述 + /// + public string DefectsDesc { get; set; } + /// + /// 缺陷等级,(1.严重、2.一般、3.轻微) + /// + public string DefectsLevel { get; set; } + /// + /// 缺陷录入时间,格式(yyyy-MM-ddHH:mm:ss) + /// + public string StatisticalTime { get; set; } + } + +} diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA.cs new file mode 100644 index 0000000..7521474 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA.cs @@ -0,0 +1,90 @@ +namespace TaskManager.Entity.Entitys +{ + /// + /// 物料主数据 + /// + public class SUPPLIER_PRO_MATERIAL_DATA : BaseEntity + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + /// + /// 供应商物料号 + /// + public string VendorProductNo { get; set; } + /// + /// 供应商物料名称 + /// + public string VendorProductName { get; set; } + /// + /// 类型(成品,半成品,原材料) + /// + public decimal Type { get; set; } + /// + /// 供应商零件版本号 + /// + public string? VendorHardwareRevision { get; set; } + /// + /// 奇瑞零件号 + /// + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + public string CheryProductName { get; set; } + /// + /// 奇瑞硬件版本号 + /// + public string OemHardwareRevision { get; set; } + /// + /// 奇瑞软件版本号 + /// + public string? OemSoftwareRevision { get; set; } + /// + /// 车型 + /// + public string? OemModel { get; set; } + /// + /// 项目名称 + /// + public string? OemProjectName { get; set; } + /// + /// 是否SOP(Y/N) + /// + public string? Launched { get; set; } + /// + /// 数据同步执行时间,格式(yyyy-MM-ddHH:mm:ss) + /// + public string? DateTime { get; set; } + /// + /// 供应商工厂代码 + /// + public string? PlantId { get; set; } + /// + /// 供应商工厂名称 + /// + public string? PlantName { get; set; } + /// + /// 芯片采购类型(AVAP,CS,CMcontro) + /// + public string? ProcurementType { get; set; } + /// + /// 芯片MPN标识码 + /// + public string? MpnCode { get; set; } + /// + /// 芯片MPN标识名称 + /// + public string? MpnName { get; set; } + /// + /// 物料有效期(天) + /// + public string ValidDays { get; set; } + } + +} diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE.cs new file mode 100644 index 0000000..ea82703 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE.cs @@ -0,0 +1,102 @@ +namespace TaskManager.Entity.Entitys +{ + /// + /// 设备OEE达成率 + /// + public class SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE : BaseEntity + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + /// + /// 工厂代码 + /// + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + public string PlantName { get; set; } + /// + /// 车间代码 + /// + public string WorkshopId { get; set; } + /// + /// 车间名称 + /// + public string WorkshopName { get; set; } + /// + /// 产线代码 + /// + public string ProductionLineId { get; set; } + /// + /// 产线名称 + /// + public string ProductionLineName { get; set; } + /// + /// 工位代码 + /// + public string StationId { get; set; } + /// + /// 工位名称 + /// + public string StationName { get; set; } + /// + /// 设备代码 + /// + public string DeviceId { get; set; } + /// + /// 设备名称 + /// + public string? DeviceName { get; set; } + /// + /// 奇瑞零件号 + /// + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + public string CheryProductName { get; set; } + /// + /// 供应商总成零件号 + /// + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + public string VendorProductName { get; set; } + /// + /// 生产批次号 + /// + public string ProductBatchNo { get; set; } + /// + /// 生产工单号 + /// + public string ManufactureNo { get; set; } + /// + /// OEE实际值 + /// + public decimal Rate { get; set; } + /// + /// OEE目标值 + /// + public decimal RateTagValue { get; set; } + /// + /// 班次(白班,晚班,中班) + /// + public string WorkShift { get; set; } + /// + /// 生产日期,格式(yyyy-MM-ddHH:mm:ss) + /// + public string StatisticalTime { get; set; } + /// + /// 值统计时间,格式(yyyy-MM-ddHH:mm:ss) + /// + public string DateTime { get; set; } + } + +} diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS.cs new file mode 100644 index 0000000..df7e0df --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS.cs @@ -0,0 +1,82 @@ +namespace TaskManager.Entity.Entitys +{ + /// + /// OEE时间明细 + /// + public class SUPPLIER_PRO_OEE_TIME_DETAILS : BaseEntity + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + /// + /// 工厂代码 + /// + public string PlantId { get; set; } + /// + /// 工厂名称 + /// + public string PlantName { get; set; } + /// + /// 车间代码 + /// + public string WorkshopId { get; set; } + /// + /// 车间名称 + /// + public string? WorkshopName { get; set; } + /// + /// 产线代码 + /// + public string ProductionLineId { get; set; } + /// + /// 产线名称 + /// + public string? ProductionLineName { get; set; } + /// + /// 工位代码 + /// + public string StationId { get; set; } + /// + /// 工位名称 + /// + public string StationName { get; set; } + /// + /// 设备代码 + /// + public string DeviceId { get; set; } + /// + /// 设备名称 + /// + public string DeviceName { get; set; } + /// + /// 记录ID + /// + public string RecId { get; set; } + /// + /// 大类(1计划工作,2计划停机,3非计划停机) + /// + public string Type { get; set; } + /// + /// 小类编码 + /// + public string SubType { get; set; } + /// + /// 小类描述 + /// + public string SubTypeName { get; set; } + /// + /// 开始时间,格式(yyyy-MM-ddHH:mm:ss) + /// + public string StartTime { get; set; } + /// + /// 结束时间,格式(yyyy-MM-ddHH:mm:ss) + /// + public string EndTime { get; set; } + } + +} diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS.cs new file mode 100644 index 0000000..dd4af58 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS.cs @@ -0,0 +1,86 @@ +namespace TaskManager.Entity.Entitys +{ + /// + /// 工艺 + /// + public class SUPPLIER_PRO_PROCESS : BaseEntity + { + /// + /// 奇瑞零件号 + /// + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + public string CheryProductName { get; set; } + /// + /// 供应商总成零件号 + /// + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + public string VendorProductName { get; set; } + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + /// + /// 工艺编码 + /// + public string TechCode { get; set; } + /// + /// 工艺名称 + /// + public string TechName { get; set; } + /// + /// 有效期,格式(yyyy-MM-ddHH:mm:ss) + /// + public string ValidPeriod { get; set; } + /// + /// 工艺版本 + /// + public string TechVersion { get; set; } + /// + /// 模具编码 + /// + public string MoldCode { get; set; } + /// + /// 模具名称 + /// + public string MoldName { get; set; } + /// + /// 最大加工能力 + /// + public string MaxProcessingCapacity { get; set; } + /// + /// 工序编码 + /// + public string ProcessCode { get; set; } + /// + /// 工序名称 + /// + public string ProcessName { get; set; } + /// + /// 工序顺序号 + /// + public decimal ProcessOrder { get; set; } + /// + /// 设备编码 + /// + public string DeviceCode { get; set; } + /// + /// 工序节拍 + /// + public decimal Rhythm { get; set; } + /// + /// 节拍单位 + /// + public string RhythmUnit { get; set; } + } + +} diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT.cs new file mode 100644 index 0000000..4f5a273 --- /dev/null +++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT.cs @@ -0,0 +1,130 @@ +namespace TaskManager.Entity.Entitys +{ + /// + /// 工艺装备 + /// + public class SUPPLIER_PRO_PROCESS_EQUIPMENT : BaseEntity + { + /// + /// 供应商代码 + /// + public string SupplierCode { get; set; } + /// + /// 供应商名称 + /// + public string SupplierName { get; set; } + /// + /// 奇瑞零件号 + /// + public string CheryProductNo { get; set; } + /// + /// 奇瑞零件名称 + /// + public string CheryProductName { get; set; } + /// + /// 供应商总成零件号 + /// + public string VendorProductNo { get; set; } + /// + /// 供应商总成零件名称 + /// + public string VendorProductName { get; set; } + /// + /// 工艺装备类型分类(1模具;2检具;3夹具) + /// + public decimal DeviceType { get; set; } + /// + /// 工艺装备编码 + /// + public string DeviceCode { get; set; } + /// + /// 工艺装备名称 + /// + public string DeviceName { get; set; } + /// + /// 生产厂家 + /// + public string Manufacturer { get; set; } + /// + /// 工艺装备型号 + /// + public string ModelNumber { get; set; } + /// + /// 工艺装备序列号 + /// + public string SerialNumber { get; set; } + /// + /// 工艺装备制造日期,格式(yyyy-MM-dd) + /// + public string ProductionDate { get; set; } + /// + /// 主要材质 + /// + public string Material { get; set; } + /// + /// 当前存放地点 + /// + public string CurrentLocation { get; set; } + /// + /// 工艺装备状态 + /// + public string DeviceStatus { get; set; } + /// + /// 穴腔数量 + /// + public decimal CavityCount { get; set; } + /// + /// 模具尺寸规格 + /// + public string MoldSize { get; set; } + /// + /// 设计寿命单位 + /// + public string DesignLifeUnits { get; set; } + /// + /// 设计寿命 + /// + public string DesignLifeValue { get; set; } + /// + /// 当前剩余寿命, + /// + public string CurrentUsageCount { get; set; } + /// + /// 模具大修次数 + /// + public decimal OverhaulCount { get; set; } + /// + /// 图纸编号描述 + /// + public string CoolingChannelLayout { get; set; } + /// + /// 检测精度 + /// + public string DetectionAccuracy { get; set; } + /// + /// 最近校准日期,格式(yyyy-MM-ddHH:mm:ss) + /// + public string CalibrationDate { get; set; } + /// + /// 校准到期天数 + /// + public string CalibrationDueDays { get; set; } + /// + /// 允许误差范围 + /// + public string ToleranceRange { get; set; } + /// + /// 磨损阈值 + /// + public string WearThreshold { get; set; } + /// + /// 检测范围 + /// + public string DetectionRange { get; set; } + /// + /// 检测单位 + /// + public string UnitType { get; set; } + } + +} diff --git a/API/TaskManager.Entity/Entity.cs b/API/TaskManager.Entity/Entity.cs index 198a9f9..4aecce3 100644 --- a/API/TaskManager.Entity/Entity.cs +++ b/API/TaskManager.Entity/Entity.cs @@ -756,20 +756,4 @@ namespace TaskManager.Entity public int Version { get; set; } } - - - - - - - - - - - - - - - - } diff --git a/API/TaskManager.EntityFramework/JobDbContext.cs b/API/TaskManager.EntityFramework/JobDbContext.cs index 61ad771..1e4e1b1 100644 --- a/API/TaskManager.EntityFramework/JobDbContext.cs +++ b/API/TaskManager.EntityFramework/JobDbContext.cs @@ -11,6 +11,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using TaskManager.Entity; +using TaskManager.Entity.Entitys; using Wood.Util; @@ -114,40 +115,40 @@ namespace TaskManager.EntityFramework /// public DbSet SUPPLIER_PRO_FLAW { get; set; } - /// - /// 环境业务数据 - /// - public DbSet SUPPLIER_PRO_ENVIRONMENT { get; set; } + ///// + ///// 环境业务数据 + ///// + //public DbSet SUPPLIER_PRO_ENVIRONMENT { get; set; } - /// - /// 设备OEE达成率 - /// - public DbSet SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE { get; set; } + ///// + ///// 设备OEE达成率 + ///// + //public DbSet SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE { get; set; } - /// - /// OEE时间明细 - /// - public DbSet SUPPLIER_PRO_OEE_TIME_DETAILS { get; set; } + ///// + ///// OEE时间明细 + ///// + //public DbSet SUPPLIER_PRO_OEE_TIME_DETAILS { get; set; } - /// - /// 物料主数据 - /// - public DbSet SUPPLIER_PRO_MATERIAL_DATA { get; set; } + ///// + ///// 物料主数据 + ///// + //public DbSet SUPPLIER_PRO_MATERIAL_DATA { get; set; } - /// - /// 附件类数据 - /// - public DbSet SUPPLIER_PRO_ATTACHMENT_DATA { get; set; } + ///// + ///// 附件类数据 + ///// + //public DbSet SUPPLIER_PRO_ATTACHMENT_DATA { get; set; } - /// - /// 工艺装备 - /// - public DbSet SUPPLIER_PRO_PROCESS_EQUIPMENT { get; set; } + ///// + ///// 工艺装备 + ///// + //public DbSet SUPPLIER_PRO_PROCESS_EQUIPMENT { get; set; } - /// - /// 工艺 - /// - public DbSet SUPPLIER_PRO_PROCESS { get; set; } + ///// + ///// 工艺 + ///// + //public DbSet SUPPLIER_PRO_PROCESS { get; set; } /// /// 整车月度生产计划-2 @@ -251,10 +252,7 @@ namespace TaskManager.EntityFramework // 其他配置... - - - - //工位一次合格率 + # region 工位一次合格率 modelBuilder.Entity(b => { b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD"); @@ -311,15 +309,454 @@ namespace TaskManager.EntityFramework b.HasKey(e => e.UId); }); + #endregion + #region 缺陷业务数据 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_FLAW"); + //供应商代码 + 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"); + //供应商代码 + 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"); + //供应商代码 + 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"); + //供应商代码 + 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"); + //供应商代码 + 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"); + //供应商代码 + 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"); + //供应商代码 + 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"); + //奇瑞零件号 + 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 + + } } } diff --git a/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.Designer.cs new file mode 100644 index 0000000..1d6ad7e --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.Designer.cs @@ -0,0 +1,2411 @@ +// +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("20250529005719_2025052901")] + partial class _2025052901 + { + /// + 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_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") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .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") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_FLAW", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.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") + .IsRequired() + .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_BOM", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_BOM"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_DATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Measures") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityMeet1") + .HasColumnType("int"); + + b.Property("QuantityMeet10") + .HasColumnType("int"); + + b.Property("QuantityMeet11") + .HasColumnType("int"); + + b.Property("QuantityMeet12") + .HasColumnType("int"); + + b.Property("QuantityMeet13") + .HasColumnType("int"); + + b.Property("QuantityMeet14") + .HasColumnType("int"); + + b.Property("QuantityMeet15") + .HasColumnType("int"); + + b.Property("QuantityMeet16") + .HasColumnType("int"); + + b.Property("QuantityMeet17") + .HasColumnType("int"); + + b.Property("QuantityMeet18") + .HasColumnType("int"); + + b.Property("QuantityMeet19") + .HasColumnType("int"); + + b.Property("QuantityMeet2") + .HasColumnType("int"); + + b.Property("QuantityMeet20") + .HasColumnType("int"); + + b.Property("QuantityMeet21") + .HasColumnType("int"); + + b.Property("QuantityMeet22") + .HasColumnType("int"); + + b.Property("QuantityMeet23") + .HasColumnType("int"); + + b.Property("QuantityMeet24") + .HasColumnType("int"); + + b.Property("QuantityMeet25") + .HasColumnType("int"); + + b.Property("QuantityMeet26") + .HasColumnType("int"); + + b.Property("QuantityMeet27") + .HasColumnType("int"); + + b.Property("QuantityMeet28") + .HasColumnType("int"); + + b.Property("QuantityMeet29") + .HasColumnType("int"); + + b.Property("QuantityMeet3") + .HasColumnType("int"); + + b.Property("QuantityMeet30") + .HasColumnType("int"); + + b.Property("QuantityMeet31") + .HasColumnType("int"); + + b.Property("QuantityMeet4") + .HasColumnType("int"); + + b.Property("QuantityMeet5") + .HasColumnType("int"); + + b.Property("QuantityMeet6") + .HasColumnType("int"); + + b.Property("QuantityMeet7") + .HasColumnType("int"); + + b.Property("QuantityMeet8") + .HasColumnType("int"); + + b.Property("QuantityMeet9") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("VentureType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_DATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_MMRP", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Measures") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityMeet1") + .HasColumnType("int"); + + b.Property("QuantityMeet10") + .HasColumnType("int"); + + b.Property("QuantityMeet11") + .HasColumnType("int"); + + b.Property("QuantityMeet12") + .HasColumnType("int"); + + b.Property("QuantityMeet2") + .HasColumnType("int"); + + b.Property("QuantityMeet3") + .HasColumnType("int"); + + b.Property("QuantityMeet4") + .HasColumnType("int"); + + b.Property("QuantityMeet5") + .HasColumnType("int"); + + b.Property("QuantityMeet6") + .HasColumnType("int"); + + b.Property("QuantityMeet7") + .HasColumnType("int"); + + b.Property("QuantityMeet8") + .HasColumnType("int"); + + b.Property("QuantityMeet9") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartMonth") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("VentureType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_MMRP"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_PO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Measures") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PurchaseOrder") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityMeet") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("VentureType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_PO"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataCreateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeliveryNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReceivingCrossings") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RoadReceiveTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RoadShippedTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialSrate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierReceiveTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_DEL_STATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_EMPLOYEE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_INFO"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityCurrent") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StockState") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_INV_DATA"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("IsUpdate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDemand1") + .HasColumnType("int"); + + b.Property("QuantityDemand10") + .HasColumnType("int"); + + b.Property("QuantityDemand11") + .HasColumnType("int"); + + b.Property("QuantityDemand12") + .HasColumnType("int"); + + b.Property("QuantityDemand13") + .HasColumnType("int"); + + b.Property("QuantityDemand14") + .HasColumnType("int"); + + b.Property("QuantityDemand15") + .HasColumnType("int"); + + b.Property("QuantityDemand16") + .HasColumnType("int"); + + b.Property("QuantityDemand17") + .HasColumnType("int"); + + b.Property("QuantityDemand18") + .HasColumnType("int"); + + b.Property("QuantityDemand19") + .HasColumnType("int"); + + b.Property("QuantityDemand2") + .HasColumnType("int"); + + b.Property("QuantityDemand20") + .HasColumnType("int"); + + b.Property("QuantityDemand21") + .HasColumnType("int"); + + b.Property("QuantityDemand22") + .HasColumnType("int"); + + b.Property("QuantityDemand23") + .HasColumnType("int"); + + b.Property("QuantityDemand24") + .HasColumnType("int"); + + b.Property("QuantityDemand25") + .HasColumnType("int"); + + b.Property("QuantityDemand26") + .HasColumnType("int"); + + b.Property("QuantityDemand27") + .HasColumnType("int"); + + b.Property("QuantityDemand28") + .HasColumnType("int"); + + b.Property("QuantityDemand29") + .HasColumnType("int"); + + b.Property("QuantityDemand3") + .HasColumnType("int"); + + b.Property("QuantityDemand30") + .HasColumnType("int"); + + b.Property("QuantityDemand31") + .HasColumnType("int"); + + b.Property("QuantityDemand4") + .HasColumnType("int"); + + b.Property("QuantityDemand5") + .HasColumnType("int"); + + b.Property("QuantityDemand6") + .HasColumnType("int"); + + b.Property("QuantityDemand7") + .HasColumnType("int"); + + b.Property("QuantityDemand8") + .HasColumnType("int"); + + b.Property("QuantityDemand9") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_MRP_DATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("IsUpdate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + 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("QuantityDemand2") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand3") + .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") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartMonth") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_MRP_MONTH"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("ConfirmTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreatQuantity") + .HasColumnType("int"); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateRequired") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DemandSrate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DemandType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnTimePercentage") + .HasColumnType("int"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("QuantityDemand") + .HasColumnType("int"); + + b.Property("QuantityInTransit") + .HasColumnType("int"); + + b.Property("QuantityReceive") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SummaryCreatQuantity") + .HasColumnType("int"); + + b.Property("SummaryQuantityDelivery") + .HasColumnType("int"); + + b.Property("SummaryQuantityInTransit") + .HasColumnType("int"); + + b.Property("SummaryQuantityReceive") + .HasColumnType("int"); + + b.Property("SummarySign") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_MRP_STATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Batch") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Country") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeliveryDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeliveryPlace") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ItemType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialUnit") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Note") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PurchaseOrder") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Purchaser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("QuantityDemand") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Supplier") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TradeTerms") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("VoucherDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PO"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_CPS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AssemblyMaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ModelCategory") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Models") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MotorMaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnLineDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnLineTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Plant") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SortDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SortTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_CSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_DATA"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Models") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnLineTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_HSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Assembly") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Models") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Omterior") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Pattern") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Plant") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Quantity1") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity2") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity3") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity4") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity5") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity6") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SalseDepartment") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartMonth") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_PLANING"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_SCHEDULING"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FinalOnLineTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("FinalWorkshop") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Models") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnLineTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_TSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DemandPickupTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Feedback") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Judge") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("LotNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PickUpCrossings") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PickUpLocation") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Plant") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReturnNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReturnReason") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReturnType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialSrate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_RETURN"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateReceived") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PurchasingGroup") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDemand") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ScheduleAgreement") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_SA_WEEK"); + }); + + 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() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("InventoryStatus") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionCycle") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityCurrent") + .HasColumnType("int"); + + b.Property("QuantityPlan") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SafetyStock") + .HasColumnType("int"); + + b.Property("SupplierBatch") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplieryxqDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_SINV_DATA"); + }); + + modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Api") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Corn") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAuto") + .HasColumnType("bit"); + + b.Property("Module") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TableName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TaskName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Url") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + 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") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Type") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("UId"); + + b.ToTable("TaskLogs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.cs b/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.cs new file mode 100644 index 0000000..9a09ca7 --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.cs @@ -0,0 +1,502 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace TaskManager.EntityFramework.Migrations +{ + /// + public partial class _2025052901 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_ATTACHMENT_DATA"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_ENVIRONMENT"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_MATERIAL_DATA"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_OEE_TIME_DETAILS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PROCESS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_FLAW", + type: "NVarchar(500)", + maxLength: 500, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AddColumn( + name: "CheryProductName", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheryProductNo", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheryProductSn", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ClassOfName", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DefectsCode", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DefectsDesc", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(255)", + maxLength: 255, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DefectsLevel", + table: "SUPPLIER_PRO_FLAW", + type: "CHAR(1)", + maxLength: 1, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DefectsName", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ManufactureNo", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "Numberofdefect", + table: "SUPPLIER_PRO_FLAW", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "PlantId", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlantName", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductBatchNo", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductionLineName", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "StationId", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "StationName", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "StatisticalTime", + table: "SUPPLIER_PRO_FLAW", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierCode", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierName", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductBatch", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductName", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductNo", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductSn", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkShift", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(10)", + maxLength: 10, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkshopId", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkshopName", + table: "SUPPLIER_PRO_FLAW", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "CheryProductName", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "CheryProductNo", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "CheryProductSn", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "ClassOfName", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "DefectsCode", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "DefectsDesc", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "DefectsLevel", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "DefectsName", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "ManufactureNo", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "Numberofdefect", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "PlantId", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "PlantName", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "ProductBatchNo", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "ProductionLineName", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "StationId", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "StationName", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "StatisticalTime", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "SupplierCode", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "SupplierName", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "VendorProductBatch", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "VendorProductName", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "VendorProductNo", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "VendorProductSn", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "WorkShift", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "WorkshopId", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropColumn( + name: "WorkshopName", + table: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_FLAW", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_ATTACHMENT_DATA", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + CreationTime = table.Column(type: "datetime2", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + WriteState = table.Column(type: "bit", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_ENVIRONMENT", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + CreationTime = table.Column(type: "datetime2", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + WriteState = table.Column(type: "bit", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_MATERIAL_DATA", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + CreationTime = table.Column(type: "datetime2", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + WriteState = table.Column(type: "bit", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + CreationTime = table.Column(type: "datetime2", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + WriteState = table.Column(type: "bit", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_OEE_TIME_DETAILS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + CreationTime = table.Column(type: "datetime2", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + WriteState = table.Column(type: "bit", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PROCESS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + CreationTime = table.Column(type: "datetime2", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + WriteState = table.Column(type: "bit", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PROCESS_EQUIPMENT", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + CreationTime = table.Column(type: "datetime2", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + WriteState = table.Column(type: "bit", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT", x => x.UId); + }); + } + } +} diff --git a/API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.Designer.cs new file mode 100644 index 0000000..352b9f3 --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.Designer.cs @@ -0,0 +1,2389 @@ +// +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("20250529013720_2025052902")] + partial class _2025052902 + { + /// + 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_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_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_BOM", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_BOM"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_DATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Measures") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityMeet1") + .HasColumnType("int"); + + b.Property("QuantityMeet10") + .HasColumnType("int"); + + b.Property("QuantityMeet11") + .HasColumnType("int"); + + b.Property("QuantityMeet12") + .HasColumnType("int"); + + b.Property("QuantityMeet13") + .HasColumnType("int"); + + b.Property("QuantityMeet14") + .HasColumnType("int"); + + b.Property("QuantityMeet15") + .HasColumnType("int"); + + b.Property("QuantityMeet16") + .HasColumnType("int"); + + b.Property("QuantityMeet17") + .HasColumnType("int"); + + b.Property("QuantityMeet18") + .HasColumnType("int"); + + b.Property("QuantityMeet19") + .HasColumnType("int"); + + b.Property("QuantityMeet2") + .HasColumnType("int"); + + b.Property("QuantityMeet20") + .HasColumnType("int"); + + b.Property("QuantityMeet21") + .HasColumnType("int"); + + b.Property("QuantityMeet22") + .HasColumnType("int"); + + b.Property("QuantityMeet23") + .HasColumnType("int"); + + b.Property("QuantityMeet24") + .HasColumnType("int"); + + b.Property("QuantityMeet25") + .HasColumnType("int"); + + b.Property("QuantityMeet26") + .HasColumnType("int"); + + b.Property("QuantityMeet27") + .HasColumnType("int"); + + b.Property("QuantityMeet28") + .HasColumnType("int"); + + b.Property("QuantityMeet29") + .HasColumnType("int"); + + b.Property("QuantityMeet3") + .HasColumnType("int"); + + b.Property("QuantityMeet30") + .HasColumnType("int"); + + b.Property("QuantityMeet31") + .HasColumnType("int"); + + b.Property("QuantityMeet4") + .HasColumnType("int"); + + b.Property("QuantityMeet5") + .HasColumnType("int"); + + b.Property("QuantityMeet6") + .HasColumnType("int"); + + b.Property("QuantityMeet7") + .HasColumnType("int"); + + b.Property("QuantityMeet8") + .HasColumnType("int"); + + b.Property("QuantityMeet9") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("StartDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("VentureType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_DATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_MMRP", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Measures") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityMeet1") + .HasColumnType("int"); + + b.Property("QuantityMeet10") + .HasColumnType("int"); + + b.Property("QuantityMeet11") + .HasColumnType("int"); + + b.Property("QuantityMeet12") + .HasColumnType("int"); + + b.Property("QuantityMeet2") + .HasColumnType("int"); + + b.Property("QuantityMeet3") + .HasColumnType("int"); + + b.Property("QuantityMeet4") + .HasColumnType("int"); + + b.Property("QuantityMeet5") + .HasColumnType("int"); + + b.Property("QuantityMeet6") + .HasColumnType("int"); + + b.Property("QuantityMeet7") + .HasColumnType("int"); + + b.Property("QuantityMeet8") + .HasColumnType("int"); + + b.Property("QuantityMeet9") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("StartMonth") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("VentureType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_MMRP"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_PO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Measures") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PurchaseOrder") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityMeet") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("VentureType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_PO"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataCreateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeliveryNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReceivingCrossings") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RoadReceiveTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RoadShippedTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialSrate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierReceiveTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_DEL_STATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_EMPLOYEE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_INFO"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityCurrent") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StockState") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_INV_DATA"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("IsUpdate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDemand1") + .HasColumnType("int"); + + b.Property("QuantityDemand10") + .HasColumnType("int"); + + b.Property("QuantityDemand11") + .HasColumnType("int"); + + b.Property("QuantityDemand12") + .HasColumnType("int"); + + b.Property("QuantityDemand13") + .HasColumnType("int"); + + b.Property("QuantityDemand14") + .HasColumnType("int"); + + b.Property("QuantityDemand15") + .HasColumnType("int"); + + b.Property("QuantityDemand16") + .HasColumnType("int"); + + b.Property("QuantityDemand17") + .HasColumnType("int"); + + b.Property("QuantityDemand18") + .HasColumnType("int"); + + b.Property("QuantityDemand19") + .HasColumnType("int"); + + b.Property("QuantityDemand2") + .HasColumnType("int"); + + b.Property("QuantityDemand20") + .HasColumnType("int"); + + b.Property("QuantityDemand21") + .HasColumnType("int"); + + b.Property("QuantityDemand22") + .HasColumnType("int"); + + b.Property("QuantityDemand23") + .HasColumnType("int"); + + b.Property("QuantityDemand24") + .HasColumnType("int"); + + b.Property("QuantityDemand25") + .HasColumnType("int"); + + b.Property("QuantityDemand26") + .HasColumnType("int"); + + b.Property("QuantityDemand27") + .HasColumnType("int"); + + b.Property("QuantityDemand28") + .HasColumnType("int"); + + b.Property("QuantityDemand29") + .HasColumnType("int"); + + b.Property("QuantityDemand3") + .HasColumnType("int"); + + b.Property("QuantityDemand30") + .HasColumnType("int"); + + b.Property("QuantityDemand31") + .HasColumnType("int"); + + b.Property("QuantityDemand4") + .HasColumnType("int"); + + b.Property("QuantityDemand5") + .HasColumnType("int"); + + b.Property("QuantityDemand6") + .HasColumnType("int"); + + b.Property("QuantityDemand7") + .HasColumnType("int"); + + b.Property("QuantityDemand8") + .HasColumnType("int"); + + b.Property("QuantityDemand9") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_MRP_DATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("IsUpdate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + 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("QuantityDemand2") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand3") + .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") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartMonth") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_MRP_MONTH"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("ConfirmTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreatQuantity") + .HasColumnType("int"); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateRequired") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DemandSrate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DemandType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnTimePercentage") + .HasColumnType("int"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("QuantityDemand") + .HasColumnType("int"); + + b.Property("QuantityInTransit") + .HasColumnType("int"); + + b.Property("QuantityReceive") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SummaryCreatQuantity") + .HasColumnType("int"); + + b.Property("SummaryQuantityDelivery") + .HasColumnType("int"); + + b.Property("SummaryQuantityInTransit") + .HasColumnType("int"); + + b.Property("SummaryQuantityReceive") + .HasColumnType("int"); + + b.Property("SummarySign") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_MRP_STATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Batch") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Country") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeliveryDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeliveryPlace") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ItemType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialUnit") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Note") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PurchaseOrder") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Purchaser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("QuantityDemand") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Supplier") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TradeTerms") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("VoucherDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PO"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_CPS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AssemblyMaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ModelCategory") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Models") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MotorMaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnLineDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnLineTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Plant") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SortDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SortTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_CSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_DATA"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Models") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnLineTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_HSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Assembly") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Models") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Omterior") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Pattern") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Plant") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Quantity1") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity2") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity3") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity4") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity5") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity6") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SalseDepartment") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartMonth") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_PLANING"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_SCHEDULING"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FinalOnLineTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("FinalWorkshop") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Models") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnLineTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_TSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DemandPickupTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Feedback") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Judge") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("LotNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PickUpCrossings") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PickUpLocation") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Plant") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReturnNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReturnReason") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReturnType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialSrate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_RETURN"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateReceived") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PurchasingGroup") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDemand") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ScheduleAgreement") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_SA_WEEK"); + }); + + 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() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("InventoryStatus") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionCycle") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityCurrent") + .HasColumnType("int"); + + b.Property("QuantityPlan") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SafetyStock") + .HasColumnType("int"); + + b.Property("SupplierBatch") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplieryxqDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_SINV_DATA"); + }); + + modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Api") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Corn") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAuto") + .HasColumnType("bit"); + + b.Property("Module") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TableName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TaskName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Url") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + 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") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Type") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("UId"); + + b.ToTable("TaskLogs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.cs b/API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.cs new file mode 100644 index 0000000..e6b8416 --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.cs @@ -0,0 +1,530 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace TaskManager.EntityFramework.Migrations +{ + /// + public partial class _2025052902 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_SINV_DATA", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_SCHEDULING", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_PRO_FLAW", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_FLAW", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_PRO_FLAW", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_DATA", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_CPS", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_INFO", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_EMPLOYEE", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_CON_PO", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_CON_DATE", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_BOM", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_SINV_DATA", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", + type: "NVarchar(500)", + maxLength: 500, + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_SCHEDULING", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_PRO_FLAW", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_FLAW", + type: "NVarchar(500)", + maxLength: 500, + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_PRO_FLAW", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_DATA", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_CPS", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_INFO", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_EMPLOYEE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_CON_PO", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_CON_DATE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_BOM", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + } + } +} diff --git a/API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.Designer.cs new file mode 100644 index 0000000..6f776fc --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.Designer.cs @@ -0,0 +1,3312 @@ +// +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("20250529020443_2025052903")] + partial class _2025052903 + { + /// + 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_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_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_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_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_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_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_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_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_BOM", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_BOM"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_DATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Measures") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityMeet1") + .HasColumnType("int"); + + b.Property("QuantityMeet10") + .HasColumnType("int"); + + b.Property("QuantityMeet11") + .HasColumnType("int"); + + b.Property("QuantityMeet12") + .HasColumnType("int"); + + b.Property("QuantityMeet13") + .HasColumnType("int"); + + b.Property("QuantityMeet14") + .HasColumnType("int"); + + b.Property("QuantityMeet15") + .HasColumnType("int"); + + b.Property("QuantityMeet16") + .HasColumnType("int"); + + b.Property("QuantityMeet17") + .HasColumnType("int"); + + b.Property("QuantityMeet18") + .HasColumnType("int"); + + b.Property("QuantityMeet19") + .HasColumnType("int"); + + b.Property("QuantityMeet2") + .HasColumnType("int"); + + b.Property("QuantityMeet20") + .HasColumnType("int"); + + b.Property("QuantityMeet21") + .HasColumnType("int"); + + b.Property("QuantityMeet22") + .HasColumnType("int"); + + b.Property("QuantityMeet23") + .HasColumnType("int"); + + b.Property("QuantityMeet24") + .HasColumnType("int"); + + b.Property("QuantityMeet25") + .HasColumnType("int"); + + b.Property("QuantityMeet26") + .HasColumnType("int"); + + b.Property("QuantityMeet27") + .HasColumnType("int"); + + b.Property("QuantityMeet28") + .HasColumnType("int"); + + b.Property("QuantityMeet29") + .HasColumnType("int"); + + b.Property("QuantityMeet3") + .HasColumnType("int"); + + b.Property("QuantityMeet30") + .HasColumnType("int"); + + b.Property("QuantityMeet31") + .HasColumnType("int"); + + b.Property("QuantityMeet4") + .HasColumnType("int"); + + b.Property("QuantityMeet5") + .HasColumnType("int"); + + b.Property("QuantityMeet6") + .HasColumnType("int"); + + b.Property("QuantityMeet7") + .HasColumnType("int"); + + b.Property("QuantityMeet8") + .HasColumnType("int"); + + b.Property("QuantityMeet9") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("StartDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("VentureType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_DATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_MMRP", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Measures") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityMeet1") + .HasColumnType("int"); + + b.Property("QuantityMeet10") + .HasColumnType("int"); + + b.Property("QuantityMeet11") + .HasColumnType("int"); + + b.Property("QuantityMeet12") + .HasColumnType("int"); + + b.Property("QuantityMeet2") + .HasColumnType("int"); + + b.Property("QuantityMeet3") + .HasColumnType("int"); + + b.Property("QuantityMeet4") + .HasColumnType("int"); + + b.Property("QuantityMeet5") + .HasColumnType("int"); + + b.Property("QuantityMeet6") + .HasColumnType("int"); + + b.Property("QuantityMeet7") + .HasColumnType("int"); + + b.Property("QuantityMeet8") + .HasColumnType("int"); + + b.Property("QuantityMeet9") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("StartMonth") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("VentureType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_MMRP"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_PO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Measures") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PurchaseOrder") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityMeet") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("VentureType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_PO"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataCreateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeliveryNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReceivingCrossings") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RoadReceiveTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RoadShippedTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialSrate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierReceiveTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_DEL_STATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_EMPLOYEE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_INFO"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityCurrent") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StockState") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_INV_DATA"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("IsUpdate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDemand1") + .HasColumnType("int"); + + b.Property("QuantityDemand10") + .HasColumnType("int"); + + b.Property("QuantityDemand11") + .HasColumnType("int"); + + b.Property("QuantityDemand12") + .HasColumnType("int"); + + b.Property("QuantityDemand13") + .HasColumnType("int"); + + b.Property("QuantityDemand14") + .HasColumnType("int"); + + b.Property("QuantityDemand15") + .HasColumnType("int"); + + b.Property("QuantityDemand16") + .HasColumnType("int"); + + b.Property("QuantityDemand17") + .HasColumnType("int"); + + b.Property("QuantityDemand18") + .HasColumnType("int"); + + b.Property("QuantityDemand19") + .HasColumnType("int"); + + b.Property("QuantityDemand2") + .HasColumnType("int"); + + b.Property("QuantityDemand20") + .HasColumnType("int"); + + b.Property("QuantityDemand21") + .HasColumnType("int"); + + b.Property("QuantityDemand22") + .HasColumnType("int"); + + b.Property("QuantityDemand23") + .HasColumnType("int"); + + b.Property("QuantityDemand24") + .HasColumnType("int"); + + b.Property("QuantityDemand25") + .HasColumnType("int"); + + b.Property("QuantityDemand26") + .HasColumnType("int"); + + b.Property("QuantityDemand27") + .HasColumnType("int"); + + b.Property("QuantityDemand28") + .HasColumnType("int"); + + b.Property("QuantityDemand29") + .HasColumnType("int"); + + b.Property("QuantityDemand3") + .HasColumnType("int"); + + b.Property("QuantityDemand30") + .HasColumnType("int"); + + b.Property("QuantityDemand31") + .HasColumnType("int"); + + b.Property("QuantityDemand4") + .HasColumnType("int"); + + b.Property("QuantityDemand5") + .HasColumnType("int"); + + b.Property("QuantityDemand6") + .HasColumnType("int"); + + b.Property("QuantityDemand7") + .HasColumnType("int"); + + b.Property("QuantityDemand8") + .HasColumnType("int"); + + b.Property("QuantityDemand9") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_MRP_DATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("IsUpdate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + 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("QuantityDemand2") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand3") + .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") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartMonth") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_MRP_MONTH"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("ConfirmTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreatQuantity") + .HasColumnType("int"); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateRequired") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DemandSrate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DemandType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnTimePercentage") + .HasColumnType("int"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("QuantityDemand") + .HasColumnType("int"); + + b.Property("QuantityInTransit") + .HasColumnType("int"); + + b.Property("QuantityReceive") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SummaryCreatQuantity") + .HasColumnType("int"); + + b.Property("SummaryQuantityDelivery") + .HasColumnType("int"); + + b.Property("SummaryQuantityInTransit") + .HasColumnType("int"); + + b.Property("SummaryQuantityReceive") + .HasColumnType("int"); + + b.Property("SummarySign") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_MRP_STATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Batch") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Country") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeliveryDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("DeliveryPlace") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ItemType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialUnit") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Note") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PurchaseOrder") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Purchaser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("QuantityDemand") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Supplier") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TradeTerms") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("VoucherDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PO"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_CPS"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AssemblyMaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ModelCategory") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Models") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MotorMaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnLineDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnLineTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Plant") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SortDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SortTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_CSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_DATA"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Models") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnLineTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_HSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Assembly") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Models") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Omterior") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Pattern") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Plant") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Quantity1") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity2") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity3") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity4") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity5") + .HasColumnType("decimal(18,2)"); + + b.Property("Quantity6") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SalseDepartment") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartMonth") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_PLANING"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_SCHEDULING"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FinalOnLineTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("FinalWorkshop") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Models") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("OnLineTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionLineName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_TSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DemandPickupTime") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Feedback") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Judge") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("LotNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PickUpCrossings") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PickUpLocation") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Plant") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReturnNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReturnReason") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReturnType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialSrate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_RETURN"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateReceived") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PurchasingGroup") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityDemand") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ScheduleAgreement") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_SA_WEEK"); + }); + + 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() + .HasColumnType("nvarchar(max)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("InventoryStatus") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialType") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ProductionCycle") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("QuantityCurrent") + .HasColumnType("int"); + + b.Property("QuantityPlan") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SafetyStock") + .HasColumnType("int"); + + b.Property("SupplierBatch") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierCode") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplierName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupplieryxqDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_SINV_DATA"); + }); + + modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Api") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Corn") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAuto") + .HasColumnType("bit"); + + b.Property("Module") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TableName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TaskName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Url") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + 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") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Type") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("UId"); + + b.ToTable("TaskLogs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.cs b/API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.cs new file mode 100644 index 0000000..3a0fe87 --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.cs @@ -0,0 +1,303 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace TaskManager.EntityFramework.Migrations +{ + /// + public partial class _2025052903 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_ATTACHMENT_DATA", + 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", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_ENVIRONMENT", + 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", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_MATERIAL_DATA", + 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", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", + 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", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_OEE_TIME_DETAILS", + 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", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PROCESS", + 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", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PROCESS_EQUIPMENT", + 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", x => x.UId); + }); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_ATTACHMENT_DATA"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_ENVIRONMENT"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_MATERIAL_DATA"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_OEE_TIME_DETAILS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PROCESS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); + } + } +} diff --git a/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs b/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs index 97fd747..5657508 100644 --- a/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs +++ b/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs @@ -22,6 +22,1096 @@ namespace TaskManager.EntityFramework.Migrations SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + 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_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_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_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_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_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_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_STATION_FIRST_PASSYIELD", b => { b.Property("UId") @@ -98,7 +1188,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasMaxLength(500) .HasColumnType("NVarchar"); @@ -182,7 +1271,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("TaskId") @@ -324,7 +1412,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("nvarchar(max)"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("StartDate") @@ -425,7 +1512,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("nvarchar(max)"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("StartMonth") @@ -485,7 +1571,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("SerialNumber") @@ -570,7 +1655,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("nvarchar(max)"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -633,7 +1717,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("TaskId") @@ -662,7 +1745,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("TaskId") @@ -727,7 +1809,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -905,7 +1986,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("nvarchar(max)"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -1027,7 +2107,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("nvarchar(max)"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -1137,7 +2216,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -1268,7 +2346,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -1313,35 +2390,6 @@ namespace TaskManager.EntityFramework.Migrations b.ToTable("SUPPLIER_PO"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA"); - }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => { b.Property("UId") @@ -1357,7 +2405,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("TaskId") @@ -1443,7 +2490,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -1498,7 +2544,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("TaskId") @@ -1512,35 +2557,6 @@ namespace TaskManager.EntityFramework.Migrations b.ToTable("SUPPLIER_PRO_DATA"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT"); - }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => { b.Property("UId") @@ -1556,7 +2572,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("TaskId") @@ -1570,35 +2585,6 @@ namespace TaskManager.EntityFramework.Migrations b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW"); - }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => { b.Property("UId") @@ -1655,7 +2641,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -1687,35 +2672,6 @@ namespace TaskManager.EntityFramework.Migrations b.ToTable("SUPPLIER_PRO_HSCHEDUL"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA"); - }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => { b.Property("UId") @@ -1731,7 +2687,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("TaskId") @@ -1745,64 +2700,6 @@ namespace TaskManager.EntityFramework.Migrations b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS"); - }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => { b.Property("UId") @@ -1877,7 +2774,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("nvarchar(max)"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -1917,64 +2813,6 @@ namespace TaskManager.EntityFramework.Migrations b.ToTable("SUPPLIER_PRO_PLANING"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT"); - }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => { b.Property("UId") @@ -1990,7 +2828,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("TaskId") @@ -2064,7 +2901,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -2163,7 +2999,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -2262,7 +3097,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -2346,7 +3180,6 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("bit"); b.Property("Remark") - .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate")