diff --git a/API/TaskManager.EntityFramework/JobDbContext.cs b/API/TaskManager.EntityFramework/JobDbContext.cs index 3af16ee..784d904 100644 --- a/API/TaskManager.EntityFramework/JobDbContext.cs +++ b/API/TaskManager.EntityFramework/JobDbContext.cs @@ -1,4 +1,5 @@  +using Microsoft.AspNetCore.Authorization; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.ChangeTracking; using Microsoft.EntityFrameworkCore.Infrastructure; @@ -18,6 +19,7 @@ using Wood.Util; namespace TaskManager.EntityFramework { + public class JobDbContext:DbContext { diff --git a/API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.Designer.cs new file mode 100644 index 0000000..304248c --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.Designer.cs @@ -0,0 +1,4650 @@ +// +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("20250529065559_z20250529")] + partial class z20250529 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "8.0.0") + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("VARCHAR"); + + b.Property("Measures") + .HasMaxLength(255) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("QuantityMeet1") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet10") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet11") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet12") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet13") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet14") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet15") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet16") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet17") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet18") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet19") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet2") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet20") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet21") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet22") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet23") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet24") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet25") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet26") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet27") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet28") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet29") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet3") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet30") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet31") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet4") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet5") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet6") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet7") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet8") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet9") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("ReleaseEdition") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StartDate") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("VARCHAR"); + + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_DATE", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("VARCHAR"); + + b.Property("Measures") + .HasMaxLength(255) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("QuantityMeet1") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet10") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet11") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet12") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet2") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet3") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet4") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet5") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet6") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet7") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet8") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet9") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("ReleaseEdition") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StartMonth") + .IsRequired() + .HasMaxLength(7) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("VARCHAR"); + + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_MMRP", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FeedbackResults") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("Measures") + .HasMaxLength(255) + .HasColumnType("VARCHAR"); + + b.Property("PurchaseOrder") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("VARCHAR"); + + b.Property("QuantityMeet") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("SerialNumber") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("VARCHAR"); + + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_CON_PO", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DeviceId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FileName") + .IsRequired() + .HasMaxLength(300) + .HasColumnType("VARCHAR"); + + b.Property("FileUrl") + .IsRequired() + .HasMaxLength(1000) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductSn") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_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.SUPPLIER_BOM", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("BomCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("BomName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("BomVersion") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("MaterialUnit") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("SubMaterialCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubMaterialName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubMaterialQuota") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubMaterialType") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("SubMaterialUnit") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductType") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_BOM", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataCreateTime") + .HasColumnType("datetime2"); + + b.Property("DeliveryNumber") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReceivingCrossings") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RoadReceiveTime") + .HasColumnType("datetime2"); + + b.Property("RoadShippedTime") + .HasColumnType("datetime2"); + + b.Property("SerialNumber") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialSrate") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SupplierReceiveTime") + .HasColumnType("datetime2"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + 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("CheckInTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CheckOutTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("HaveQuantity") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("OperatorId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OperatorName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PositionId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PositionName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("QualificationLevel") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_EMPLOYEE", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("KeyStation") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StationOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_INFO", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityCurrent") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StockState") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + 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() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + 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() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDemand1") + .HasColumnType("int"); + + b.Property("QuantityDemand10") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand11") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand12") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand13") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand14") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand15") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand16") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand17") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand18") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand19") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand2") + .HasColumnType("int"); + + b.Property("QuantityDemand20") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand21") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand22") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand23") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand24") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand25") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand26") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand27") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand28") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand29") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand3") + .HasColumnType("int"); + + b.Property("QuantityDemand30") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand31") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand4") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand5") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand6") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand7") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand8") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand9") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartDate") + .HasColumnType("datetime2"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + 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() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "createByUser"); + + b.Property("CreateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "createTime"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "isDelete"); + + b.Property("IsUpdate") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialCode"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plantId"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plantName"); + + b.Property("QuantityDemand1") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); + + b.Property("QuantityDemand10") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); + + b.Property("QuantityDemand11") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); + + b.Property("QuantityDemand12") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); + + b.Property("QuantityDemand2") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); + + b.Property("QuantityDemand3") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); + + b.Property("QuantityDemand4") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); + + b.Property("QuantityDemand5") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); + + b.Property("QuantityDemand6") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); + + b.Property("QuantityDemand7") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); + + b.Property("QuantityDemand8") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); + + b.Property("QuantityDemand9") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartMonth") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "startMonth"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); + + b.Property("UpdateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "updateTime"); + + b.Property("Version") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "version"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.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") + .HasColumnType("datetime2"); + + b.Property("CreatQuantity") + .HasColumnType("decimal(18,2)"); + + b.Property("CreateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateRequired") + .HasColumnType("datetime2"); + + b.Property("DemandSrate") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("DemandType") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnTimePercentage") + .HasColumnType("decimal(18,2)"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityInTransit") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityReceive") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SummaryCreatQuantity") + .HasColumnType("decimal(18,2)"); + + b.Property("SummaryQuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("SummaryQuantityInTransit") + .HasColumnType("decimal(18,2)"); + + b.Property("SummaryQuantityReceive") + .HasColumnType("decimal(18,2)"); + + b.Property("SummarySign") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + 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() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Country") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeliveryDate") + .HasColumnType("datetime2"); + + b.Property("DeliveryPlace") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ItemType") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialUnit") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Note") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PurchaseOrder") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Purchaser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SerialNumber") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Supplier") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TradeTerms") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("VoucherDate") + .HasColumnType("datetime2"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PO"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CarrierCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Cc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("Characteristic") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheckMode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("CheckResult") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CollectTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DecimalValue") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); + + b.Property("DetectionMode") + .HasMaxLength(20) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("FttQty") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("GatherSpot") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("IntputQty") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("LowerLimit") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Parameter") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("Sc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("Spc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("StandardValue") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UnitCn") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("UnitEn") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("UpperLimit") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); + + b.Property("VendorFieldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldDesc") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductBatch") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_CPS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AssemblyMaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + 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() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ModelCategory") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Models") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MotorMaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnLineDate") + .HasColumnType("datetime2"); + + b.Property("OnLineTime") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); + + b.Property("Plant") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SortDate") + .HasColumnType("datetime2"); + + b.Property("SortTime") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + 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("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildHardwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildPackageInfo") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildSoftwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildSource") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CollectTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("CHAR"); + + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FinalQualityStatus") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("InstrumentQualityStatus") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ManualQualityStatus") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("MaterialInputTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("MaterialOutputTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ParentHardwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ParentSoftwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SubBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubProdName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubProdNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubProdNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubProdSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierName") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorFieldName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldNum") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductBatch") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_DATA", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AcceptableNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DefectiveNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OncePassRateRealValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("OncePassRateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkOrderNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WorkshopName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + 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() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Models") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnLineTime") + .HasColumnType("datetime2"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionType") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + 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() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + 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("CheckNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheckResult") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("CHAR"); + + b.Property("CheckTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ComponentCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ComponentName") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeadLine") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("FeatureLower") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FeatureName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("FeatureUnit") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("FeatureUpper") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FeatureValue") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("StandardValue") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubBatchNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubBatchSn") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierAddress") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierSubCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierSubName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorFieldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldDesc") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Assembly") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "assembly"); + + b.Property("CreateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "createByUser"); + + b.Property("CreateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "createTime"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)") + .HasAnnotation("Relational:JsonPropertyName", "id"); + + b.Property("IsDelete") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "isDelete"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialCode"); + + b.Property("Models") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "models"); + + b.Property("Omterior") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Pattern") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "pattern"); + + b.Property("Plant") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plant"); + + b.Property("Quantity1") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity1"); + + b.Property("Quantity2") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity2"); + + b.Property("Quantity3") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity3"); + + b.Property("Quantity4") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity4"); + + b.Property("Quantity5") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity5"); + + b.Property("Quantity6") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity6"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); + + 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() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "startMonth"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "type"); + + b.Property("UpdateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); + + b.Property("UpdateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "updateTime"); + + b.Property("Version") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "version"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.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("ActualBeginTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ActualEndTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ManufactureInputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ManufactureNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureOutputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlanBeginTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("PlanEndTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("PlanNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlanStatus") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_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_PRO_TSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FinalOnLineTime") + .HasColumnType("datetime2"); + + b.Property("FinalWorkshop") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Models") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnLineTime") + .HasColumnType("datetime2"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + 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() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + 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() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DemandPickupTime") + .HasColumnType("datetime2"); + + b.Property("Feedback") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Judge") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("LotNumber") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PickUpCrossings") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PickUpLocation") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Plant") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ReturnNumber") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReturnReason") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReturnType") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialNumber") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialSrate") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + 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() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasMaxLength(50) + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateReceived") + .HasMaxLength(50) + .HasColumnType("datetime2"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PurchasingGroup") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ScheduleAgreement") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialNumber") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasMaxLength(50) + .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() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("InventoryStatus") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("VARCHAR"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("MaterialType") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("VARCHAR"); + + b.Property("ProductionCycle") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("QuantityCurrent") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityPlan") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SafetyStock") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SupplierBatch") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplieryxqDate") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_SINV_DATA", (string)null); + }); + + 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("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TaskName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Type") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("TaskLogs"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.cs b/API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.cs new file mode 100644 index 0000000..9124ebc --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.cs @@ -0,0 +1,8729 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace TaskManager.EntityFramework.Migrations +{ + /// + public partial class z20250529 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "ReadState", + table: "TaskLogs", + type: "bit", + nullable: false, + defaultValue: false); + + migrationBuilder.AddColumn( + name: "TaskId", + table: "TaskLogs", + type: "uniqueidentifier", + nullable: false, + defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); + + migrationBuilder.AddColumn( + name: "WriteState", + table: "TaskLogs", + type: "bit", + nullable: false, + defaultValue: false); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_SINV_DATA", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "SupplieryxqDate", + table: "SUPPLIER_SINV_DATA", + type: "CHAR(19)", + maxLength: 19, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SupplierName", + table: "SUPPLIER_SINV_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SupplierCode", + table: "SUPPLIER_SINV_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SupplierBatch", + table: "SUPPLIER_SINV_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SafetyStock", + table: "SUPPLIER_SINV_DATA", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_SINV_DATA", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_SINV_DATA", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "QuantityPlan", + table: "SUPPLIER_SINV_DATA", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityCurrent", + table: "SUPPLIER_SINV_DATA", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "ProductionCycle", + table: "SUPPLIER_SINV_DATA", + type: "VARCHAR(10)", + maxLength: 10, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialType", + table: "SUPPLIER_SINV_DATA", + type: "VARCHAR(20)", + maxLength: 20, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_SINV_DATA", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_SINV_DATA", + type: "VARCHAR(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "InventoryStatus", + table: "SUPPLIER_SINV_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "DataUpdateTime", + table: "SUPPLIER_SINV_DATA", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_SA_WEEK", + type: "datetime2", + maxLength: 50, + nullable: true, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SerialNumber", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ScheduleAgreement", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + 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: "QuantityDemand", + table: "SUPPLIER_SA_WEEK", + type: "decimal(18,2)", + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "PurchasingGroup", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "DateReceived", + table: "SUPPLIER_SA_WEEK", + type: "datetime2", + maxLength: 50, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_SA_WEEK", + type: "datetime2", + maxLength: 50, + nullable: true, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_RETURN", + type: "datetime2", + nullable: true, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SerialSrate", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SerialNumber", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ReturnType", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ReturnReason", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ReturnNumber", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityDelivery", + table: "SUPPLIER_RETURN", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "Plant", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "PickUpLocation", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "PickUpCrossings", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "LotNumber", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Judge", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Feedback", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "DemandPickupTime", + table: "SUPPLIER_RETURN", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_RETURN", + type: "datetime2", + nullable: true, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_RETURN", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Vin", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + 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: "ProductionLineName", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "OnLineTime", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Models", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "FinalWorkshop", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "FinalOnLineTime", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + 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: "WriteState", + table: "SUPPLIER_PRO_SCHEDULING", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_SCHEDULING", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_PRO_SCHEDULING", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AddColumn( + name: "ActualBeginTime", + table: "SUPPLIER_PRO_SCHEDULING", + type: "CHAR(19)", + maxLength: 19, + nullable: true); + + migrationBuilder.AddColumn( + name: "ActualEndTime", + table: "SUPPLIER_PRO_SCHEDULING", + type: "CHAR(19)", + maxLength: 19, + nullable: true); + + migrationBuilder.AddColumn( + name: "CheryProductName", + table: "SUPPLIER_PRO_SCHEDULING", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheryProductNo", + table: "SUPPLIER_PRO_SCHEDULING", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ManufactureInputNum", + table: "SUPPLIER_PRO_SCHEDULING", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true); + + migrationBuilder.AddColumn( + name: "ManufactureNo", + table: "SUPPLIER_PRO_SCHEDULING", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ManufactureNum", + table: "SUPPLIER_PRO_SCHEDULING", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "ManufactureOutputNum", + table: "SUPPLIER_PRO_SCHEDULING", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "PlanBeginTime", + table: "SUPPLIER_PRO_SCHEDULING", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlanEndTime", + table: "SUPPLIER_PRO_SCHEDULING", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlanNo", + table: "SUPPLIER_PRO_SCHEDULING", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlanStatus", + table: "SUPPLIER_PRO_SCHEDULING", + type: "CHAR(1)", + maxLength: 1, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlantId", + table: "SUPPLIER_PRO_SCHEDULING", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlantName", + table: "SUPPLIER_PRO_SCHEDULING", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductBatchNo", + table: "SUPPLIER_PRO_SCHEDULING", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierCode", + table: "SUPPLIER_PRO_SCHEDULING", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierName", + table: "SUPPLIER_PRO_SCHEDULING", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductName", + table: "SUPPLIER_PRO_SCHEDULING", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductNo", + table: "SUPPLIER_PRO_SCHEDULING", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_PRO_PLANING", + type: "datetime2", + nullable: false, + defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Type", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "StartMonth", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + 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: "ReleaseEdition", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Plant", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Pattern", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Models", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_PRO_PLANING", + type: "datetime2", + nullable: false, + defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Assembly", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AddColumn( + name: "CheckNo", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheckResult", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "CHAR(2)", + maxLength: 2, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheckTime", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ComponentCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(32)", + maxLength: 32, + nullable: true); + + migrationBuilder.AddColumn( + name: "ComponentName", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(32)", + maxLength: 32, + nullable: true); + + migrationBuilder.AddColumn( + name: "DeadLine", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(10)", + maxLength: 10, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DeviceCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DeviceName", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "EmpCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(16)", + maxLength: 16, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "EmpName", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "FeatureLower", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "FeatureName", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "FeatureUnit", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "FeatureUpper", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "FeatureValue", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "LimitUpdateTime", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "CHAR(19)", + maxLength: 19, + nullable: true); + + migrationBuilder.AddColumn( + name: "SamplingRate", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true); + + migrationBuilder.AddColumn( + name: "StandardValue", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SubBatchNo", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SubBatchNum", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "SubBatchSn", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(64)", + maxLength: 64, + nullable: true); + + migrationBuilder.AddColumn( + name: "SubSupplierAddress", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SubSupplierCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SubSupplierName", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierName", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierSubCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierSubName", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorFieldCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorFieldDesc", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "VARCHAR(64)", + maxLength: 64, + nullable: true); + + migrationBuilder.AlterColumn( + name: "Vin", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + 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: "ProductionType", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ProductionLineName", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "OnLineTime", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Models", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AddColumn( + name: "AcceptableNumber", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "CheryProductName", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheryProductNo", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DateTime", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DefectiveNumber", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "ManufactureNo", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "OncePassRateRealValue", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "OncePassRateTagValue", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "PlantId", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlantName", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductBatchNo", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "ProductionLineName", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "StatisticalTime", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierCode", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierName", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductName", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductNo", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkOrderNumber", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "WorkShift", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "VARCHAR(10)", + maxLength: 10, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkshopId", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "WorkshopName", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_PRO_DATA", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_DATA", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_PRO_DATA", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AddColumn( + name: "CheryProductName", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheryProductNo", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheryProductSn", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ChildHardwareRevision", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: true); + + migrationBuilder.AddColumn( + name: "ChildPackageInfo", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: true); + + migrationBuilder.AddColumn( + name: "ChildSoftwareRevision", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: true); + + migrationBuilder.AddColumn( + name: "ChildSource", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CollectTime", + table: "SUPPLIER_PRO_DATA", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DateTime", + table: "SUPPLIER_PRO_DATA", + type: "CHAR(16)", + maxLength: 16, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "EmpCode", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "EmpName", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "FinalQualityStatus", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(8)", + maxLength: 8, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "InstrumentQualityStatus", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(8)", + maxLength: 8, + nullable: true); + + migrationBuilder.AddColumn( + name: "ManualQualityStatus", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(8)", + maxLength: 8, + nullable: true); + + migrationBuilder.AddColumn( + name: "ManufactureNo", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "MaterialInputTime", + table: "SUPPLIER_PRO_DATA", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "MaterialOutputTime", + table: "SUPPLIER_PRO_DATA", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ParentHardwareRevision", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: true); + + migrationBuilder.AddColumn( + name: "ParentSoftwareRevision", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: true); + + migrationBuilder.AddColumn( + name: "PlantId", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlantName", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductBatchNo", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: true); + + migrationBuilder.AddColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductionLineName", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "StationId", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "StationName", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SubBatchNo", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SubProdName", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SubProdNo", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SubProdNum", + table: "SUPPLIER_PRO_DATA", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "SubProdSn", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SubSupplierCode", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: true); + + migrationBuilder.AddColumn( + name: "SubSupplierName", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(100)", + maxLength: 100, + nullable: true); + + migrationBuilder.AddColumn( + name: "SupplierCode", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierName", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorFieldName", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorFieldNum", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductBatch", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductName", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductNo", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductSn", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkShift", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(10)", + maxLength: 10, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkshopId", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkshopName", + table: "SUPPLIER_PRO_DATA", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AlterColumn( + name: "Vin", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "datetime2", + nullable: true, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SortTime", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(8)", + maxLength: 8, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SortDate", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + 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: "ProductionLineName", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Plant", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "OnLineTime", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(8)", + maxLength: 8, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "OnLineDate", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MotorMaterialCode", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Models", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ModelCategory", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "datetime2", + nullable: true, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "AssemblyMaterialCode", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_PRO_CPS", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_CPS", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_PRO_CPS", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AddColumn( + name: "CarrierCode", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: true); + + migrationBuilder.AddColumn( + name: "Cc", + table: "SUPPLIER_PRO_CPS", + type: "CHAR(1)", + maxLength: 1, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "Characteristic", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheckMode", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(10)", + maxLength: 10, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheckResult", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(8)", + maxLength: 8, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheryProductName", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheryProductNo", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheryProductSn", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CollectTime", + table: "SUPPLIER_PRO_CPS", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DecimalValue", + table: "SUPPLIER_PRO_CPS", + type: "DECIMAL(26,15)", + precision: 26, + scale: 15, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "DetectionMode", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(20)", + maxLength: 20, + nullable: true); + + migrationBuilder.AddColumn( + name: "DeviceCode", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DeviceName", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "EmpCode", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "EmpName", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(10)", + maxLength: 10, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "FttQty", + table: "SUPPLIER_PRO_CPS", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "GatherSpot", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: true); + + migrationBuilder.AddColumn( + name: "IntputQty", + table: "SUPPLIER_PRO_CPS", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "LimitUpdateTime", + table: "SUPPLIER_PRO_CPS", + type: "CHAR(19)", + maxLength: 19, + nullable: true); + + migrationBuilder.AddColumn( + name: "LowerLimit", + table: "SUPPLIER_PRO_CPS", + type: "DECIMAL(26,15)", + precision: 26, + scale: 15, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "ManufactureNo", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "Parameter", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlantId", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlantName", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductBatchNo", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductionLineName", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SamplingRate", + table: "SUPPLIER_PRO_CPS", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true); + + migrationBuilder.AddColumn( + name: "Sc", + table: "SUPPLIER_PRO_CPS", + type: "CHAR(1)", + maxLength: 1, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "Spc", + table: "SUPPLIER_PRO_CPS", + type: "CHAR(1)", + maxLength: 1, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "StandardValue", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "StationId", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "StationName", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierCode", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierName", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "UnitCn", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(100)", + maxLength: 100, + nullable: true); + + migrationBuilder.AddColumn( + name: "UnitEn", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "UpperLimit", + table: "SUPPLIER_PRO_CPS", + type: "DECIMAL(26,15)", + precision: 26, + scale: 15, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "VendorFieldCode", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorFieldDesc", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(100)", + maxLength: 100, + nullable: true); + + migrationBuilder.AddColumn( + name: "VendorFieldName", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductBatch", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductName", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductNo", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductSn", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkShift", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(10)", + maxLength: 10, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkshopId", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkshopName", + table: "SUPPLIER_PRO_CPS", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AlterColumn( + name: "VoucherDate", + table: "SUPPLIER_PO", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_PO", + type: "datetime2", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "TradeTerms", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Supplier", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SerialNumber", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityDemand", + table: "SUPPLIER_PO", + type: "decimal(18,2)", + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "Purchaser", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "PurchaseOrder", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "PlantName", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Note", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialUnit", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ItemType", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "DeliveryPlace", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "DeliveryDate", + table: "SUPPLIER_PO", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_PO", + type: "datetime2", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Country", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Batch", + table: "SUPPLIER_PO", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_MRP_STATE", + type: "datetime2", + nullable: true, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SummarySign", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SummaryQuantityReceive", + table: "SUPPLIER_MRP_STATE", + type: "decimal(18,2)", + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "SummaryQuantityInTransit", + table: "SUPPLIER_MRP_STATE", + type: "decimal(18,2)", + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "SummaryQuantityDelivery", + table: "SUPPLIER_MRP_STATE", + type: "decimal(18,2)", + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "SummaryCreatQuantity", + table: "SUPPLIER_MRP_STATE", + type: "decimal(18,2)", + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + 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: "QuantityReceive", + table: "SUPPLIER_MRP_STATE", + type: "decimal(18,2)", + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityInTransit", + table: "SUPPLIER_MRP_STATE", + type: "decimal(18,2)", + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand", + table: "SUPPLIER_MRP_STATE", + type: "decimal(18,2)", + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDelivery", + table: "SUPPLIER_MRP_STATE", + type: "decimal(18,2)", + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "PlantName", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "OnTimePercentage", + table: "SUPPLIER_MRP_STATE", + type: "decimal(18,2)", + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "DemandType", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "DemandSrate", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "DateRequired", + table: "SUPPLIER_MRP_STATE", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_MRP_STATE", + type: "datetime2", + nullable: true, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreatQuantity", + table: "SUPPLIER_MRP_STATE", + type: "decimal(18,2)", + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "ConfirmTime", + table: "SUPPLIER_MRP_STATE", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "StartMonth", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + 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: "ReleaseEdition", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand12", + table: "SUPPLIER_MRP_MONTH", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "PlantName", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "IsUpdate", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "IsDelete", + table: "SUPPLIER_MRP_MONTH", + type: "int", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_MRP_DATE", + type: "datetime2", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "StartDate", + table: "SUPPLIER_MRP_DATE", + type: "datetime2", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + 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: "ReleaseEdition", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand9", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand8", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand7", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand6", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand5", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand4", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand31", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand30", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand29", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand28", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand27", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand26", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand25", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand24", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand23", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand22", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand21", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand20", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand19", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand18", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand17", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand16", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand15", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand14", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand13", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand12", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand11", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand10", + table: "SUPPLIER_MRP_DATE", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "PlantName", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_MRP_DATE", + type: "datetime2", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_INV_DATA", + type: "datetime2", + nullable: true, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "StockState", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + 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: "QuantityCurrent", + table: "SUPPLIER_INV_DATA", + type: "decimal(18,2)", + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "PlantName", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "DataUpdateTime", + table: "SUPPLIER_INV_DATA", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_INV_DATA", + type: "datetime2", + nullable: true, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_INFO", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_INFO", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_INFO", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AddColumn( + name: "CheryProductName", + table: "SUPPLIER_INFO", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheryProductNo", + table: "SUPPLIER_INFO", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DataUpdateTime", + table: "SUPPLIER_INFO", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "KeyStation", + table: "SUPPLIER_INFO", + type: "CHAR(1)", + maxLength: 1, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlantId", + table: "SUPPLIER_INFO", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlantName", + table: "SUPPLIER_INFO", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductionLineId", + table: "SUPPLIER_INFO", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductionLineName", + table: "SUPPLIER_INFO", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductionLineOrder", + table: "SUPPLIER_INFO", + type: "DECIMAL(16,0)", + precision: 16, + scale: 0, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "StationId", + table: "SUPPLIER_INFO", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "StationName", + table: "SUPPLIER_INFO", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "StationOrder", + table: "SUPPLIER_INFO", + type: "DECIMAL(16,0)", + precision: 16, + scale: 0, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "SupplierCode", + table: "SUPPLIER_INFO", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierName", + table: "SUPPLIER_INFO", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductName", + table: "SUPPLIER_INFO", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductNo", + table: "SUPPLIER_INFO", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkshopId", + table: "SUPPLIER_INFO", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkshopName", + table: "SUPPLIER_INFO", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_EMPLOYEE", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_EMPLOYEE", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_EMPLOYEE", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AddColumn( + name: "CheckInTime", + table: "SUPPLIER_EMPLOYEE", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheckOutTime", + table: "SUPPLIER_EMPLOYEE", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DataUpdateTime", + table: "SUPPLIER_EMPLOYEE", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "HaveQuantity", + table: "SUPPLIER_EMPLOYEE", + type: "CHAR(1)", + maxLength: 1, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "OperatorId", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "OperatorName", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlantId", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PlantName", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PositionId", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "PositionName", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductionLineId", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "ProductionLineName", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "QualificationLevel", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(16)", + maxLength: 16, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "StationId", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "StationName", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierCode", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierName", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkshopId", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "WorkshopName", + table: "SUPPLIER_EMPLOYEE", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SupplierReceiveTime", + table: "SUPPLIER_DEL_STATE", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SerialSrate", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SerialNumber", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "RoadShippedTime", + table: "SUPPLIER_DEL_STATE", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "RoadReceiveTime", + table: "SUPPLIER_DEL_STATE", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + 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: "ReceivingCrossings", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "DeliveryNumber", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "DataCreateTime", + table: "SUPPLIER_DEL_STATE", + type: "datetime2", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_CON_PO", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "VentureType", + table: "SUPPLIER_CON_PO", + type: "VARCHAR(50)", + maxLength: 50, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "VentureSpecific", + table: "SUPPLIER_CON_PO", + type: "VARCHAR(255)", + maxLength: 255, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SupplierCode", + table: "SUPPLIER_CON_PO", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SerialNumber", + table: "SUPPLIER_CON_PO", + type: "VARCHAR(10)", + maxLength: 10, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_CON_PO", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_CON_PO", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet", + table: "SUPPLIER_CON_PO", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "PurchaseOrder", + table: "SUPPLIER_CON_PO", + type: "VARCHAR(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Measures", + table: "SUPPLIER_CON_PO", + type: "VARCHAR(255)", + maxLength: 255, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "FeedbackResults", + table: "SUPPLIER_CON_PO", + type: "VARCHAR(10)", + maxLength: 10, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_CON_MMRP", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "VentureType", + table: "SUPPLIER_CON_MMRP", + type: "VARCHAR(50)", + maxLength: 50, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "VentureSpecific", + table: "SUPPLIER_CON_MMRP", + type: "VARCHAR(255)", + maxLength: 255, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SupplierCode", + table: "SUPPLIER_CON_MMRP", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "StartMonth", + table: "SUPPLIER_CON_MMRP", + type: "CHAR(7)", + maxLength: 7, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_CON_MMRP", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReleaseEdition", + table: "SUPPLIER_CON_MMRP", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_CON_MMRP", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet9", + table: "SUPPLIER_CON_MMRP", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet8", + table: "SUPPLIER_CON_MMRP", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet7", + table: "SUPPLIER_CON_MMRP", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet6", + table: "SUPPLIER_CON_MMRP", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet5", + table: "SUPPLIER_CON_MMRP", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet4", + table: "SUPPLIER_CON_MMRP", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet3", + table: "SUPPLIER_CON_MMRP", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet2", + table: "SUPPLIER_CON_MMRP", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet12", + table: "SUPPLIER_CON_MMRP", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet11", + table: "SUPPLIER_CON_MMRP", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet10", + table: "SUPPLIER_CON_MMRP", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet1", + table: "SUPPLIER_CON_MMRP", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_CON_MMRP", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Measures", + table: "SUPPLIER_CON_MMRP", + type: "VARCHAR(255)", + maxLength: 255, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_CON_MMRP", + type: "VARCHAR(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "FeedbackResults", + table: "SUPPLIER_CON_MMRP", + type: "VARCHAR(10)", + maxLength: 10, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_CON_DATE", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "VentureType", + table: "SUPPLIER_CON_DATE", + type: "VARCHAR(50)", + maxLength: 50, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "VentureSpecific", + table: "SUPPLIER_CON_DATE", + type: "VARCHAR(255)", + maxLength: 255, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "SupplierCode", + table: "SUPPLIER_CON_DATE", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "StartDate", + table: "SUPPLIER_CON_DATE", + type: "CHAR(10)", + maxLength: 10, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_CON_DATE", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReleaseEdition", + table: "SUPPLIER_CON_DATE", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_CON_DATE", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet9", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet8", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet7", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet6", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet5", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet4", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet31", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet30", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet3", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet29", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet28", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet27", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet26", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet25", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet24", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet23", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet22", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet21", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet20", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet2", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet19", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet18", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet17", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet16", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet15", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet14", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet13", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: true, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet12", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet11", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet10", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "QuantityMeet1", + table: "SUPPLIER_CON_DATE", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_CON_DATE", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "Measures", + table: "SUPPLIER_CON_DATE", + type: "VARCHAR(255)", + maxLength: 255, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_CON_DATE", + type: "VARCHAR(50)", + maxLength: 50, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "FeedbackResults", + table: "SUPPLIER_CON_DATE", + type: "VARCHAR(10)", + maxLength: 10, + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_BOM", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_BOM", + type: "NVarchar(500)", + maxLength: 500, + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_BOM", + type: "bit", + nullable: false, + defaultValue: false, + oldClrType: typeof(bool), + oldType: "bit"); + + migrationBuilder.AddColumn( + name: "BomCode", + table: "SUPPLIER_BOM", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "BomName", + table: "SUPPLIER_BOM", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "BomVersion", + table: "SUPPLIER_BOM", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheryProductName", + table: "SUPPLIER_BOM", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "CheryProductNo", + table: "SUPPLIER_BOM", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "DataUpdateTime", + table: "SUPPLIER_BOM", + type: "CHAR(19)", + maxLength: 19, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "MaterialUnit", + table: "SUPPLIER_BOM", + type: "VARCHAR(8)", + maxLength: 8, + nullable: true); + + migrationBuilder.AddColumn( + name: "SubMaterialCode", + table: "SUPPLIER_BOM", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SubMaterialName", + table: "SUPPLIER_BOM", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SubMaterialQuota", + table: "SUPPLIER_BOM", + type: "DECIMAL(16,5)", + precision: 16, + scale: 5, + nullable: false, + defaultValue: 0m); + + migrationBuilder.AddColumn( + name: "SubMaterialType", + table: "SUPPLIER_BOM", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + + migrationBuilder.AddColumn( + name: "SubMaterialUnit", + table: "SUPPLIER_BOM", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierCode", + table: "SUPPLIER_BOM", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "SupplierName", + table: "SUPPLIER_BOM", + type: "VARCHAR(64)", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductName", + table: "SUPPLIER_BOM", + type: "VARCHAR(100)", + maxLength: 100, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductNo", + table: "SUPPLIER_BOM", + type: "VARCHAR(32)", + maxLength: 32, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "VendorProductType", + table: "SUPPLIER_BOM", + type: "nvarchar(50)", + maxLength: 50, + nullable: true); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "ReadState", + table: "TaskLogs"); + + migrationBuilder.DropColumn( + name: "TaskId", + table: "TaskLogs"); + + migrationBuilder.DropColumn( + name: "WriteState", + table: "TaskLogs"); + + migrationBuilder.DropColumn( + name: "ActualBeginTime", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "ActualEndTime", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "CheryProductName", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "CheryProductNo", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "ManufactureInputNum", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "ManufactureNo", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "ManufactureNum", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "ManufactureOutputNum", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "PlanBeginTime", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "PlanEndTime", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "PlanNo", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "PlanStatus", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "PlantId", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "PlantName", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "ProductBatchNo", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "SupplierCode", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "SupplierName", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "VendorProductName", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "VendorProductNo", + table: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropColumn( + name: "CheckNo", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "CheckResult", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "CheckTime", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "ComponentCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "ComponentName", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "DeadLine", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "DeviceCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "DeviceName", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "EmpCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "EmpName", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "FeatureLower", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "FeatureName", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "FeatureUnit", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "FeatureUpper", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "FeatureValue", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "LimitUpdateTime", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "SamplingRate", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "StandardValue", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "SubBatchNo", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "SubBatchNum", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "SubBatchSn", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "SubSupplierAddress", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "SubSupplierCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "SubSupplierName", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "SupplierCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "SupplierName", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "SupplierSubCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "SupplierSubName", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "VendorFieldCode", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "VendorFieldDesc", + table: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropColumn( + name: "AcceptableNumber", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "CheryProductName", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "CheryProductNo", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "DateTime", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "DefectiveNumber", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "ManufactureNo", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "OncePassRateRealValue", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "OncePassRateTagValue", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "PlantId", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "PlantName", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "ProductBatchNo", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "ProductionLineName", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "StatisticalTime", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "SupplierCode", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "SupplierName", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "VendorProductName", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "VendorProductNo", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "WorkOrderNumber", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "WorkShift", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "WorkshopId", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "WorkshopName", + table: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropColumn( + name: "CheryProductName", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "CheryProductNo", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "CheryProductSn", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "ChildHardwareRevision", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "ChildPackageInfo", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "ChildSoftwareRevision", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "ChildSource", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "CollectTime", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "DateTime", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "EmpCode", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "EmpName", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "FinalQualityStatus", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "InstrumentQualityStatus", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "ManualQualityStatus", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "ManufactureNo", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "MaterialInputTime", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "MaterialOutputTime", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "ParentHardwareRevision", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "ParentSoftwareRevision", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "PlantId", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "PlantName", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "ProductBatchNo", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "ProductionLineName", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "StationId", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "StationName", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "SubBatchNo", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "SubProdName", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "SubProdNo", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "SubProdNum", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "SubProdSn", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "SubSupplierCode", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "SubSupplierName", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "SupplierCode", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "SupplierName", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "VendorFieldName", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "VendorFieldNum", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "VendorProductBatch", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "VendorProductName", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "VendorProductNo", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "VendorProductSn", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "WorkShift", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "WorkshopId", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "WorkshopName", + table: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropColumn( + name: "CarrierCode", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "Cc", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "Characteristic", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "CheckMode", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "CheckResult", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "CheryProductName", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "CheryProductNo", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "CheryProductSn", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "CollectTime", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "DecimalValue", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "DetectionMode", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "DeviceCode", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "DeviceName", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "EmpCode", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "EmpName", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "FttQty", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "GatherSpot", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "IntputQty", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "LimitUpdateTime", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "LowerLimit", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "ManufactureNo", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "Parameter", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "PlantId", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "PlantName", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "ProductBatchNo", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "ProductionLineName", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "SamplingRate", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "Sc", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "Spc", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "StandardValue", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "StationId", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "StationName", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "SupplierCode", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "SupplierName", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "UnitCn", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "UnitEn", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "UpperLimit", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "VendorFieldCode", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "VendorFieldDesc", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "VendorFieldName", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "VendorProductBatch", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "VendorProductName", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "VendorProductNo", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "VendorProductSn", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "WorkShift", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "WorkshopId", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "WorkshopName", + table: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropColumn( + name: "CheryProductName", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "CheryProductNo", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "DataUpdateTime", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "KeyStation", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "PlantId", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "PlantName", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "ProductionLineId", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "ProductionLineName", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "ProductionLineOrder", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "StationId", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "StationName", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "StationOrder", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "SupplierCode", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "SupplierName", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "VendorProductName", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "VendorProductNo", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "WorkshopId", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "WorkshopName", + table: "SUPPLIER_INFO"); + + migrationBuilder.DropColumn( + name: "CheckInTime", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "CheckOutTime", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "DataUpdateTime", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "HaveQuantity", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "OperatorId", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "OperatorName", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "PlantId", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "PlantName", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "PositionId", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "PositionName", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "ProductionLineId", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "ProductionLineName", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "QualificationLevel", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "StationId", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "StationName", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "SupplierCode", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "SupplierName", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "WorkshopId", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "WorkshopName", + table: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropColumn( + name: "BomCode", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "BomName", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "BomVersion", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "CheryProductName", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "CheryProductNo", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "DataUpdateTime", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "MaterialUnit", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "SubMaterialCode", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "SubMaterialName", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "SubMaterialQuota", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "SubMaterialType", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "SubMaterialUnit", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "SupplierCode", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "SupplierName", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "VendorProductName", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "VendorProductNo", + table: "SUPPLIER_BOM"); + + migrationBuilder.DropColumn( + name: "VendorProductType", + table: "SUPPLIER_BOM"); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_SINV_DATA", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "SupplieryxqDate", + table: "SUPPLIER_SINV_DATA", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "CHAR(19)", + oldMaxLength: 19, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "SupplierName", + table: "SUPPLIER_SINV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(64)", + oldMaxLength: 64); + + migrationBuilder.AlterColumn( + name: "SupplierCode", + table: "SUPPLIER_SINV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(32)", + oldMaxLength: 32); + + migrationBuilder.AlterColumn( + name: "SupplierBatch", + table: "SUPPLIER_SINV_DATA", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "VARCHAR(64)", + oldMaxLength: 64, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "SafetyStock", + table: "SUPPLIER_SINV_DATA", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_SINV_DATA", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_SINV_DATA", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "QuantityPlan", + table: "SUPPLIER_SINV_DATA", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityCurrent", + table: "SUPPLIER_SINV_DATA", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "ProductionCycle", + table: "SUPPLIER_SINV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(10)", + oldMaxLength: 10); + + migrationBuilder.AlterColumn( + name: "MaterialType", + table: "SUPPLIER_SINV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(20)", + oldMaxLength: 20); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_SINV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(100)", + oldMaxLength: 100); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_SINV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "InventoryStatus", + table: "SUPPLIER_SINV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(32)", + oldMaxLength: 32); + + migrationBuilder.AlterColumn( + name: "DataUpdateTime", + table: "SUPPLIER_SINV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "CHAR(19)", + oldMaxLength: 19); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_SA_WEEK", + type: "datetime2", + nullable: false, + defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldMaxLength: 50, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "SerialNumber", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "ScheduleAgreement", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand", + table: "SUPPLIER_SA_WEEK", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "PurchasingGroup", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "DateReceived", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldMaxLength: 50, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_SA_WEEK", + type: "datetime2", + nullable: false, + defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldMaxLength: 50, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_SA_WEEK", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_RETURN", + type: "datetime2", + nullable: false, + defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "SerialSrate", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "SerialNumber", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "ReturnType", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "ReturnReason", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "ReturnNumber", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "QuantityDelivery", + table: "SUPPLIER_RETURN", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "Plant", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "PickUpLocation", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "PickUpCrossings", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "LotNumber", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Judge", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Feedback", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "DemandPickupTime", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_RETURN", + type: "datetime2", + nullable: false, + defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_RETURN", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Vin", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ProductionLineName", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "OnLineTime", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Models", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "FinalWorkshop", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "FinalOnLineTime", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_PRO_TSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + 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: "WriteState", + table: "SUPPLIER_PRO_SCHEDULING", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_SCHEDULING", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_PRO_SCHEDULING", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_PRO_PLANING", + type: "datetime2", + nullable: true, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Type", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "StartMonth", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ReleaseEdition", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Plant", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Pattern", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Models", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_PRO_PLANING", + type: "datetime2", + nullable: true, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Assembly", + table: "SUPPLIER_PRO_PLANING", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "Vin", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ProductionType", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "ProductionLineName", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "OnLineTime", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Models", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_PRO_HSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_PRO_DATA", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_DATA", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_PRO_DATA", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "Vin", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "datetime2", + nullable: false, + defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "SortTime", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(8)", + oldMaxLength: 8); + + migrationBuilder.AlterColumn( + name: "SortDate", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ProductionLineName", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "ProductionLineId", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Plant", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "OnLineTime", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(8)", + oldMaxLength: 8); + + migrationBuilder.AlterColumn( + name: "OnLineDate", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "MotorMaterialCode", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Models", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "ModelCategory", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "datetime2", + nullable: false, + defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "AssemblyMaterialCode", + table: "SUPPLIER_PRO_CSCHEDUL", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_PRO_CPS", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PRO_CPS", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_PRO_CPS", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "VoucherDate", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "TradeTerms", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Supplier", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "SerialNumber", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand", + table: "SUPPLIER_PO", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Purchaser", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "PurchaseOrder", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "PlantName", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Note", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialUnit", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "ItemType", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "DeliveryPlace", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "DeliveryDate", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Country", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Batch", + table: "SUPPLIER_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_MRP_STATE", + type: "datetime2", + nullable: false, + defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "SummarySign", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "SummaryQuantityReceive", + table: "SUPPLIER_MRP_STATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "SummaryQuantityInTransit", + table: "SUPPLIER_MRP_STATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "SummaryQuantityDelivery", + table: "SUPPLIER_MRP_STATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "SummaryCreatQuantity", + table: "SUPPLIER_MRP_STATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "QuantityReceive", + table: "SUPPLIER_MRP_STATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityInTransit", + table: "SUPPLIER_MRP_STATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityDemand", + table: "SUPPLIER_MRP_STATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityDelivery", + table: "SUPPLIER_MRP_STATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "PlantName", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "OnTimePercentage", + table: "SUPPLIER_MRP_STATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "DemandType", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "DemandSrate", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "DateRequired", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_MRP_STATE", + type: "datetime2", + nullable: false, + defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "CreatQuantity", + table: "SUPPLIER_MRP_STATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ConfirmTime", + table: "SUPPLIER_MRP_STATE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "StartMonth", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ReleaseEdition", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "QuantityDemand12", + table: "SUPPLIER_MRP_MONTH", + type: "decimal(18,2)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "PlantName", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "IsUpdate", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "IsDelete", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(int), + oldType: "int"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_MRP_MONTH", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "StartDate", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ReleaseEdition", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "QuantityDemand9", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand8", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand7", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand6", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand5", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand4", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand31", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand30", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand29", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand28", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand27", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand26", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand25", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand24", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand23", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand22", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand21", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand20", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand19", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand18", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand17", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand16", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand15", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand14", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand13", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand12", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand11", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "QuantityDemand10", + table: "SUPPLIER_MRP_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)"); + + migrationBuilder.AlterColumn( + name: "PlantName", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(DateTime), + oldType: "datetime2"); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_MRP_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "UpdateTime", + table: "SUPPLIER_INV_DATA", + type: "datetime2", + nullable: false, + defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "StockState", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "QuantityCurrent", + table: "SUPPLIER_INV_DATA", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "decimal(18,2)", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "PlantName", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "DataUpdateTime", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "CreateTime", + table: "SUPPLIER_INV_DATA", + type: "datetime2", + nullable: false, + defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_INV_DATA", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_INFO", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_INFO", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_INFO", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_EMPLOYEE", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_EMPLOYEE", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_EMPLOYEE", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "UpdateByUser", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "SupplierReceiveTime", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "SerialSrate", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "SerialNumber", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "RoadShippedTime", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "RoadReceiveTime", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)"); + + migrationBuilder.AlterColumn( + name: "ReceivingCrossings", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialDescription", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "DeliveryNumber", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "DataCreateTime", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(DateTime), + oldType: "datetime2", + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "CreateByUser", + table: "SUPPLIER_DEL_STATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "nvarchar(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_CON_PO", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "VentureType", + table: "SUPPLIER_CON_PO", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "VARCHAR(50)", + oldMaxLength: 50, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "VentureSpecific", + table: "SUPPLIER_CON_PO", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "VARCHAR(255)", + oldMaxLength: 255, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "SupplierCode", + table: "SUPPLIER_CON_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(32)", + oldMaxLength: 32); + + migrationBuilder.AlterColumn( + name: "SerialNumber", + table: "SUPPLIER_CON_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(10)", + oldMaxLength: 10); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_CON_PO", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_CON_PO", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "QuantityMeet", + table: "SUPPLIER_CON_PO", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "PurchaseOrder", + table: "SUPPLIER_CON_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "Measures", + table: "SUPPLIER_CON_PO", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "VARCHAR(255)", + oldMaxLength: 255, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "FeedbackResults", + table: "SUPPLIER_CON_PO", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(10)", + oldMaxLength: 10); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_CON_MMRP", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "VentureType", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "VARCHAR(50)", + oldMaxLength: 50, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "VentureSpecific", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "VARCHAR(255)", + oldMaxLength: 255, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "SupplierCode", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(32)", + oldMaxLength: 32); + + migrationBuilder.AlterColumn( + name: "StartMonth", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "CHAR(7)", + oldMaxLength: 7); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReleaseEdition", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(32)", + oldMaxLength: 32); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_CON_MMRP", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "QuantityMeet9", + table: "SUPPLIER_CON_MMRP", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet8", + table: "SUPPLIER_CON_MMRP", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet7", + table: "SUPPLIER_CON_MMRP", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet6", + table: "SUPPLIER_CON_MMRP", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet5", + table: "SUPPLIER_CON_MMRP", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet4", + table: "SUPPLIER_CON_MMRP", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet3", + table: "SUPPLIER_CON_MMRP", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet2", + table: "SUPPLIER_CON_MMRP", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet12", + table: "SUPPLIER_CON_MMRP", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet11", + table: "SUPPLIER_CON_MMRP", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet10", + table: "SUPPLIER_CON_MMRP", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet1", + table: "SUPPLIER_CON_MMRP", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(64)", + oldMaxLength: 64); + + migrationBuilder.AlterColumn( + name: "Measures", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "VARCHAR(255)", + oldMaxLength: 255, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "FeedbackResults", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(10)", + oldMaxLength: 10); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_CON_DATE", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "VentureType", + table: "SUPPLIER_CON_DATE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "VARCHAR(50)", + oldMaxLength: 50, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "VentureSpecific", + table: "SUPPLIER_CON_DATE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "VARCHAR(255)", + oldMaxLength: 255, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "SupplierCode", + table: "SUPPLIER_CON_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(32)", + oldMaxLength: 32); + + migrationBuilder.AlterColumn( + name: "StartDate", + table: "SUPPLIER_CON_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "CHAR(10)", + oldMaxLength: 10); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_CON_DATE", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReleaseEdition", + table: "SUPPLIER_CON_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(32)", + oldMaxLength: 32); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_CON_DATE", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "QuantityMeet9", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet8", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet7", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet6", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet5", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet4", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet31", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet30", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet3", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet29", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet28", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet27", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet26", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet25", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet24", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet23", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet22", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet21", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet20", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet2", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet19", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet18", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet17", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet16", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet15", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet14", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet13", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + defaultValue: 0, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "QuantityMeet12", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet11", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet10", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "QuantityMeet1", + table: "SUPPLIER_CON_DATE", + type: "int", + nullable: false, + oldClrType: typeof(decimal), + oldType: "DECIMAL(16,5)", + oldPrecision: 16, + oldScale: 5); + + migrationBuilder.AlterColumn( + name: "PlantId", + table: "SUPPLIER_CON_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(64)", + oldMaxLength: 64); + + migrationBuilder.AlterColumn( + name: "Measures", + table: "SUPPLIER_CON_DATE", + type: "nvarchar(max)", + nullable: false, + defaultValue: "", + oldClrType: typeof(string), + oldType: "VARCHAR(255)", + oldMaxLength: 255, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "MaterialCode", + table: "SUPPLIER_CON_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(50)", + oldMaxLength: 50); + + migrationBuilder.AlterColumn( + name: "FeedbackResults", + table: "SUPPLIER_CON_DATE", + type: "nvarchar(max)", + nullable: false, + oldClrType: typeof(string), + oldType: "VARCHAR(10)", + oldMaxLength: 10); + + migrationBuilder.AlterColumn( + name: "WriteState", + table: "SUPPLIER_BOM", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + + migrationBuilder.AlterColumn( + name: "Remark", + table: "SUPPLIER_BOM", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "NVarchar(500)", + oldMaxLength: 500, + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ReadState", + table: "SUPPLIER_BOM", + type: "bit", + nullable: false, + oldClrType: typeof(bool), + oldType: "bit", + oldDefaultValue: false); + } + } +} diff --git a/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs b/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs index 5657508..6d97a8d 100644 --- a/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs +++ b/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs @@ -22,7 +22,7 @@ namespace TaskManager.EntityFramework.Migrations SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -30,216 +30,185 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") + b.Property("FeedbackResults") .IsRequired() - .HasMaxLength(300) + .HasMaxLength(10) .HasColumnType("VARCHAR"); - b.Property("FileUrl") + b.Property("MaterialCode") .IsRequired() - .HasMaxLength(1000) + .HasMaxLength(50) .HasColumnType("VARCHAR"); - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) + b.Property("Measures") + .HasMaxLength(255) .HasColumnType("VARCHAR"); - b.Property("ProductionLineName") + b.Property("PlantId") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); + b.Property("QuantityMeet1") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); + b.Property("QuantityMeet10") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet11") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet12") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet13") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet14") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("QuantityMeet15") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet16") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet17") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet18") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet19") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); + b.Property("QuantityMeet2") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.HasKey("UId"); + b.Property("QuantityMeet20") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); + b.Property("QuantityMeet21") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); + b.Property("QuantityMeet22") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("QuantityMeet23") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet24") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + b.Property("QuantityMeet25") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("CreationTime") - .HasColumnType("datetime2"); + b.Property("QuantityMeet26") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet27") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet28") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet29") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet3") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("LowerLimit") + b.Property("QuantityMeet30") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); - b.Property("NumValue") + b.Property("QuantityMeet31") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet4") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet5") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet6") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet7") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet8") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet9") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); b.Property("ReadState") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false); + b.Property("ReleaseEdition") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + b.Property("Remark") .HasMaxLength(500) .HasColumnType("NVarchar"); - b.Property("SupplierCode") + b.Property("StartDate") .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + .HasMaxLength(10) + .HasColumnType("CHAR"); - b.Property("SupplierName") + b.Property("SupplierCode") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) + b.Property("VentureSpecific") + .HasMaxLength(255) .HasColumnType("VARCHAR"); - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) + b.Property("VentureType") + .HasMaxLength(50) .HasColumnType("VARCHAR"); b.Property("WriteState") @@ -249,10 +218,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); + b.ToTable("SUPPLIER_CON_DATE", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -260,105 +229,93 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + b.Property("CreationTime") + .HasColumnType("datetime2"); - b.Property("CheryProductNo") + b.Property("FeedbackResults") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(10) .HasColumnType("VARCHAR"); - b.Property("CheryProductSn") + b.Property("MaterialCode") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(50) .HasColumnType("VARCHAR"); - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) + b.Property("Measures") + .HasMaxLength(255) .HasColumnType("VARCHAR"); - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") + b.Property("PlantId") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet1") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); + b.Property("QuantityMeet10") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet11") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet12") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("Numberofdefect") + b.Property("QuantityMeet2") .HasPrecision(16, 5) .HasColumnType("DECIMAL"); - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet3") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet4") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet5") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet6") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet7") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet8") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityMeet9") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); b.Property("ReadState") .ValueGeneratedOnAdd() .HasColumnType("bit") .HasDefaultValue(false); - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") + b.Property("ReleaseEdition") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("StatisticalTime") + b.Property("StartMonth") .IsRequired() - .HasMaxLength(19) + .HasMaxLength(7) .HasColumnType("CHAR"); b.Property("SupplierCode") @@ -366,47 +323,15 @@ namespace TaskManager.EntityFramework.Migrations .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) + b.Property("VentureSpecific") + .HasMaxLength(255) .HasColumnType("VARCHAR"); - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) + b.Property("VentureType") + .HasMaxLength(50) .HasColumnType("VARCHAR"); b.Property("WriteState") @@ -416,10 +341,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); + b.ToTable("SUPPLIER_CON_MMRP", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -427,63 +352,26 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DateTime") - .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") + b.Property("FeedbackResults") .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) + .HasMaxLength(10) .HasColumnType("VARCHAR"); - b.Property("PlantId") - .HasMaxLength(32) + b.Property("Measures") + .HasMaxLength(255) .HasColumnType("VARCHAR"); - b.Property("PlantName") - .HasMaxLength(64) + b.Property("PurchaseOrder") + .IsRequired() + .HasMaxLength(50) .HasColumnType("VARCHAR"); - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); + b.Property("QuantityMeet") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); b.Property("ReadState") .ValueGeneratedOnAdd() @@ -494,40 +382,25 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); - b.Property("SupplierCode") + b.Property("SerialNumber") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(10) .HasColumnType("VARCHAR"); - b.Property("SupplierName") + b.Property("SupplierCode") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .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) + b.Property("VentureSpecific") + .HasMaxLength(255) .HasColumnType("VARCHAR"); - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) + b.Property("VentureType") + .HasMaxLength(50) .HasColumnType("VARCHAR"); b.Property("WriteState") @@ -537,10 +410,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); + b.ToTable("SUPPLIER_CON_PO", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -567,32 +440,22 @@ namespace TaskManager.EntityFramework.Migrations .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") + b.Property("DeviceName") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("PlantName") + b.Property("FileName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(300) .HasColumnType("VARCHAR"); - b.Property("ProductBatchNo") + b.Property("FileUrl") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(1000) .HasColumnType("VARCHAR"); b.Property("ProductionLineId") @@ -605,14 +468,6 @@ namespace TaskManager.EntityFramework.Migrations .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") @@ -629,14 +484,9 @@ namespace TaskManager.EntityFramework.Migrations b.Property("StationName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) @@ -650,6 +500,11 @@ namespace TaskManager.EntityFramework.Migrations b.Property("TaskId") .HasColumnType("uniqueidentifier"); + b.Property("Type") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + b.Property("VendorProductName") .IsRequired() .HasMaxLength(64) @@ -660,19 +515,8 @@ namespace TaskManager.EntityFramework.Migrations .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) + b.Property("VendorProductSn") + .HasMaxLength(100) .HasColumnType("VARCHAR"); b.Property("WriteState") @@ -682,10 +526,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); + b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -693,82 +537,75 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") + b.Property("ChineseUnit") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") + b.Property("CollectTime") .IsRequired() .HasMaxLength(19) .HasColumnType("CHAR"); - b.Property("PlantId") - .IsRequired() + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataCollectionPoint") .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("PlantName") + b.Property("EnvIndicatorName") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("ProductionLineId") + b.Property("EquipmentCode") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") + b.Property("EquipmentName") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); + b.Property("LowerLimit") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + b.Property("NumValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("StationId") + b.Property("PlantId") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("StationName") + b.Property("PlantName") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("SubType") + b.Property("ProductionLineId") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("SubTypeName") + b.Property("ProductionLineName") .IsRequired() - .HasMaxLength(32) + .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) @@ -776,16 +613,15 @@ namespace TaskManager.EntityFramework.Migrations b.Property("SupplierName") .IsRequired() - .HasMaxLength(32) + .HasMaxLength(64) .HasColumnType("VARCHAR"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("UpperLimit") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); b.Property("WorkshopId") .IsRequired() @@ -793,8 +629,9 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("VARCHAR"); b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("WriteState") .ValueGeneratedOnAdd() @@ -803,10 +640,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); + b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -816,50 +653,80 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CheryProductName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(100) .HasColumnType("VARCHAR"); b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductSn") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); + b.Property("ClassOfName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DeviceCode") + b.Property("DefectsCode") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("MaxProcessingCapacity") + b.Property("DefectsDesc") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(255) .HasColumnType("VARCHAR"); - b.Property("MoldCode") + b.Property("DefectsLevel") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("DefectsName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ManufactureNo") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("MoldName") + b.Property("Numberofdefect") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("ProcessCode") + b.Property("PlantName") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("ProcessName") + b.Property("ProductBatchNo") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("ReadState") .ValueGeneratedOnAdd() @@ -870,18 +737,24 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("RhythmUnit") + b.Property("StationName") .IsRequired() - .HasMaxLength(16) + .HasMaxLength(64) .HasColumnType("VARCHAR"); + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + b.Property("SupplierCode") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); b.Property("SupplierName") @@ -892,32 +765,37 @@ namespace TaskManager.EntityFramework.Migrations b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("TechCode") + b.Property("VendorProductBatch") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("TechName") + b.Property("VendorProductName") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(100) .HasColumnType("VARCHAR"); - b.Property("TechVersion") + b.Property("VendorProductNo") .IsRequired() - .HasMaxLength(16) + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("ValidPeriod") + b.Property("VendorProductSn") .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("VendorProductName") + b.Property("WorkShift") .IsRequired() - .HasMaxLength(64) + .HasMaxLength(10) .HasColumnType("VARCHAR"); - b.Property("VendorProductNo") + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") .IsRequired() .HasMaxLength(64) .HasColumnType("VARCHAR"); @@ -929,10 +807,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); + b.ToTable("SUPPLIER_PRO_FLAW", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -940,20 +818,6 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - b.Property("CheryProductName") .IsRequired() .HasMaxLength(64) @@ -964,91 +828,53 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); + b.Property("DateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) + b.Property("Launched") + .HasMaxLength(6) .HasColumnType("VARCHAR"); - b.Property("DesignLifeUnits") - .IsRequired() + b.Property("MpnCode") .HasMaxLength(16) .HasColumnType("VARCHAR"); - b.Property("DesignLifeValue") - .IsRequired() + b.Property("MpnName") .HasMaxLength(16) .HasColumnType("VARCHAR"); - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") + b.Property("OemHardwareRevision") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("DeviceCode") - .IsRequired() + b.Property("OemModel") .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() + b.Property("OemProjectName") .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("Material") - .IsRequired() + b.Property("OemSoftwareRevision") .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) + b.Property("PlantId") + .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("MoldSize") - .IsRequired() + b.Property("PlantName") .HasMaxLength(64) .HasColumnType("VARCHAR"); - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() + b.Property("ProcurementType") .HasMaxLength(16) - .HasColumnType("CHAR"); + .HasColumnType("VARCHAR"); b.Property("ReadState") .ValueGeneratedOnAdd() @@ -1059,11 +885,6 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(500) .HasColumnType("NVarchar"); - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - b.Property("SupplierCode") .IsRequired() .HasMaxLength(32) @@ -1077,13 +898,16 @@ namespace TaskManager.EntityFramework.Migrations b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); + b.Property("Type") + .HasPrecision(1) + .HasColumnType("DECIMAL"); - b.Property("UnitType") + b.Property("ValidDays") .IsRequired() + .HasMaxLength(12) + .HasColumnType("CHAR"); + + b.Property("VendorHardwareRevision") .HasMaxLength(32) .HasColumnType("VARCHAR"); @@ -1097,11 +921,6 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - b.Property("WriteState") .ValueGeneratedOnAdd() .HasColumnType("bit") @@ -1109,10 +928,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); + b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1120,13 +939,9 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - b.Property("CheryProductName") .IsRequired() - .HasMaxLength(100) + .HasMaxLength(64) .HasColumnType("VARCHAR"); b.Property("CheryProductNo") @@ -1142,22 +957,19 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(19) .HasColumnType("CHAR"); - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") + b.Property("DeviceId") .IsRequired() .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); + b.Property("DeviceName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); b.Property("PlantId") .IsRequired() @@ -1181,11 +993,21 @@ namespace TaskManager.EntityFramework.Migrations b.Property("ProductionLineName") .IsRequired() - .HasMaxLength(100) + .HasMaxLength(64) .HasColumnType("VARCHAR"); + b.Property("Rate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("RateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + b.Property("ReadState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.Property("Remark") .HasMaxLength(500) @@ -1221,7 +1043,7 @@ namespace TaskManager.EntityFramework.Migrations b.Property("VendorProductName") .IsRequired() - .HasMaxLength(100) + .HasMaxLength(64) .HasColumnType("VARCHAR"); b.Property("VendorProductNo") @@ -1229,10 +1051,6 @@ namespace TaskManager.EntityFramework.Migrations .HasMaxLength(32) .HasColumnType("VARCHAR"); - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - b.Property("WorkShift") .IsRequired() .HasMaxLength(10) @@ -1249,14 +1067,16 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("VARCHAR"); b.Property("WriteState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); + b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1267,181 +1087,983 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("ReadState") - .HasColumnType("bit"); + b.Property("DeviceId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(33) + .HasColumnType("VARCHAR"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("EndTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("WriteState") - .HasColumnType("bit"); + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.HasKey("UId"); + b.Property("PlantName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.ToTable("SUPPLIER_BOM"); - }); + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_DATE", b => - { - b.Property("UId") + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("ReadState") .ValueGeneratedOnAdd() - .HasColumnType("bigint"); + .HasColumnType("bit") + .HasDefaultValue(false); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("RecId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("CreationTime") - .HasColumnType("datetime2"); + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("FeedbackResults") + b.Property("StartTime") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("MaterialCode") + b.Property("StationId") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Measures") + b.Property("StationName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("PlantId") + b.Property("SubType") .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityMeet1") - .HasColumnType("int"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet10") - .HasColumnType("int"); + b.Property("SubTypeName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet11") - .HasColumnType("int"); + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet12") - .HasColumnType("int"); + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet13") - .HasColumnType("int"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); - b.Property("QuantityMeet14") - .HasColumnType("int"); + b.Property("Type") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet15") - .HasColumnType("int"); + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet16") - .HasColumnType("int"); + b.Property("WorkshopName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); - b.Property("QuantityMeet17") - .HasColumnType("int"); + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.Property("QuantityMeet18") - .HasColumnType("int"); + b.HasKey("UId"); - b.Property("QuantityMeet19") - .HasColumnType("int"); + b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); + }); - b.Property("QuantityMeet2") - .HasColumnType("int"); + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); - b.Property("QuantityMeet20") - .HasColumnType("int"); + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("QuantityMeet21") - .HasColumnType("int"); + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet22") - .HasColumnType("int"); + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet23") - .HasColumnType("int"); + b.Property("CreationTime") + .HasColumnType("datetime2"); - b.Property("QuantityMeet24") - .HasColumnType("int"); + 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.SUPPLIER_BOM", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("BomCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("BomName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("BomVersion") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("MaterialUnit") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("SubMaterialCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubMaterialName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubMaterialQuota") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubMaterialType") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("SubMaterialUnit") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductType") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_BOM", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataCreateTime") + .HasColumnType("datetime2"); + + b.Property("DeliveryNumber") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasColumnType("nvarchar(max)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReceivingCrossings") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RoadReceiveTime") + .HasColumnType("datetime2"); + + b.Property("RoadShippedTime") + .HasColumnType("datetime2"); + + b.Property("SerialNumber") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialSrate") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SupplierReceiveTime") + .HasColumnType("datetime2"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + 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("CheckInTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CheckOutTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("HaveQuantity") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("OperatorId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OperatorName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet25") - .HasColumnType("int"); + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet26") - .HasColumnType("int"); + b.Property("PositionId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet27") - .HasColumnType("int"); + b.Property("PositionName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet28") - .HasColumnType("int"); + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet29") - .HasColumnType("int"); + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet3") - .HasColumnType("int"); + b.Property("QualificationLevel") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet30") - .HasColumnType("int"); + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.Property("QuantityMeet31") - .HasColumnType("int"); + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("QuantityMeet4") - .HasColumnType("int"); + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet5") - .HasColumnType("int"); + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet6") - .HasColumnType("int"); + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet7") - .HasColumnType("int"); + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityMeet8") - .HasColumnType("int"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); - b.Property("QuantityMeet9") - .HasColumnType("int"); + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("ReadState") - .HasColumnType("bit"); + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("ReleaseEdition") + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_EMPLOYEE", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheryProductName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("KeyStation") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.Property("Remark") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("StartDate") + b.Property("StationId") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StationOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); b.Property("SupplierCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("VentureSpecific") + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_INFO", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .HasColumnType("datetime2"); + + b.Property("Id") .HasColumnType("nvarchar(max)"); - b.Property("VentureType") + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityCurrent") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StockState") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); b.Property("WriteState") .HasColumnType("bit"); b.HasKey("UId"); - b.ToTable("SUPPLIER_CON_DATE"); + b.ToTable("SUPPLIER_INV_DATA"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_MMRP", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1449,158 +2071,182 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("CreateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("FeedbackResults") + 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)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("Measures") + b.Property("MaterialDescription") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("PlantId") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("QuantityMeet1") - .HasColumnType("int"); + b.Property("PlantName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("QuantityMeet10") + b.Property("QuantityDemand1") .HasColumnType("int"); - b.Property("QuantityMeet11") - .HasColumnType("int"); + b.Property("QuantityDemand10") + .HasColumnType("decimal(18,2)"); - b.Property("QuantityMeet12") - .HasColumnType("int"); + b.Property("QuantityDemand11") + .HasColumnType("decimal(18,2)"); - b.Property("QuantityMeet2") - .HasColumnType("int"); + b.Property("QuantityDemand12") + .HasColumnType("decimal(18,2)"); - b.Property("QuantityMeet3") - .HasColumnType("int"); + b.Property("QuantityDemand13") + .HasColumnType("decimal(18,2)"); - b.Property("QuantityMeet4") - .HasColumnType("int"); + b.Property("QuantityDemand14") + .HasColumnType("decimal(18,2)"); - b.Property("QuantityMeet5") - .HasColumnType("int"); + b.Property("QuantityDemand15") + .HasColumnType("decimal(18,2)"); - b.Property("QuantityMeet6") - .HasColumnType("int"); + b.Property("QuantityDemand16") + .HasColumnType("decimal(18,2)"); - b.Property("QuantityMeet7") - .HasColumnType("int"); + b.Property("QuantityDemand17") + .HasColumnType("decimal(18,2)"); - b.Property("QuantityMeet8") - .HasColumnType("int"); + b.Property("QuantityDemand18") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand19") + .HasColumnType("decimal(18,2)"); - b.Property("QuantityMeet9") + b.Property("QuantityDemand2") .HasColumnType("int"); - b.Property("ReadState") - .HasColumnType("bit"); + b.Property("QuantityDemand20") + .HasColumnType("decimal(18,2)"); - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("QuantityDemand21") + .HasColumnType("decimal(18,2)"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); + b.Property("QuantityDemand22") + .HasColumnType("decimal(18,2)"); - b.Property("StartMonth") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("QuantityDemand23") + .HasColumnType("decimal(18,2)"); - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("QuantityDemand24") + .HasColumnType("decimal(18,2)"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("QuantityDemand25") + .HasColumnType("decimal(18,2)"); - b.Property("VentureSpecific") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("QuantityDemand26") + .HasColumnType("decimal(18,2)"); - b.Property("VentureType") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("QuantityDemand27") + .HasColumnType("decimal(18,2)"); - b.Property("WriteState") - .HasColumnType("bit"); + b.Property("QuantityDemand28") + .HasColumnType("decimal(18,2)"); - b.HasKey("UId"); + b.Property("QuantityDemand29") + .HasColumnType("decimal(18,2)"); - b.ToTable("SUPPLIER_CON_MMRP"); - }); + b.Property("QuantityDemand3") + .HasColumnType("int"); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); + b.Property("QuantityDemand30") + .HasColumnType("decimal(18,2)"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("QuantityDemand31") + .HasColumnType("decimal(18,2)"); - b.Property("CreationTime") - .HasColumnType("datetime2"); + b.Property("QuantityDemand4") + .HasColumnType("decimal(18,2)"); - b.Property("FeedbackResults") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("QuantityDemand5") + .HasColumnType("decimal(18,2)"); - b.Property("Measures") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("QuantityDemand6") + .HasColumnType("decimal(18,2)"); - b.Property("PurchaseOrder") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("QuantityDemand7") + .HasColumnType("decimal(18,2)"); - b.Property("QuantityMeet") - .HasColumnType("int"); + b.Property("QuantityDemand8") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand9") + .HasColumnType("decimal(18,2)"); b.Property("ReadState") .HasColumnType("bit"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); + b.Property("ReleaseEdition") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("SerialNumber") + b.Property("Remark") .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("SupplierCode") + b.Property("RequestDate") .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("StartDate") + .HasColumnType("datetime2"); + b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("VentureSpecific") + b.Property("UpdateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("VentureType") - .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_CON_PO"); + b.ToTable("SUPPLIER_MRP_DATE"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1610,155 +2256,280 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CreateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "createByUser"); b.Property("CreateTime") - .HasColumnType("datetime2"); + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "createTime"); 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"); + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "isDelete"); + + b.Property("IsUpdate") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); b.Property("MaterialCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialCode"); b.Property("MaterialDescription") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); b.Property("PlantId") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plantId"); - b.Property("QuantityDelivery") - .HasColumnType("int"); + b.Property("PlantName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plantName"); + + b.Property("QuantityDemand1") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); + + b.Property("QuantityDemand10") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); + + b.Property("QuantityDemand11") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); + + b.Property("QuantityDemand12") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); + + b.Property("QuantityDemand2") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); + + b.Property("QuantityDemand3") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); + + b.Property("QuantityDemand4") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); + + b.Property("QuantityDemand5") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); + + b.Property("QuantityDemand6") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); + + b.Property("QuantityDemand7") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); + + b.Property("QuantityDemand8") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); + + b.Property("QuantityDemand9") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); b.Property("ReadState") .HasColumnType("bit"); - b.Property("ReceivingCrossings") + b.Property("ReleaseEdition") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); b.Property("Remark") + .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("RoadReceiveTime") + b.Property("StartMonth") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "startMonth"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); - b.Property("RoadShippedTime") + b.Property("UpdateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - b.Property("SerialNumber") + b.Property("UpdateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "updateTime"); + + b.Property("Version") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "version"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.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") + .HasColumnType("datetime2"); + + b.Property("CreatQuantity") + .HasColumnType("decimal(18,2)"); + + b.Property("CreateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateRequired") + .HasColumnType("datetime2"); - b.Property("SerialSrate") + b.Property("DemandSrate") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("SupplierReceiveTime") + b.Property("DemandType") .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") .HasColumnType("nvarchar(max)"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("IsDelete") + .HasColumnType("int"); - b.Property("UpdateByUser") + b.Property("MaterialCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("UpdateTime") - .HasColumnType("datetime2"); + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("Version") - .HasColumnType("int"); + b.Property("OnTimePercentage") + .HasColumnType("decimal(18,2)"); - b.Property("WriteState") - .HasColumnType("bit"); + b.Property("PlantId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.HasKey("UId"); + b.Property("PlantName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.ToTable("SUPPLIER_DEL_STATE"); - }); + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("QuantityInTransit") + .HasColumnType("decimal(18,2)"); - b.Property("CreationTime") - .HasColumnType("datetime2"); + b.Property("QuantityReceive") + .HasColumnType("decimal(18,2)"); b.Property("ReadState") .HasColumnType("bit"); b.Property("Remark") + .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); - b.Property("WriteState") - .HasColumnType("bit"); + b.Property("SummaryCreatQuantity") + .HasColumnType("decimal(18,2)"); - b.HasKey("UId"); + b.Property("SummaryQuantityDelivery") + .HasColumnType("decimal(18,2)"); - b.ToTable("SUPPLIER_EMPLOYEE"); - }); + b.Property("SummaryQuantityInTransit") + .HasColumnType("decimal(18,2)"); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); + b.Property("SummaryQuantityReceive") + .HasColumnType("decimal(18,2)"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("SummarySign") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("CreationTime") - .HasColumnType("datetime2"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); - b.Property("ReadState") - .HasColumnType("bit"); + b.Property("UpdateByUser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); + b.Property("UpdateTime") + .HasColumnType("datetime2"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("Version") + .HasColumnType("int"); b.Property("WriteState") .HasColumnType("bit"); b.HasKey("UId"); - b.ToTable("SUPPLIER_INFO"); + b.ToTable("SUPPLIER_MRP_STATE"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1766,9 +2537,20 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("Batch") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Country") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("CreateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("CreateTime") .HasColumnType("datetime2"); @@ -1776,9 +2558,13 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DataUpdateTime") + b.Property("DeliveryDate") + .HasColumnType("datetime2"); + + b.Property("DeliveryPlace") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("Id") .HasColumnType("nvarchar(max)"); @@ -1786,45 +2572,90 @@ namespace TaskManager.EntityFramework.Migrations b.Property("IsDelete") .HasColumnType("int"); + b.Property("ItemType") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("MaterialCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("MaterialDescription") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialUnit") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Note") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("PlantId") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("PlantName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PurchaseOrder") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Purchaser") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("QuantityCurrent") + b.Property("QuantityDelivery") .HasColumnType("int"); + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); + b.Property("ReadState") .HasColumnType("bit"); b.Property("Remark") + .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("StockState") + b.Property("SerialNumber") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Supplier") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); + b.Property("TradeTerms") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("UpdateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("UpdateTime") .HasColumnType("datetime2"); @@ -1832,15 +2663,18 @@ namespace TaskManager.EntityFramework.Migrations b.Property("Version") .HasColumnType("int"); + b.Property("VoucherDate") + .HasColumnType("datetime2"); + b.Property("WriteState") .HasColumnType("bit"); b.HasKey("UId"); - b.ToTable("SUPPLIER_INV_DATA"); + b.ToTable("SUPPLIER_PO"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1848,177 +2682,260 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("CarrierCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("CreateTime") + b.Property("Cc") .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); + .HasMaxLength(1) + .HasColumnType("CHAR"); - b.Property("Id") - .HasColumnType("nvarchar(max)"); + b.Property("Characteristic") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("IsDelete") - .HasColumnType("int"); + b.Property("CheckMode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); - b.Property("IsUpdate") + b.Property("CheckResult") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(8) + .HasColumnType("VARCHAR"); - b.Property("MaterialCode") + b.Property("CheryProductName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("MaterialDescription") + b.Property("CheryProductNo") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("PlantId") + b.Property("CheryProductSn") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("PlantName") + b.Property("CollectTime") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("QuantityDemand1") - .HasColumnType("int"); + b.Property("CreationTime") + .HasColumnType("datetime2"); - b.Property("QuantityDemand10") - .HasColumnType("int"); + b.Property("DecimalValue") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); - b.Property("QuantityDemand11") - .HasColumnType("int"); + b.Property("DetectionMode") + .HasMaxLength(20) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand12") - .HasColumnType("int"); + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand13") - .HasColumnType("int"); + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand14") - .HasColumnType("int"); + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand15") - .HasColumnType("int"); + b.Property("EmpName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand16") - .HasColumnType("int"); + b.Property("FttQty") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("QuantityDemand17") - .HasColumnType("int"); + b.Property("GatherSpot") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand18") - .HasColumnType("int"); + b.Property("IntputQty") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("QuantityDemand19") - .HasColumnType("int"); + b.Property("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("QuantityDemand2") - .HasColumnType("int"); + b.Property("LowerLimit") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Parameter") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand20") - .HasColumnType("int"); + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand21") - .HasColumnType("int"); + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand22") - .HasColumnType("int"); + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand23") - .HasColumnType("int"); + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand24") - .HasColumnType("int"); + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); - b.Property("QuantityDemand25") - .HasColumnType("int"); + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("QuantityDemand26") - .HasColumnType("int"); + b.Property("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("QuantityDemand27") - .HasColumnType("int"); + b.Property("Sc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); - b.Property("QuantityDemand28") - .HasColumnType("int"); + b.Property("Spc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); - b.Property("QuantityDemand29") - .HasColumnType("int"); + b.Property("StandardValue") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand3") - .HasColumnType("int"); + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand30") - .HasColumnType("int"); + b.Property("StationName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand31") - .HasColumnType("int"); + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand4") - .HasColumnType("int"); + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand5") - .HasColumnType("int"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); - b.Property("QuantityDemand6") - .HasColumnType("int"); + b.Property("UnitCn") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand7") - .HasColumnType("int"); + b.Property("UnitEn") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand8") - .HasColumnType("int"); + b.Property("UpperLimit") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); - b.Property("QuantityDemand9") - .HasColumnType("int"); + b.Property("VendorFieldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("ReadState") - .HasColumnType("bit"); + b.Property("VendorFieldDesc") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("ReleaseEdition") + b.Property("VendorFieldName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); + b.Property("VendorProductBatch") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("RequestDate") + b.Property("VendorProductName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("StartDate") + b.Property("VendorProductNo") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("VendorProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("UpdateByUser") + b.Property("WorkShift") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(10) + .HasColumnType("VARCHAR"); - b.Property("UpdateTime") + b.Property("WorkshopId") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Version") - .HasColumnType("int"); + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("WriteState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.HasKey("UId"); - b.ToTable("SUPPLIER_MRP_DATE"); + b.ToTable("SUPPLIER_PRO_CPS", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2026,11 +2943,17 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("AssemblyMaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("CreateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("CreateTime") + b.Property("CreateTime") .HasColumnType("datetime2"); b.Property("CreationTime") @@ -2039,106 +2962,104 @@ namespace TaskManager.EntityFramework.Migrations b.Property("Id") .HasColumnType("nvarchar(max)"); - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsUpdate") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("IsDelete") + .HasColumnType("int"); b.Property("MaterialCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("MaterialDescription") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("PlantId") + b.Property("ModelCategory") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("PlantName") + b.Property("Models") .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)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); + b.Property("MotorMaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); + b.Property("OnLineDate") + .HasColumnType("datetime2"); - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); + b.Property("OnLineTime") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); + b.Property("Plant") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); 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") + b.Property("SortDate") + .HasColumnType("datetime2"); + + b.Property("SortTime") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); b.Property("UpdateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("UpdateTime") + b.Property("UpdateTime") .HasColumnType("datetime2"); b.Property("Version") .HasColumnType("int"); + b.Property("Vin") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + b.Property("WriteState") .HasColumnType("bit"); b.HasKey("UId"); - b.ToTable("SUPPLIER_MRP_MONTH"); + b.ToTable("SUPPLIER_PRO_CSCHEDUL"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2146,120 +3067,241 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("ConfirmTime") + b.Property("CheryProductName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("CreatQuantity") - .HasColumnType("int"); + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildHardwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildPackageInfo") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildSoftwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("CreateByUser") + b.Property("ChildSource") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("CreateTime") - .HasColumnType("datetime2"); + b.Property("CollectTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DateRequired") + b.Property("DateTime") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(16) + .HasColumnType("CHAR"); - b.Property("DemandSrate") + b.Property("EmpCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("DemandType") + b.Property("EmpName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("Id") - .HasColumnType("nvarchar(max)"); + b.Property("FinalQualityStatus") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("VARCHAR"); - b.Property("IsDelete") - .HasColumnType("int"); + b.Property("InstrumentQualityStatus") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); - b.Property("MaterialCode") + b.Property("ManualQualityStatus") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ManufactureNo") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("MaterialDescription") + b.Property("MaterialInputTime") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("OnTimePercentage") - .HasColumnType("int"); + b.Property("MaterialOutputTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ParentHardwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ParentSoftwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("PlantId") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); b.Property("PlantName") .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityDemand") - .HasColumnType("int"); + b.Property("ProductBatchNo") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("QuantityInTransit") - .HasColumnType("int"); + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityReceive") - .HasColumnType("int"); + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); b.Property("ReadState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.Property("Remark") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("RequestDate") + b.Property("StationId") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("SummaryCreatQuantity") - .HasColumnType("int"); + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("SummaryQuantityDelivery") - .HasColumnType("int"); + b.Property("SubBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("SummaryQuantityInTransit") - .HasColumnType("int"); + b.Property("SubProdName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("SummaryQuantityReceive") - .HasColumnType("int"); + b.Property("SubProdNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("SummarySign") + b.Property("SubProdNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubProdSn") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierName") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("UpdateByUser") + b.Property("VendorFieldName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("UpdateTime") - .HasColumnType("datetime2"); + b.Property("VendorFieldNum") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Version") - .HasColumnType("int"); + 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"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.HasKey("UId"); - b.ToTable("SUPPLIER_MRP_STATE"); + b.ToTable("SUPPLIER_PRO_DATA", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2267,158 +3309,133 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("Batch") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Country") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("AcceptableNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("CreateByUser") + b.Property("CheryProductName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("CreateTime") + b.Property("CheryProductNo") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); 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") + b.Property("DateTime") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("DefectiveNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("MaterialDescription") + b.Property("ManufactureNo") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("MaterialUnit") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("OncePassRateRealValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("Note") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("OncePassRateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); b.Property("PlantId") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); b.Property("PlantName") .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseOrder") - .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("Purchaser") + b.Property("ProductBatchNo") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("QuantityDelivery") - .HasColumnType("int"); + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); - b.Property("QuantityDemand") - .HasColumnType("int"); + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); b.Property("ReadState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.Property("Remark") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("RequestDate") + b.Property("StatisticalTime") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("SerialNumber") + b.Property("SupplierCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Supplier") + b.Property("SupplierName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("TradeTerms") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateByUser") + b.Property("VendorProductName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("UpdateTime") + b.Property("VendorProductNo") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Version") - .HasColumnType("int"); + b.Property("WorkOrderNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("VoucherDate") + b.Property("WorkShift") .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"); + .HasMaxLength(10) + .HasColumnType("VARCHAR"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); + b.Property("WorkshopId") + .HasMaxLength(50) + .HasColumnType("nvarchar"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("WorkshopName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); b.Property("WriteState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_CPS"); + b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2426,13 +3443,10 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("AssemblyMaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - b.Property("CreateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("CreateTime") .HasColumnType("datetime2"); @@ -2448,59 +3462,45 @@ namespace TaskManager.EntityFramework.Migrations b.Property("MaterialCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("MaterialDescription") .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ModelCategory") - .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); 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)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("Plant") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("OnLineTime") + .HasColumnType("datetime2"); b.Property("ProductionLineId") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("ProductionLineName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionType") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); 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") + b.Property("RequestDate") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -2509,7 +3509,8 @@ namespace TaskManager.EntityFramework.Migrations b.Property("UpdateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("UpdateTime") .HasColumnType("datetime2"); @@ -2519,17 +3520,18 @@ namespace TaskManager.EntityFramework.Migrations b.Property("Vin") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("WriteState") .HasColumnType("bit"); b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); + b.ToTable("SUPPLIER_PRO_HSCHEDUL"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2537,55 +3539,175 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("CheckNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheckResult") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("CHAR"); + + b.Property("CheckTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ComponentCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ComponentName") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + b.Property("CreationTime") .HasColumnType("datetime2"); + b.Property("DeadLine") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("FeatureLower") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FeatureName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("FeatureUnit") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("FeatureUpper") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FeatureValue") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + b.Property("ReadState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.Property("Remark") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("WriteState") - .HasColumnType("bit"); + b.Property("StandardValue") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.HasKey("UId"); + b.Property("SubBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.ToTable("SUPPLIER_PRO_DATA"); - }); + b.Property("SubBatchNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); + b.Property("SubBatchSn") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("SubSupplierAddress") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("CreationTime") - .HasColumnType("datetime2"); + b.Property("SubSupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("ReadState") - .HasColumnType("bit"); + b.Property("SupplierSubCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); + b.Property("SupplierSubName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); + b.Property("VendorFieldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldDesc") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + b.Property("WriteState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD"); + b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2593,86 +3715,144 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("Assembly") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "assembly"); + b.Property("CreateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "createByUser"); b.Property("CreateTime") - .HasColumnType("datetime2"); + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "createTime"); b.Property("CreationTime") .HasColumnType("datetime2"); b.Property("Id") - .HasColumnType("nvarchar(max)"); + .HasColumnType("nvarchar(max)") + .HasAnnotation("Relational:JsonPropertyName", "id"); b.Property("IsDelete") - .HasColumnType("int"); + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "isDelete"); b.Property("MaterialCode") .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialCode"); b.Property("Models") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "models"); - b.Property("OnLineTime") + b.Property("Omterior") .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("ProductionLineId") + b.Property("Pattern") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "pattern"); - b.Property("ProductionLineName") + b.Property("Plant") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plant"); - b.Property("ProductionType") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("Quantity1") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity1"); + + b.Property("Quantity2") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity2"); + + b.Property("Quantity3") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity3"); + + b.Property("Quantity4") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity4"); + + b.Property("Quantity5") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity5"); + + b.Property("Quantity6") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity6"); b.Property("ReadState") .HasColumnType("bit"); + b.Property("ReleaseEdition") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); + 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() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "startMonth"); + b.Property("TaskId") .HasColumnType("uniqueidentifier"); + b.Property("Type") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "type"); + b.Property("UpdateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); b.Property("UpdateTime") - .HasColumnType("datetime2"); + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "updateTime"); b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "version"); b.Property("WriteState") .HasColumnType("bit"); b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); + b.ToTable("SUPPLIER_PRO_PLANING"); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2680,27 +3860,122 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + b.Property("ActualBeginTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ActualEndTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + b.Property("CreationTime") .HasColumnType("datetime2"); + b.Property("ManufactureInputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ManufactureNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureOutputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlanBeginTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("PlanEndTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("PlanNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlanStatus") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + b.Property("ReadState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.Property("Remark") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + b.Property("WriteState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK"); + b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); }); - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2708,137 +3983,141 @@ namespace TaskManager.EntityFramework.Migrations SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - b.Property("Assembly") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("AcceptableNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("CreateByUser") + b.Property("CheryProductName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("CreateTime") - .HasColumnType("datetime2"); + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("Id") - .HasColumnType("nvarchar(max)"); + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("IsDelete") - .HasColumnType("int"); + b.Property("DefectiveNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("MaterialCode") + b.Property("ManufactureNo") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("OncePassRateRealValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("Omterior") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("OncePassRateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("Pattern") + b.Property("PlantId") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Plant") + b.Property("PlantName") .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)"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("Quantity4") - .HasColumnType("decimal(18,2)"); + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Quantity5") - .HasColumnType("decimal(18,2)"); + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("Quantity6") - .HasColumnType("decimal(18,2)"); + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); b.Property("ReadState") .HasColumnType("bit"); - b.Property("ReleaseEdition") + b.Property("Remark") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(500) + .HasColumnType("NVarchar"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("RequestDate") + b.Property("StationName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); - b.Property("SalseDepartment") + b.Property("StatisticalTime") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(19) + .HasColumnType("CHAR"); - b.Property("StartMonth") + b.Property("SupplierCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); - b.Property("Type") + b.Property("VendorProductName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(100) + .HasColumnType("VARCHAR"); - b.Property("UpdateByUser") + b.Property("VendorProductNo") .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")); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("CreationTime") - .HasColumnType("datetime2"); + b.Property("WorkOrderNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("ReadState") - .HasColumnType("bit"); + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); - b.Property("Remark") - .HasColumnType("nvarchar(max)"); + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("WriteState") .HasColumnType("bit"); b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_SCHEDULING"); + b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); }); modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => @@ -2851,7 +4130,8 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CreateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("CreateTime") .HasColumnType("datetime2"); @@ -2859,13 +4139,13 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("FinalOnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("FinalOnLineTime") + .HasColumnType("datetime2"); b.Property("FinalWorkshop") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("Id") .HasColumnType("nvarchar(max)"); @@ -2875,32 +4155,37 @@ namespace TaskManager.EntityFramework.Migrations b.Property("MaterialCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("MaterialDescription") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("Models") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("OnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("OnLineTime") + .HasColumnType("datetime2"); b.Property("ProductionLineId") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("ProductionLineName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("ReadState") .HasColumnType("bit"); b.Property("Remark") + .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -2912,7 +4197,8 @@ namespace TaskManager.EntityFramework.Migrations b.Property("UpdateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("UpdateTime") .HasColumnType("datetime2"); @@ -2922,7 +4208,8 @@ namespace TaskManager.EntityFramework.Migrations b.Property("Vin") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("WriteState") .HasColumnType("bit"); @@ -2942,21 +4229,22 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CreateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("CreateTime") + b.Property("CreateTime") .HasColumnType("datetime2"); b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DemandPickupTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("DemandPickupTime") + .HasColumnType("datetime2"); b.Property("Feedback") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("Id") .HasColumnType("nvarchar(max)"); @@ -2966,39 +4254,47 @@ namespace TaskManager.EntityFramework.Migrations b.Property("Judge") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("LotNumber") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("MaterialCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("MaterialDescription") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("PickUpCrossings") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("PickUpLocation") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("Plant") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("QuantityDelivery") - .HasColumnType("int"); + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); b.Property("ReadState") .HasColumnType("bit"); b.Property("Remark") + .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -3007,32 +4303,38 @@ namespace TaskManager.EntityFramework.Migrations b.Property("ReturnNumber") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("ReturnReason") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("ReturnType") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("SerialNumber") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("SerialSrate") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); b.Property("UpdateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("UpdateTime") + b.Property("UpdateTime") .HasColumnType("datetime2"); b.Property("Version") @@ -3056,17 +4358,19 @@ namespace TaskManager.EntityFramework.Migrations b.Property("CreateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("CreateTime") + b.Property("CreateTime") + .HasMaxLength(50) .HasColumnType("datetime2"); b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("DateReceived") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("DateReceived") + .HasMaxLength(50) + .HasColumnType("datetime2"); b.Property("Id") .HasColumnType("nvarchar(max)"); @@ -3076,27 +4380,32 @@ namespace TaskManager.EntityFramework.Migrations b.Property("MaterialCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("MaterialDescription") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("PlantId") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("PurchasingGroup") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("QuantityDemand") - .HasColumnType("int"); + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); b.Property("ReadState") .HasColumnType("bit"); b.Property("Remark") + .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("RequestDate") @@ -3105,20 +4414,24 @@ namespace TaskManager.EntityFramework.Migrations b.Property("ScheduleAgreement") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("SerialNumber") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); b.Property("UpdateByUser") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); - b.Property("UpdateTime") + b.Property("UpdateTime") + .HasMaxLength(50) .HasColumnType("datetime2"); b.Property("Version") @@ -3145,75 +4458,91 @@ namespace TaskManager.EntityFramework.Migrations b.Property("DataUpdateTime") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(19) + .HasColumnType("CHAR"); b.Property("Id") .HasColumnType("nvarchar(max)"); b.Property("InventoryStatus") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); b.Property("MaterialCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(50) + .HasColumnType("VARCHAR"); b.Property("MaterialDescription") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(100) + .HasColumnType("VARCHAR"); b.Property("MaterialType") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(20) + .HasColumnType("VARCHAR"); b.Property("ProductionCycle") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(10) + .HasColumnType("VARCHAR"); - b.Property("QuantityCurrent") - .HasColumnType("int"); + b.Property("QuantityCurrent") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); - b.Property("QuantityPlan") - .HasColumnType("int"); + b.Property("QuantityPlan") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); b.Property("ReadState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.Property("Remark") - .HasColumnType("nvarchar(max)"); + .HasMaxLength(500) + .HasColumnType("NVarchar"); b.Property("RequestDate") .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("SafetyStock") - .HasColumnType("int"); + b.Property("SafetyStock") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); b.Property("SupplierBatch") - .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("SupplierCode") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(32) + .HasColumnType("VARCHAR"); b.Property("SupplierName") .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(64) + .HasColumnType("VARCHAR"); b.Property("SupplieryxqDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); + .HasMaxLength(19) + .HasColumnType("CHAR"); b.Property("TaskId") .HasColumnType("uniqueidentifier"); b.Property("WriteState") - .HasColumnType("bit"); + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); b.HasKey("UId"); - b.ToTable("SUPPLIER_SINV_DATA"); + b.ToTable("SUPPLIER_SINV_DATA", (string)null); }); modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => @@ -3287,10 +4616,16 @@ namespace TaskManager.EntityFramework.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("ReadState") + .HasColumnType("bit"); + b.Property("Remark") .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("TaskName") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -3299,6 +4634,9 @@ namespace TaskManager.EntityFramework.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("WriteState") + .HasColumnType("bit"); + b.HasKey("UId"); b.ToTable("TaskLogs"); diff --git a/API/Wood.Admin.WebApi/Startup.cs b/API/Wood.Admin.WebApi/Startup.cs index d3a25ad..1dff3f0 100644 --- a/API/Wood.Admin.WebApi/Startup.cs +++ b/API/Wood.Admin.WebApi/Startup.cs @@ -19,10 +19,11 @@ using System.IO; using System.Linq; using System.Reflection; using System.Text; +using System.Threading.Tasks; using TaskManager.Controllers; using TaskManager.EntityFramework; using TaskManager.EntityFramework.Repository; -using TaskManager.EntityFramework.Repository; + using Wood.Admin.WebApi.Filter; using Wood.Admin.WebApi.Middleware; using Wood.Data.Repository; @@ -55,7 +56,7 @@ namespace Wood.Admin.WebApi /// This method gets called by the runtime. Use this method to add services to the container. /// /// - public void ConfigureServices(IServiceCollection services) + public async Task ConfigureServices(IServiceCollection services) { services.AddHttpContextAccessor(); @@ -109,7 +110,7 @@ namespace Wood.Admin.WebApi services.AddScoped(typeof(TaskManager.EntityFramework.IRepository<>), typeof(Repository<>)); - + //注册控制器 services.AddControllers(options => @@ -267,7 +268,9 @@ namespace Wood.Admin.WebApi options.OperationFilter(); #endregion }); - //services.BuildServiceProvider().GetRequiredService() + //var s = services.BuildServiceProvider().GetRequiredService(); + + // s.TaskAllAsync("2025-05-29"); diff --git a/API/Wood.Service/Controllers/LogController.cs b/API/Wood.Service/Controllers/LogController.cs index 9aea8d6..ce8010e 100644 --- a/API/Wood.Service/Controllers/LogController.cs +++ b/API/Wood.Service/Controllers/LogController.cs @@ -20,6 +20,7 @@ using Wood.Service.Controllers; namespace TaskManager.Controllers { + public class LogController:NormalBaseController { public LogController(JobDbContext context, IServiceProvider builder, IConfiguration configuration, IRepository repository) : base(context, builder, configuration, repository) @@ -53,6 +54,17 @@ namespace TaskManager.Controllers } return false; } + [HttpGet("AddInfoRemark")] + public async Task AddInfoRemark(string message, string taskname,string remark) + { + _context.TaskLogs.Add(new TaskLog() { Info = message, Type = "记录", TaskName = taskname, CreationTime = DateTime.Now,Remark=remark }); + var result = await _context.SaveChangesAsync(); + if (result > 0) + { + return true; + } + return false; + } public async Task Export([FromQuery] int pageNumber = 1, diff --git a/API/Wood.Service/Controllers/NormalBaseController.cs b/API/Wood.Service/Controllers/NormalBaseController.cs index 8a877f4..31e11fc 100644 --- a/API/Wood.Service/Controllers/NormalBaseController.cs +++ b/API/Wood.Service/Controllers/NormalBaseController.cs @@ -1,4 +1,5 @@ -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; @@ -12,6 +13,7 @@ using TaskManager.EntityFramework.Repository; namespace Wood.Service.Controllers { + [AllowAnonymous] public class NormalBaseController:ControllerBase where T:BaseEntity { diff --git a/API/Wood.Service/Controllers/RecurringJobBaseController.cs b/API/Wood.Service/Controllers/RecurringJobBaseController.cs index cb168f2..0aeb0d4 100644 --- a/API/Wood.Service/Controllers/RecurringJobBaseController.cs +++ b/API/Wood.Service/Controllers/RecurringJobBaseController.cs @@ -57,6 +57,8 @@ namespace TaskManager.Controllers /// 返回DTOJson protected async Task Post(string url, string path, string jsonData) { + + try { // 生成签名参数 @@ -75,7 +77,10 @@ namespace TaskManager.Controllers // 发送请求 var response = await _httpClient.SendAsync(request); response.EnsureSuccessStatusCode(); // 抛出异常处理状态码 - return await response.Content.ReadAsStringAsync(); + var str = await response.Content.ReadAsStringAsync(); + await _logger.AddInfoRemark("test", TaskName,str); + + return str; } catch (HttpRequestException ex) { diff --git a/API/Wood.Service/Controllers/RecurringJobOutPageController.cs b/API/Wood.Service/Controllers/RecurringJobOutPageController.cs index 5a09666..57c6609 100644 --- a/API/Wood.Service/Controllers/RecurringJobOutPageController.cs +++ b/API/Wood.Service/Controllers/RecurringJobOutPageController.cs @@ -78,7 +78,7 @@ namespace TaskManager.Controllers // 首次请求获取总条数和分页信息 PagedResponse firstResponse = await GetPageAsync(new PAGE_DTO() { Date = date, IsForce = true }); - + if (firstResponse == null || firstResponse.Code != 200) { diff --git a/API/Wood.Service/Controllers/TaskConifgureController.cs b/API/Wood.Service/Controllers/TaskConifgureController.cs index e98d7d2..238c54e 100644 --- a/API/Wood.Service/Controllers/TaskConifgureController.cs +++ b/API/Wood.Service/Controllers/TaskConifgureController.cs @@ -13,6 +13,7 @@ using Microsoft.Extensions.DependencyInjection; using System; using System.IO; using System.Linq.Expressions; +using System.Security.Policy; using System.Threading.Tasks; using TaskManager.Controllers; using TaskManager.Entity; @@ -72,11 +73,6 @@ namespace TaskManager.Controllers await controller.ExecuteAsync(url, path, taskName); - - - - - } /// @@ -97,15 +93,165 @@ namespace TaskManager.Controllers var url = first.Url; var path = first.Api; var controller = _builder.GetRequiredService(); - await controller.TestAsync(url, path, taskName, "2025-04-21"); + } + [NonAction] + public async Task TaskAllAsync(string date) + { + var tasks = _context.TaskConifgure.Where(p => p.IsAuto == true && !string.IsNullOrEmpty(p.Corn) + && !string.IsNullOrEmpty(p.Api) && !string.IsNullOrEmpty(p.Url)).ToList(); + + + foreach (var task in tasks) + { + try + { + var url = task.Url; + var path = task.Api; + var taskname = task.TaskName; + + switch (task.TaskName) + { + case "整车月度生产计划1": + + // 添加的代码块 + var controller1 = _builder.GetRequiredService(); + await controller1.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "M+6月物料需求计划1": + + // 添加的代码块 + var controller2 = _builder.GetRequiredService(); + await controller2.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "整车月度生产计划2": + + // 添加的代码块 + var controller3 = _builder.GetRequiredService(); + await controller3.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "M+6月物料需求计划2": + + // 添加的代码块 + var controller4 = _builder.GetRequiredService(); + await controller4.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "日物料需求计划": + + // 添加的代码块 + var controller5 = _builder.GetRequiredService(); + await controller5.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "计划协议": + + // 添加的代码块 + var controller6 = _builder.GetRequiredService(); + await controller6.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "采购订单": + + // 添加的代码块 + var controller7 = _builder.GetRequiredService(); + await controller7.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "过焊装未过总装": + + // 添加的代码块 + var controller8 = _builder.GetRequiredService(); + await controller8.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "过涂装未过总装": + + // 添加的代码块 + var controller9 = _builder.GetRequiredService(); + await controller9.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "排序供货": + + // 添加的代码块 + var controller10 = _builder.GetRequiredService(); + await controller10.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "看板配送单": + + // 添加的代码块 + var controller11 = _builder.GetRequiredService(); + await controller11.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "退货单": + + // 添加的代码块 + var controller12 = _builder.GetRequiredService(); + await controller12.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "奇瑞RDC共享库存": + + // 添加的代码块 + var controller13 = _builder.GetRequiredService(); + await controller13.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "日MRP状态监控": + + // 添加的代码块 + var controller14 = _builder.GetRequiredService(); + await controller14.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "日MRP预警推移": + + // 添加的代码块 + var controller15 = _builder.GetRequiredService(); + await controller15.TestAsync(url, path, taskname, "2025-05-29"); + break; + case "供应商共享库存-上午": + + // 添加的代码块 + var controller19 = _builder.GetRequiredService(); + await controller19.TestAsync(url, path, taskname, "2025-05-29"); + break; + + case "供应商共享库存-晚上": + + // 添加的代码块 + var controller20 = _builder.GetRequiredService(); + await controller20.TestAsync(url, path, taskname, "2025-05-29"); + break; + } + + + + } + catch + { + + } + + + + + + + } }