diff --git a/API/TaskManager.EntityFramework/JobDbContext.cs b/API/TaskManager.EntityFramework/JobDbContext.cs index b84db27..0a57379 100644 --- a/API/TaskManager.EntityFramework/JobDbContext.cs +++ b/API/TaskManager.EntityFramework/JobDbContext.cs @@ -74,10 +74,10 @@ namespace TaskManager.EntityFramework //#endif - //optionsBuilder.UseSqlServer(GlobalContext.SystemConfig.CustomerDb); + optionsBuilder.UseSqlServer(GlobalContext.SystemConfig.CustomerDb); - optionsBuilder.UseSqlServer("Server = 192.168.1.228; Database = TaskManager2; User ID = sa; Password = ChangkeTec@2021; TrustServerCertificate = True"); + //optionsBuilder.UseSqlServer("Server = 127.0.01; Database = TaskManager2; User ID = sa; Password = 1; TrustServerCertificate = True"); } @@ -517,8 +517,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.DeadLine).HasColumnType("VARCHAR").HasMaxLength(30).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -568,8 +568,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.ActualEndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -617,8 +617,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -668,8 +668,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -715,8 +715,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.DataUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -824,8 +824,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -925,8 +925,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.ChildSoftwareRevision).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -982,8 +982,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -1111,8 +1111,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -1158,8 +1158,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.CollectTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -1217,8 +1217,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -1266,8 +1266,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.EndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -1319,8 +1319,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.ValidDays).HasColumnType("VARCHAR").HasMaxLength(12).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -1483,8 +1483,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.RhythmUnit).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); #endregion @@ -1538,8 +1538,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.QuantityMeet12).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -1632,8 +1632,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.QuantityMeet31).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -1662,8 +1662,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.Measures).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -1702,8 +1702,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.SupplieryxqDate).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -1753,8 +1753,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + b.Ignore(e => e.TaskId); }); @@ -1803,8 +1803,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.CheckOutTime).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + b.Ignore(e => e.TaskId); }); @@ -1849,8 +1849,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + b.Ignore(e => e.TaskId); }); @@ -1921,8 +1921,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.UnitType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + b.Ignore(e => e.TaskId); }); @@ -1998,8 +1998,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.DeadLine).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2049,8 +2049,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.ActualEndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2098,8 +2098,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2149,8 +2149,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2196,8 +2196,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.DataUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2305,8 +2305,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2406,8 +2406,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.ChildSoftwareRevision).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2463,8 +2463,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2592,8 +2592,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2639,8 +2639,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.CollectTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2698,8 +2698,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2747,8 +2747,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.EndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2800,8 +2800,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.ValidDays).HasColumnType("CHAR").HasMaxLength(12).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2847,8 +2847,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2920,8 +2920,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.UnitType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -2971,8 +2971,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.RhythmUnit).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); #endregion @@ -3026,8 +3026,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.QuantityMeet12).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -3120,8 +3120,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.QuantityMeet31).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -3150,8 +3150,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.Measures).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -3190,8 +3190,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.SupplieryxqDate).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + }); @@ -3241,8 +3241,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + b.Ignore(e => e.TaskId); }); @@ -3291,8 +3291,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + b.Ignore(e => e.TaskId); }); @@ -3337,8 +3337,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(false); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + b.Ignore(e => e.TaskId); }); @@ -3409,8 +3409,8 @@ namespace TaskManager.EntityFramework b.Property(e => e.UnitType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(); b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false); - b.Property(e => e.ReadState).HasDefaultValue(true); - b.Property(e => e.WriteState).HasDefaultValue(false); + + b.Ignore(e => e.TaskId); }); diff --git a/API/TaskManager.EntityFramework/Migrations/20250528092555_init.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250528092555_init.Designer.cs deleted file mode 100644 index 2f77ab4..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250528092555_init.Designer.cs +++ /dev/null @@ -1,2479 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250528092555_init")] - partial class init - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Measures") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityMeet1") - .HasColumnType("int"); - - b.Property("QuantityMeet10") - .HasColumnType("int"); - - b.Property("QuantityMeet11") - .HasColumnType("int"); - - b.Property("QuantityMeet12") - .HasColumnType("int"); - - b.Property("QuantityMeet13") - .HasColumnType("int"); - - b.Property("QuantityMeet14") - .HasColumnType("int"); - - b.Property("QuantityMeet15") - .HasColumnType("int"); - - b.Property("QuantityMeet16") - .HasColumnType("int"); - - b.Property("QuantityMeet17") - .HasColumnType("int"); - - b.Property("QuantityMeet18") - .HasColumnType("int"); - - b.Property("QuantityMeet19") - .HasColumnType("int"); - - b.Property("QuantityMeet2") - .HasColumnType("int"); - - b.Property("QuantityMeet20") - .HasColumnType("int"); - - b.Property("QuantityMeet21") - .HasColumnType("int"); - - b.Property("QuantityMeet22") - .HasColumnType("int"); - - b.Property("QuantityMeet23") - .HasColumnType("int"); - - b.Property("QuantityMeet24") - .HasColumnType("int"); - - b.Property("QuantityMeet25") - .HasColumnType("int"); - - b.Property("QuantityMeet26") - .HasColumnType("int"); - - b.Property("QuantityMeet27") - .HasColumnType("int"); - - b.Property("QuantityMeet28") - .HasColumnType("int"); - - b.Property("QuantityMeet29") - .HasColumnType("int"); - - b.Property("QuantityMeet3") - .HasColumnType("int"); - - b.Property("QuantityMeet30") - .HasColumnType("int"); - - b.Property("QuantityMeet31") - .HasColumnType("int"); - - b.Property("QuantityMeet4") - .HasColumnType("int"); - - b.Property("QuantityMeet5") - .HasColumnType("int"); - - b.Property("QuantityMeet6") - .HasColumnType("int"); - - b.Property("QuantityMeet7") - .HasColumnType("int"); - - b.Property("QuantityMeet8") - .HasColumnType("int"); - - b.Property("QuantityMeet9") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("VentureType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Measures") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityMeet1") - .HasColumnType("int"); - - b.Property("QuantityMeet10") - .HasColumnType("int"); - - b.Property("QuantityMeet11") - .HasColumnType("int"); - - b.Property("QuantityMeet12") - .HasColumnType("int"); - - b.Property("QuantityMeet2") - .HasColumnType("int"); - - b.Property("QuantityMeet3") - .HasColumnType("int"); - - b.Property("QuantityMeet4") - .HasColumnType("int"); - - b.Property("QuantityMeet5") - .HasColumnType("int"); - - b.Property("QuantityMeet6") - .HasColumnType("int"); - - b.Property("QuantityMeet7") - .HasColumnType("int"); - - b.Property("QuantityMeet8") - .HasColumnType("int"); - - b.Property("QuantityMeet9") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("VentureType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Measures") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseOrder") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityMeet") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("VentureType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RoadShippedTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialSrate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierReceiveTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityCurrent") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDemand1") - .HasColumnType("int"); - - b.Property("QuantityDemand10") - .HasColumnType("int"); - - b.Property("QuantityDemand11") - .HasColumnType("int"); - - b.Property("QuantityDemand12") - .HasColumnType("int"); - - b.Property("QuantityDemand13") - .HasColumnType("int"); - - b.Property("QuantityDemand14") - .HasColumnType("int"); - - b.Property("QuantityDemand15") - .HasColumnType("int"); - - b.Property("QuantityDemand16") - .HasColumnType("int"); - - b.Property("QuantityDemand17") - .HasColumnType("int"); - - b.Property("QuantityDemand18") - .HasColumnType("int"); - - b.Property("QuantityDemand19") - .HasColumnType("int"); - - b.Property("QuantityDemand2") - .HasColumnType("int"); - - b.Property("QuantityDemand20") - .HasColumnType("int"); - - b.Property("QuantityDemand21") - .HasColumnType("int"); - - b.Property("QuantityDemand22") - .HasColumnType("int"); - - b.Property("QuantityDemand23") - .HasColumnType("int"); - - b.Property("QuantityDemand24") - .HasColumnType("int"); - - b.Property("QuantityDemand25") - .HasColumnType("int"); - - b.Property("QuantityDemand26") - .HasColumnType("int"); - - b.Property("QuantityDemand27") - .HasColumnType("int"); - - b.Property("QuantityDemand28") - .HasColumnType("int"); - - b.Property("QuantityDemand29") - .HasColumnType("int"); - - b.Property("QuantityDemand3") - .HasColumnType("int"); - - b.Property("QuantityDemand30") - .HasColumnType("int"); - - b.Property("QuantityDemand31") - .HasColumnType("int"); - - b.Property("QuantityDemand4") - .HasColumnType("int"); - - b.Property("QuantityDemand5") - .HasColumnType("int"); - - b.Property("QuantityDemand6") - .HasColumnType("int"); - - b.Property("QuantityDemand7") - .HasColumnType("int"); - - b.Property("QuantityDemand8") - .HasColumnType("int"); - - b.Property("QuantityDemand9") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsUpdate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreatQuantity") - .HasColumnType("int"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DemandSrate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DemandType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnTimePercentage") - .HasColumnType("int"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("QuantityDemand") - .HasColumnType("int"); - - b.Property("QuantityInTransit") - .HasColumnType("int"); - - b.Property("QuantityReceive") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("int"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("int"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("int"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("int"); - - b.Property("SummarySign") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Country") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryPlace") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialUnit") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Note") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseOrder") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Purchaser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("QuantityDemand") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Supplier") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ModelCategory") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MotorMaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Plant") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SortTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Omterior") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Plant") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("FinalWorkshop") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Feedback") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("LotNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PickUpCrossings") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PickUpLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Plant") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnReason") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialSrate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PurchasingGroup") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDemand") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionCycle") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityCurrent") - .HasColumnType("int"); - - b.Property("QuantityPlan") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SafetyStock") - .HasColumnType("int"); - - b.Property("SupplierBatch") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplieryxqDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250528092555_init.cs b/API/TaskManager.EntityFramework/Migrations/20250528092555_init.cs deleted file mode 100644 index 089c133..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250528092555_init.cs +++ /dev/null @@ -1,1114 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class init : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "SUPPLIER_BOM", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_BOM", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_CON_DATE", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "nvarchar(max)", nullable: false), - ReleaseEdition = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - PlantId = table.Column(type: "nvarchar(max)", nullable: false), - FeedbackResults = table.Column(type: "nvarchar(max)", nullable: false), - VentureType = table.Column(type: "nvarchar(max)", nullable: false), - VentureSpecific = table.Column(type: "nvarchar(max)", nullable: false), - Measures = table.Column(type: "nvarchar(max)", nullable: false), - StartDate = table.Column(type: "nvarchar(max)", nullable: false), - QuantityMeet1 = table.Column(type: "int", nullable: false), - QuantityMeet2 = table.Column(type: "int", nullable: false), - QuantityMeet3 = table.Column(type: "int", nullable: false), - QuantityMeet4 = table.Column(type: "int", nullable: false), - QuantityMeet5 = table.Column(type: "int", nullable: false), - QuantityMeet6 = table.Column(type: "int", nullable: false), - QuantityMeet7 = table.Column(type: "int", nullable: false), - QuantityMeet8 = table.Column(type: "int", nullable: false), - QuantityMeet9 = table.Column(type: "int", nullable: false), - QuantityMeet10 = table.Column(type: "int", nullable: false), - QuantityMeet11 = table.Column(type: "int", nullable: false), - QuantityMeet12 = table.Column(type: "int", nullable: false), - QuantityMeet13 = table.Column(type: "int", nullable: false), - QuantityMeet14 = table.Column(type: "int", nullable: false), - QuantityMeet15 = table.Column(type: "int", nullable: false), - QuantityMeet16 = table.Column(type: "int", nullable: false), - QuantityMeet17 = table.Column(type: "int", nullable: false), - QuantityMeet18 = table.Column(type: "int", nullable: false), - QuantityMeet19 = table.Column(type: "int", nullable: false), - QuantityMeet20 = table.Column(type: "int", nullable: false), - QuantityMeet21 = table.Column(type: "int", nullable: false), - QuantityMeet22 = table.Column(type: "int", nullable: false), - QuantityMeet23 = table.Column(type: "int", nullable: false), - QuantityMeet24 = table.Column(type: "int", nullable: false), - QuantityMeet25 = table.Column(type: "int", nullable: false), - QuantityMeet26 = table.Column(type: "int", nullable: false), - QuantityMeet27 = table.Column(type: "int", nullable: false), - QuantityMeet28 = table.Column(type: "int", nullable: false), - QuantityMeet29 = table.Column(type: "int", nullable: false), - QuantityMeet30 = table.Column(type: "int", nullable: false), - QuantityMeet31 = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_CON_DATE", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_CON_MMRP", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "nvarchar(max)", nullable: false), - ReleaseEdition = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - PlantId = table.Column(type: "nvarchar(max)", nullable: false), - FeedbackResults = table.Column(type: "nvarchar(max)", nullable: false), - VentureType = table.Column(type: "nvarchar(max)", nullable: false), - VentureSpecific = table.Column(type: "nvarchar(max)", nullable: false), - Measures = table.Column(type: "nvarchar(max)", nullable: false), - StartMonth = table.Column(type: "nvarchar(max)", nullable: false), - QuantityMeet1 = table.Column(type: "int", nullable: false), - QuantityMeet2 = table.Column(type: "int", nullable: false), - QuantityMeet3 = table.Column(type: "int", nullable: false), - QuantityMeet4 = table.Column(type: "int", nullable: false), - QuantityMeet5 = table.Column(type: "int", nullable: false), - QuantityMeet6 = table.Column(type: "int", nullable: false), - QuantityMeet7 = table.Column(type: "int", nullable: false), - QuantityMeet8 = table.Column(type: "int", nullable: false), - QuantityMeet9 = table.Column(type: "int", nullable: false), - QuantityMeet10 = table.Column(type: "int", nullable: false), - QuantityMeet11 = table.Column(type: "int", nullable: false), - QuantityMeet12 = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_CON_MMRP", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_CON_PO", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "nvarchar(max)", nullable: false), - PurchaseOrder = table.Column(type: "nvarchar(max)", nullable: false), - SerialNumber = table.Column(type: "nvarchar(max)", nullable: false), - QuantityMeet = table.Column(type: "int", nullable: false), - FeedbackResults = table.Column(type: "nvarchar(max)", nullable: false), - VentureType = table.Column(type: "nvarchar(max)", nullable: false), - VentureSpecific = table.Column(type: "nvarchar(max)", nullable: false), - Measures = table.Column(type: "nvarchar(max)", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_CON_PO", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_DEL_STATE", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - DeliveryNumber = table.Column(type: "nvarchar(max)", nullable: false), - SerialNumber = table.Column(type: "nvarchar(max)", nullable: false), - SerialSrate = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), - PlantId = table.Column(type: "nvarchar(max)", nullable: false), - ReceivingCrossings = table.Column(type: "nvarchar(max)", nullable: false), - QuantityDelivery = table.Column(type: "int", nullable: false), - DataCreateTime = table.Column(type: "nvarchar(max)", nullable: false), - SupplierReceiveTime = table.Column(type: "nvarchar(max)", nullable: false), - RoadShippedTime = table.Column(type: "nvarchar(max)", nullable: false), - RoadReceiveTime = table.Column(type: "nvarchar(max)", nullable: false), - CreateByUser = table.Column(type: "nvarchar(max)", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(max)", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_DEL_STATE", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_EMPLOYEE", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_EMPLOYEE", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_INFO", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_INFO", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_INV_DATA", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - PlantId = table.Column(type: "nvarchar(max)", nullable: false), - PlantName = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), - QuantityCurrent = table.Column(type: "int", nullable: false), - StockState = table.Column(type: "nvarchar(max)", nullable: false), - DataUpdateTime = table.Column(type: "nvarchar(max)", nullable: false), - CreateByUser = table.Column(type: "nvarchar(max)", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(max)", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_INV_DATA", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_MRP_DATE", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ReleaseEdition = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), - PlantId = table.Column(type: "nvarchar(max)", nullable: false), - PlantName = table.Column(type: "nvarchar(max)", nullable: false), - StartDate = table.Column(type: "nvarchar(max)", nullable: false), - QuantityDemand1 = table.Column(type: "int", nullable: false), - QuantityDemand2 = table.Column(type: "int", nullable: false), - QuantityDemand3 = table.Column(type: "int", nullable: false), - QuantityDemand4 = table.Column(type: "int", nullable: false), - QuantityDemand5 = table.Column(type: "int", nullable: false), - QuantityDemand6 = table.Column(type: "int", nullable: false), - QuantityDemand7 = table.Column(type: "int", nullable: false), - QuantityDemand8 = table.Column(type: "int", nullable: false), - QuantityDemand9 = table.Column(type: "int", nullable: false), - QuantityDemand10 = table.Column(type: "int", nullable: false), - QuantityDemand11 = table.Column(type: "int", nullable: false), - QuantityDemand12 = table.Column(type: "int", nullable: false), - QuantityDemand13 = table.Column(type: "int", nullable: false), - QuantityDemand14 = table.Column(type: "int", nullable: false), - QuantityDemand15 = table.Column(type: "int", nullable: false), - QuantityDemand16 = table.Column(type: "int", nullable: false), - QuantityDemand17 = table.Column(type: "int", nullable: false), - QuantityDemand18 = table.Column(type: "int", nullable: false), - QuantityDemand19 = table.Column(type: "int", nullable: false), - QuantityDemand20 = table.Column(type: "int", nullable: false), - QuantityDemand21 = table.Column(type: "int", nullable: false), - QuantityDemand22 = table.Column(type: "int", nullable: false), - QuantityDemand23 = table.Column(type: "int", nullable: false), - QuantityDemand24 = table.Column(type: "int", nullable: false), - QuantityDemand25 = table.Column(type: "int", nullable: false), - QuantityDemand26 = table.Column(type: "int", nullable: false), - QuantityDemand27 = table.Column(type: "int", nullable: false), - QuantityDemand28 = table.Column(type: "int", nullable: false), - QuantityDemand29 = table.Column(type: "int", nullable: false), - QuantityDemand30 = table.Column(type: "int", nullable: false), - QuantityDemand31 = table.Column(type: "int", nullable: false), - IsUpdate = table.Column(type: "nvarchar(max)", nullable: false), - CreateByUser = table.Column(type: "nvarchar(max)", nullable: false), - CreateTime = table.Column(type: "nvarchar(max)", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(max)", nullable: false), - UpdateTime = table.Column(type: "nvarchar(max)", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_MRP_DATE", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_MRP_MONTH", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ReleaseEdition = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), - PlantId = table.Column(type: "nvarchar(max)", nullable: false), - PlantName = table.Column(type: "nvarchar(max)", nullable: false), - StartMonth = table.Column(type: "nvarchar(max)", nullable: false), - QuantityDemand1 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand2 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand3 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand4 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand5 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand6 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand7 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand8 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand9 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand10 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand11 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand12 = table.Column(type: "decimal(18,2)", nullable: false), - IsUpdate = table.Column(type: "nvarchar(max)", nullable: false), - CreateByUser = table.Column(type: "nvarchar(max)", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(max)", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "nvarchar(max)", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_MRP_MONTH", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_MRP_STATE", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - PlantId = table.Column(type: "nvarchar(max)", nullable: false), - PlantName = table.Column(type: "nvarchar(max)", nullable: false), - DemandSrate = table.Column(type: "nvarchar(max)", nullable: false), - DemandType = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), - SummarySign = table.Column(type: "nvarchar(max)", nullable: false), - DateRequired = table.Column(type: "nvarchar(max)", nullable: false), - QuantityDemand = table.Column(type: "int", nullable: false), - ConfirmTime = table.Column(type: "nvarchar(max)", nullable: false), - CreatQuantity = table.Column(type: "int", nullable: false), - QuantityDelivery = table.Column(type: "int", nullable: false), - QuantityReceive = table.Column(type: "int", nullable: false), - QuantityInTransit = table.Column(type: "int", nullable: false), - OnTimePercentage = table.Column(type: "int", nullable: false), - SummaryCreatQuantity = table.Column(type: "int", nullable: false), - SummaryQuantityDelivery = table.Column(type: "int", nullable: false), - SummaryQuantityReceive = table.Column(type: "int", nullable: false), - SummaryQuantityInTransit = table.Column(type: "int", nullable: false), - CreateByUser = table.Column(type: "nvarchar(max)", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(max)", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_MRP_STATE", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PO", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - PurchaseOrder = table.Column(type: "nvarchar(max)", nullable: false), - SerialNumber = table.Column(type: "nvarchar(max)", nullable: false), - PlantId = table.Column(type: "nvarchar(max)", nullable: false), - PlantName = table.Column(type: "nvarchar(max)", nullable: false), - VoucherDate = table.Column(type: "nvarchar(max)", nullable: false), - Purchaser = table.Column(type: "nvarchar(max)", nullable: false), - Supplier = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), - QuantityDemand = table.Column(type: "int", nullable: false), - MaterialUnit = table.Column(type: "nvarchar(max)", nullable: false), - DeliveryDate = table.Column(type: "nvarchar(max)", nullable: false), - DeliveryPlace = table.Column(type: "nvarchar(max)", nullable: false), - QuantityDelivery = table.Column(type: "int", nullable: false), - Note = table.Column(type: "nvarchar(max)", nullable: false), - ItemType = table.Column(type: "nvarchar(max)", nullable: false), - TradeTerms = table.Column(type: "nvarchar(max)", nullable: false), - Country = table.Column(type: "nvarchar(max)", nullable: false), - Batch = table.Column(type: "nvarchar(max)", nullable: false), - CreateByUser = table.Column(type: "nvarchar(max)", nullable: false), - CreateTime = table.Column(type: "nvarchar(max)", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(max)", nullable: false), - UpdateTime = table.Column(type: "nvarchar(max)", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PO", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_ATTACHMENT_DATA", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_CPS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_CPS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_CSCHEDUL", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Models = table.Column(type: "nvarchar(max)", nullable: false), - Vin = table.Column(type: "nvarchar(max)", nullable: false), - ProductionLineId = table.Column(type: "nvarchar(max)", nullable: false), - ProductionLineName = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), - SortDate = table.Column(type: "nvarchar(max)", nullable: false), - SortTime = table.Column(type: "nvarchar(max)", nullable: false), - OnLineDate = table.Column(type: "nvarchar(max)", nullable: false), - OnLineTime = table.Column(type: "nvarchar(max)", nullable: false), - ModelCategory = table.Column(type: "nvarchar(max)", nullable: false), - AssemblyMaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - MotorMaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - Plant = table.Column(type: "nvarchar(max)", nullable: false), - CreateByUser = table.Column(type: "nvarchar(max)", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(max)", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_CSCHEDUL", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_DATA", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_DATA", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_ENVIRONMENT", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_FIRST_PASSYIELD", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_FIRST_PASSYIELD", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_FLAW", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_FLAW", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_HSCHEDUL", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Models = table.Column(type: "nvarchar(max)", nullable: false), - Vin = table.Column(type: "nvarchar(max)", nullable: false), - ProductionLineId = table.Column(type: "nvarchar(max)", nullable: false), - ProductionLineName = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), - ProductionType = table.Column(type: "nvarchar(max)", nullable: false), - OnLineTime = table.Column(type: "nvarchar(max)", nullable: false), - CreateByUser = table.Column(type: "nvarchar(max)", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(max)", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_HSCHEDUL", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_MATERIAL_DATA", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_MATERIAL_STOCK", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_STOCK", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_OEE_TIME_DETAILS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_PLANING", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Models = table.Column(type: "nvarchar(max)", nullable: false), - Quantity1 = table.Column(type: "decimal(18,2)", nullable: true), - Quantity2 = table.Column(type: "decimal(18,2)", nullable: true), - StartMonth = table.Column(type: "nvarchar(max)", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(max)", nullable: false), - Pattern = table.Column(type: "nvarchar(max)", nullable: false), - Omterior = table.Column(type: "nvarchar(max)", nullable: false), - SalseDepartment = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: true), - Type = table.Column(type: "nvarchar(max)", nullable: false), - Quantity3 = table.Column(type: "decimal(18,2)", nullable: true), - ReleaseEdition = table.Column(type: "nvarchar(max)", nullable: false), - Quantity4 = table.Column(type: "decimal(18,2)", nullable: true), - Version = table.Column(type: "int", nullable: false), - Quantity5 = table.Column(type: "decimal(18,2)", nullable: true), - Quantity6 = table.Column(type: "decimal(18,2)", nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: true), - Plant = table.Column(type: "nvarchar(max)", nullable: false), - Assembly = table.Column(type: "nvarchar(max)", nullable: false), - CreateByUser = table.Column(type: "nvarchar(max)", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_PLANING", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_PROCESS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_SCHEDULING", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_SCHEDULING", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkOrderNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - DefectiveNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - AcceptableNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - OncePassRateRealValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - OncePassRateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), - StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_STATION_FIRST_PASSYIELD", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_TSCHEDUL", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Models = table.Column(type: "nvarchar(max)", nullable: false), - Vin = table.Column(type: "nvarchar(max)", nullable: false), - ProductionLineId = table.Column(type: "nvarchar(max)", nullable: false), - ProductionLineName = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), - OnLineTime = table.Column(type: "nvarchar(max)", nullable: false), - FinalWorkshop = table.Column(type: "nvarchar(max)", nullable: false), - FinalOnLineTime = table.Column(type: "nvarchar(max)", nullable: false), - CreateByUser = table.Column(type: "nvarchar(max)", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(max)", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_TSCHEDUL", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_RETURN", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ReturnNumber = table.Column(type: "nvarchar(max)", nullable: false), - SerialNumber = table.Column(type: "nvarchar(max)", nullable: false), - SerialSrate = table.Column(type: "nvarchar(max)", nullable: false), - PickUpLocation = table.Column(type: "nvarchar(max)", nullable: false), - DemandPickupTime = table.Column(type: "nvarchar(max)", nullable: false), - PickUpCrossings = table.Column(type: "nvarchar(max)", nullable: false), - Feedback = table.Column(type: "nvarchar(max)", nullable: false), - Plant = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), - QuantityDelivery = table.Column(type: "int", nullable: false), - ReturnType = table.Column(type: "nvarchar(max)", nullable: false), - LotNumber = table.Column(type: "nvarchar(max)", nullable: false), - Judge = table.Column(type: "nvarchar(max)", nullable: false), - ReturnReason = table.Column(type: "nvarchar(max)", nullable: false), - CreateByUser = table.Column(type: "nvarchar(max)", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(max)", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_RETURN", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_SA_WEEK", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ScheduleAgreement = table.Column(type: "nvarchar(max)", nullable: false), - SerialNumber = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), - PurchasingGroup = table.Column(type: "nvarchar(max)", nullable: false), - PlantId = table.Column(type: "nvarchar(max)", nullable: false), - QuantityDemand = table.Column(type: "int", nullable: false), - DateReceived = table.Column(type: "nvarchar(max)", nullable: false), - CreateByUser = table.Column(type: "nvarchar(max)", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(max)", nullable: false), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_SA_WEEK", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_SINV_DATA", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "nvarchar(max)", nullable: false), - SupplierName = table.Column(type: "nvarchar(max)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), - MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), - MaterialType = table.Column(type: "nvarchar(max)", nullable: false), - QuantityCurrent = table.Column(type: "int", nullable: false), - QuantityPlan = table.Column(type: "int", nullable: false), - InventoryStatus = table.Column(type: "nvarchar(max)", nullable: false), - SafetyStock = table.Column(type: "int", nullable: false), - ProductionCycle = table.Column(type: "nvarchar(max)", nullable: false), - DataUpdateTime = table.Column(type: "nvarchar(max)", nullable: false), - SupplierBatch = table.Column(type: "nvarchar(max)", nullable: false), - SupplieryxqDate = table.Column(type: "nvarchar(max)", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_SINV_DATA", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "TaskConifgure", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Api = table.Column(type: "nvarchar(max)", nullable: false), - Corn = table.Column(type: "nvarchar(max)", nullable: false), - Module = table.Column(type: "nvarchar(max)", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TableName = table.Column(type: "nvarchar(max)", nullable: false), - TaskName = table.Column(type: "nvarchar(max)", nullable: false), - Url = table.Column(type: "nvarchar(max)", nullable: false), - IsAuto = table.Column(type: "bit", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_TaskConifgure", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "TaskLogs", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Info = table.Column(type: "nvarchar(max)", nullable: false), - Type = table.Column(type: "nvarchar(max)", nullable: false), - TaskName = table.Column(type: "nvarchar(max)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_TaskLogs", x => x.UId); - }); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "SUPPLIER_BOM"); - - migrationBuilder.DropTable( - name: "SUPPLIER_CON_DATE"); - - migrationBuilder.DropTable( - name: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropTable( - name: "SUPPLIER_CON_PO"); - - migrationBuilder.DropTable( - name: "SUPPLIER_DEL_STATE"); - - migrationBuilder.DropTable( - name: "SUPPLIER_EMPLOYEE"); - - migrationBuilder.DropTable( - name: "SUPPLIER_INFO"); - - migrationBuilder.DropTable( - name: "SUPPLIER_INV_DATA"); - - migrationBuilder.DropTable( - name: "SUPPLIER_MRP_DATE"); - - migrationBuilder.DropTable( - name: "SUPPLIER_MRP_MONTH"); - - migrationBuilder.DropTable( - name: "SUPPLIER_MRP_STATE"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PO"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_ATTACHMENT_DATA"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_CPS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_CSCHEDUL"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_DATA"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_ENVIRONMENT"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_FIRST_PASSYIELD"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_HSCHEDUL"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_MATERIAL_DATA"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_MATERIAL_STOCK"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_OEE_TIME_DETAILS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_PLANING"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_PROCESS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_SCHEDULING"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_TSCHEDUL"); - - migrationBuilder.DropTable( - name: "SUPPLIER_RETURN"); - - migrationBuilder.DropTable( - name: "SUPPLIER_SA_WEEK"); - - migrationBuilder.DropTable( - name: "SUPPLIER_SINV_DATA"); - - migrationBuilder.DropTable( - name: "TaskConifgure"); - - migrationBuilder.DropTable( - name: "TaskLogs"); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.Designer.cs deleted file mode 100644 index 1d6ad7e..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.Designer.cs +++ /dev/null @@ -1,2411 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250529005719_2025052901")] - partial class _2025052901 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Measures") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityMeet1") - .HasColumnType("int"); - - b.Property("QuantityMeet10") - .HasColumnType("int"); - - b.Property("QuantityMeet11") - .HasColumnType("int"); - - b.Property("QuantityMeet12") - .HasColumnType("int"); - - b.Property("QuantityMeet13") - .HasColumnType("int"); - - b.Property("QuantityMeet14") - .HasColumnType("int"); - - b.Property("QuantityMeet15") - .HasColumnType("int"); - - b.Property("QuantityMeet16") - .HasColumnType("int"); - - b.Property("QuantityMeet17") - .HasColumnType("int"); - - b.Property("QuantityMeet18") - .HasColumnType("int"); - - b.Property("QuantityMeet19") - .HasColumnType("int"); - - b.Property("QuantityMeet2") - .HasColumnType("int"); - - b.Property("QuantityMeet20") - .HasColumnType("int"); - - b.Property("QuantityMeet21") - .HasColumnType("int"); - - b.Property("QuantityMeet22") - .HasColumnType("int"); - - b.Property("QuantityMeet23") - .HasColumnType("int"); - - b.Property("QuantityMeet24") - .HasColumnType("int"); - - b.Property("QuantityMeet25") - .HasColumnType("int"); - - b.Property("QuantityMeet26") - .HasColumnType("int"); - - b.Property("QuantityMeet27") - .HasColumnType("int"); - - b.Property("QuantityMeet28") - .HasColumnType("int"); - - b.Property("QuantityMeet29") - .HasColumnType("int"); - - b.Property("QuantityMeet3") - .HasColumnType("int"); - - b.Property("QuantityMeet30") - .HasColumnType("int"); - - b.Property("QuantityMeet31") - .HasColumnType("int"); - - b.Property("QuantityMeet4") - .HasColumnType("int"); - - b.Property("QuantityMeet5") - .HasColumnType("int"); - - b.Property("QuantityMeet6") - .HasColumnType("int"); - - b.Property("QuantityMeet7") - .HasColumnType("int"); - - b.Property("QuantityMeet8") - .HasColumnType("int"); - - b.Property("QuantityMeet9") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("VentureType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Measures") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityMeet1") - .HasColumnType("int"); - - b.Property("QuantityMeet10") - .HasColumnType("int"); - - b.Property("QuantityMeet11") - .HasColumnType("int"); - - b.Property("QuantityMeet12") - .HasColumnType("int"); - - b.Property("QuantityMeet2") - .HasColumnType("int"); - - b.Property("QuantityMeet3") - .HasColumnType("int"); - - b.Property("QuantityMeet4") - .HasColumnType("int"); - - b.Property("QuantityMeet5") - .HasColumnType("int"); - - b.Property("QuantityMeet6") - .HasColumnType("int"); - - b.Property("QuantityMeet7") - .HasColumnType("int"); - - b.Property("QuantityMeet8") - .HasColumnType("int"); - - b.Property("QuantityMeet9") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("VentureType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Measures") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseOrder") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityMeet") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("VentureType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RoadShippedTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialSrate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierReceiveTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityCurrent") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDemand1") - .HasColumnType("int"); - - b.Property("QuantityDemand10") - .HasColumnType("int"); - - b.Property("QuantityDemand11") - .HasColumnType("int"); - - b.Property("QuantityDemand12") - .HasColumnType("int"); - - b.Property("QuantityDemand13") - .HasColumnType("int"); - - b.Property("QuantityDemand14") - .HasColumnType("int"); - - b.Property("QuantityDemand15") - .HasColumnType("int"); - - b.Property("QuantityDemand16") - .HasColumnType("int"); - - b.Property("QuantityDemand17") - .HasColumnType("int"); - - b.Property("QuantityDemand18") - .HasColumnType("int"); - - b.Property("QuantityDemand19") - .HasColumnType("int"); - - b.Property("QuantityDemand2") - .HasColumnType("int"); - - b.Property("QuantityDemand20") - .HasColumnType("int"); - - b.Property("QuantityDemand21") - .HasColumnType("int"); - - b.Property("QuantityDemand22") - .HasColumnType("int"); - - b.Property("QuantityDemand23") - .HasColumnType("int"); - - b.Property("QuantityDemand24") - .HasColumnType("int"); - - b.Property("QuantityDemand25") - .HasColumnType("int"); - - b.Property("QuantityDemand26") - .HasColumnType("int"); - - b.Property("QuantityDemand27") - .HasColumnType("int"); - - b.Property("QuantityDemand28") - .HasColumnType("int"); - - b.Property("QuantityDemand29") - .HasColumnType("int"); - - b.Property("QuantityDemand3") - .HasColumnType("int"); - - b.Property("QuantityDemand30") - .HasColumnType("int"); - - b.Property("QuantityDemand31") - .HasColumnType("int"); - - b.Property("QuantityDemand4") - .HasColumnType("int"); - - b.Property("QuantityDemand5") - .HasColumnType("int"); - - b.Property("QuantityDemand6") - .HasColumnType("int"); - - b.Property("QuantityDemand7") - .HasColumnType("int"); - - b.Property("QuantityDemand8") - .HasColumnType("int"); - - b.Property("QuantityDemand9") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsUpdate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreatQuantity") - .HasColumnType("int"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DemandSrate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DemandType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnTimePercentage") - .HasColumnType("int"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("QuantityDemand") - .HasColumnType("int"); - - b.Property("QuantityInTransit") - .HasColumnType("int"); - - b.Property("QuantityReceive") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("int"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("int"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("int"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("int"); - - b.Property("SummarySign") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Country") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryPlace") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialUnit") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Note") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseOrder") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Purchaser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("QuantityDemand") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Supplier") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ModelCategory") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MotorMaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Plant") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SortTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Omterior") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Plant") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("FinalWorkshop") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Feedback") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("LotNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PickUpCrossings") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PickUpLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Plant") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnReason") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialSrate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PurchasingGroup") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDemand") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionCycle") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityCurrent") - .HasColumnType("int"); - - b.Property("QuantityPlan") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SafetyStock") - .HasColumnType("int"); - - b.Property("SupplierBatch") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplieryxqDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.cs b/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.cs deleted file mode 100644 index 9a09ca7..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.cs +++ /dev/null @@ -1,502 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class _2025052901 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_ATTACHMENT_DATA"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_ENVIRONMENT"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_MATERIAL_DATA"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_OEE_TIME_DETAILS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_PROCESS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_FLAW", - type: "NVarchar(500)", - maxLength: 500, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AddColumn( - name: "CheryProductName", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(100)", - maxLength: 100, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "CheryProductNo", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "CheryProductSn", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ClassOfName", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "DefectsCode", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "DefectsDesc", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(255)", - maxLength: 255, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "DefectsLevel", - table: "SUPPLIER_PRO_FLAW", - type: "CHAR(1)", - maxLength: 1, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "DefectsName", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(100)", - maxLength: 100, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ManufactureNo", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Numberofdefect", - table: "SUPPLIER_PRO_FLAW", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "PlantId", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "PlantName", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ProductBatchNo", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ProductionLineId", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ProductionLineName", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "StationId", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "StationName", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "StatisticalTime", - table: "SUPPLIER_PRO_FLAW", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "SupplierCode", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "SupplierName", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "VendorProductBatch", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "VendorProductName", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(100)", - maxLength: 100, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "VendorProductNo", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "VendorProductSn", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkShift", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(10)", - maxLength: 10, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkshopId", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkshopName", - table: "SUPPLIER_PRO_FLAW", - type: "VARCHAR(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "CheryProductName", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "CheryProductNo", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "CheryProductSn", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "ClassOfName", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "DefectsCode", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "DefectsDesc", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "DefectsLevel", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "DefectsName", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "ManufactureNo", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "Numberofdefect", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "PlantId", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "PlantName", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "ProductBatchNo", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "ProductionLineId", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "ProductionLineName", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "StationId", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "StationName", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "StatisticalTime", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "SupplierCode", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "SupplierName", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "VendorProductBatch", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "VendorProductName", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "VendorProductNo", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "VendorProductSn", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "WorkShift", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "WorkshopId", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "WorkshopName", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_FLAW", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(string), - oldType: "NVarchar(500)", - oldMaxLength: 500); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_ATTACHMENT_DATA", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - CreationTime = table.Column(type: "datetime2", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - WriteState = table.Column(type: "bit", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_ENVIRONMENT", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - CreationTime = table.Column(type: "datetime2", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - WriteState = table.Column(type: "bit", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_MATERIAL_DATA", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - CreationTime = table.Column(type: "datetime2", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - WriteState = table.Column(type: "bit", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - CreationTime = table.Column(type: "datetime2", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - WriteState = table.Column(type: "bit", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_OEE_TIME_DETAILS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - CreationTime = table.Column(type: "datetime2", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - WriteState = table.Column(type: "bit", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_PROCESS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - CreationTime = table.Column(type: "datetime2", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - WriteState = table.Column(type: "bit", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - CreationTime = table.Column(type: "datetime2", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - WriteState = table.Column(type: "bit", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT", x => x.UId); - }); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.Designer.cs deleted file mode 100644 index 352b9f3..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.Designer.cs +++ /dev/null @@ -1,2389 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250529013720_2025052902")] - partial class _2025052902 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Measures") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityMeet1") - .HasColumnType("int"); - - b.Property("QuantityMeet10") - .HasColumnType("int"); - - b.Property("QuantityMeet11") - .HasColumnType("int"); - - b.Property("QuantityMeet12") - .HasColumnType("int"); - - b.Property("QuantityMeet13") - .HasColumnType("int"); - - b.Property("QuantityMeet14") - .HasColumnType("int"); - - b.Property("QuantityMeet15") - .HasColumnType("int"); - - b.Property("QuantityMeet16") - .HasColumnType("int"); - - b.Property("QuantityMeet17") - .HasColumnType("int"); - - b.Property("QuantityMeet18") - .HasColumnType("int"); - - b.Property("QuantityMeet19") - .HasColumnType("int"); - - b.Property("QuantityMeet2") - .HasColumnType("int"); - - b.Property("QuantityMeet20") - .HasColumnType("int"); - - b.Property("QuantityMeet21") - .HasColumnType("int"); - - b.Property("QuantityMeet22") - .HasColumnType("int"); - - b.Property("QuantityMeet23") - .HasColumnType("int"); - - b.Property("QuantityMeet24") - .HasColumnType("int"); - - b.Property("QuantityMeet25") - .HasColumnType("int"); - - b.Property("QuantityMeet26") - .HasColumnType("int"); - - b.Property("QuantityMeet27") - .HasColumnType("int"); - - b.Property("QuantityMeet28") - .HasColumnType("int"); - - b.Property("QuantityMeet29") - .HasColumnType("int"); - - b.Property("QuantityMeet3") - .HasColumnType("int"); - - b.Property("QuantityMeet30") - .HasColumnType("int"); - - b.Property("QuantityMeet31") - .HasColumnType("int"); - - b.Property("QuantityMeet4") - .HasColumnType("int"); - - b.Property("QuantityMeet5") - .HasColumnType("int"); - - b.Property("QuantityMeet6") - .HasColumnType("int"); - - b.Property("QuantityMeet7") - .HasColumnType("int"); - - b.Property("QuantityMeet8") - .HasColumnType("int"); - - b.Property("QuantityMeet9") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("VentureType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Measures") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityMeet1") - .HasColumnType("int"); - - b.Property("QuantityMeet10") - .HasColumnType("int"); - - b.Property("QuantityMeet11") - .HasColumnType("int"); - - b.Property("QuantityMeet12") - .HasColumnType("int"); - - b.Property("QuantityMeet2") - .HasColumnType("int"); - - b.Property("QuantityMeet3") - .HasColumnType("int"); - - b.Property("QuantityMeet4") - .HasColumnType("int"); - - b.Property("QuantityMeet5") - .HasColumnType("int"); - - b.Property("QuantityMeet6") - .HasColumnType("int"); - - b.Property("QuantityMeet7") - .HasColumnType("int"); - - b.Property("QuantityMeet8") - .HasColumnType("int"); - - b.Property("QuantityMeet9") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("VentureType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Measures") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseOrder") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityMeet") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("VentureType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RoadShippedTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialSrate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierReceiveTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityCurrent") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDemand1") - .HasColumnType("int"); - - b.Property("QuantityDemand10") - .HasColumnType("int"); - - b.Property("QuantityDemand11") - .HasColumnType("int"); - - b.Property("QuantityDemand12") - .HasColumnType("int"); - - b.Property("QuantityDemand13") - .HasColumnType("int"); - - b.Property("QuantityDemand14") - .HasColumnType("int"); - - b.Property("QuantityDemand15") - .HasColumnType("int"); - - b.Property("QuantityDemand16") - .HasColumnType("int"); - - b.Property("QuantityDemand17") - .HasColumnType("int"); - - b.Property("QuantityDemand18") - .HasColumnType("int"); - - b.Property("QuantityDemand19") - .HasColumnType("int"); - - b.Property("QuantityDemand2") - .HasColumnType("int"); - - b.Property("QuantityDemand20") - .HasColumnType("int"); - - b.Property("QuantityDemand21") - .HasColumnType("int"); - - b.Property("QuantityDemand22") - .HasColumnType("int"); - - b.Property("QuantityDemand23") - .HasColumnType("int"); - - b.Property("QuantityDemand24") - .HasColumnType("int"); - - b.Property("QuantityDemand25") - .HasColumnType("int"); - - b.Property("QuantityDemand26") - .HasColumnType("int"); - - b.Property("QuantityDemand27") - .HasColumnType("int"); - - b.Property("QuantityDemand28") - .HasColumnType("int"); - - b.Property("QuantityDemand29") - .HasColumnType("int"); - - b.Property("QuantityDemand3") - .HasColumnType("int"); - - b.Property("QuantityDemand30") - .HasColumnType("int"); - - b.Property("QuantityDemand31") - .HasColumnType("int"); - - b.Property("QuantityDemand4") - .HasColumnType("int"); - - b.Property("QuantityDemand5") - .HasColumnType("int"); - - b.Property("QuantityDemand6") - .HasColumnType("int"); - - b.Property("QuantityDemand7") - .HasColumnType("int"); - - b.Property("QuantityDemand8") - .HasColumnType("int"); - - b.Property("QuantityDemand9") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsUpdate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreatQuantity") - .HasColumnType("int"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DemandSrate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DemandType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnTimePercentage") - .HasColumnType("int"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("QuantityDemand") - .HasColumnType("int"); - - b.Property("QuantityInTransit") - .HasColumnType("int"); - - b.Property("QuantityReceive") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("int"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("int"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("int"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("int"); - - b.Property("SummarySign") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Country") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryPlace") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialUnit") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Note") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseOrder") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Purchaser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("QuantityDemand") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Supplier") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ModelCategory") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MotorMaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Plant") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SortTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Omterior") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Plant") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("FinalWorkshop") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Feedback") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("LotNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PickUpCrossings") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PickUpLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Plant") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnReason") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialSrate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PurchasingGroup") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDemand") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionCycle") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityCurrent") - .HasColumnType("int"); - - b.Property("QuantityPlan") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SafetyStock") - .HasColumnType("int"); - - b.Property("SupplierBatch") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplieryxqDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.cs b/API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.cs deleted file mode 100644 index e6b8416..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250529013720_2025052902.cs +++ /dev/null @@ -1,530 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class _2025052902 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_SINV_DATA", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_RETURN", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", - type: "NVarchar(500)", - maxLength: 500, - nullable: true, - oldClrType: typeof(string), - oldType: "NVarchar(500)", - oldMaxLength: 500); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_SCHEDULING", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_MATERIAL_STOCK", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "WriteState", - table: "SUPPLIER_PRO_FLAW", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_FLAW", - type: "NVarchar(500)", - maxLength: 500, - nullable: true, - oldClrType: typeof(string), - oldType: "NVarchar(500)", - oldMaxLength: 500); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_FLAW", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_FIRST_PASSYIELD", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_DATA", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_CPS", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PO", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_INFO", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_EMPLOYEE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_CON_PO", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_CON_MMRP", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_CON_DATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_BOM", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_SINV_DATA", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_RETURN", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", - type: "NVarchar(500)", - maxLength: 500, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "NVarchar(500)", - oldMaxLength: 500, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_SCHEDULING", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_MATERIAL_STOCK", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "WriteState", - table: "SUPPLIER_PRO_FLAW", - type: "bit", - nullable: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_FLAW", - type: "NVarchar(500)", - maxLength: 500, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "NVarchar(500)", - oldMaxLength: 500, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_FLAW", - type: "bit", - nullable: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_FIRST_PASSYIELD", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_DATA", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_CPS", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PO", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_INFO", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_EMPLOYEE", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_CON_PO", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_CON_MMRP", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_CON_DATE", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_BOM", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.Designer.cs deleted file mode 100644 index 6f776fc..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.Designer.cs +++ /dev/null @@ -1,3312 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250529020443_2025052903")] - partial class _2025052903 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Measures") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityMeet1") - .HasColumnType("int"); - - b.Property("QuantityMeet10") - .HasColumnType("int"); - - b.Property("QuantityMeet11") - .HasColumnType("int"); - - b.Property("QuantityMeet12") - .HasColumnType("int"); - - b.Property("QuantityMeet13") - .HasColumnType("int"); - - b.Property("QuantityMeet14") - .HasColumnType("int"); - - b.Property("QuantityMeet15") - .HasColumnType("int"); - - b.Property("QuantityMeet16") - .HasColumnType("int"); - - b.Property("QuantityMeet17") - .HasColumnType("int"); - - b.Property("QuantityMeet18") - .HasColumnType("int"); - - b.Property("QuantityMeet19") - .HasColumnType("int"); - - b.Property("QuantityMeet2") - .HasColumnType("int"); - - b.Property("QuantityMeet20") - .HasColumnType("int"); - - b.Property("QuantityMeet21") - .HasColumnType("int"); - - b.Property("QuantityMeet22") - .HasColumnType("int"); - - b.Property("QuantityMeet23") - .HasColumnType("int"); - - b.Property("QuantityMeet24") - .HasColumnType("int"); - - b.Property("QuantityMeet25") - .HasColumnType("int"); - - b.Property("QuantityMeet26") - .HasColumnType("int"); - - b.Property("QuantityMeet27") - .HasColumnType("int"); - - b.Property("QuantityMeet28") - .HasColumnType("int"); - - b.Property("QuantityMeet29") - .HasColumnType("int"); - - b.Property("QuantityMeet3") - .HasColumnType("int"); - - b.Property("QuantityMeet30") - .HasColumnType("int"); - - b.Property("QuantityMeet31") - .HasColumnType("int"); - - b.Property("QuantityMeet4") - .HasColumnType("int"); - - b.Property("QuantityMeet5") - .HasColumnType("int"); - - b.Property("QuantityMeet6") - .HasColumnType("int"); - - b.Property("QuantityMeet7") - .HasColumnType("int"); - - b.Property("QuantityMeet8") - .HasColumnType("int"); - - b.Property("QuantityMeet9") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("VentureType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Measures") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityMeet1") - .HasColumnType("int"); - - b.Property("QuantityMeet10") - .HasColumnType("int"); - - b.Property("QuantityMeet11") - .HasColumnType("int"); - - b.Property("QuantityMeet12") - .HasColumnType("int"); - - b.Property("QuantityMeet2") - .HasColumnType("int"); - - b.Property("QuantityMeet3") - .HasColumnType("int"); - - b.Property("QuantityMeet4") - .HasColumnType("int"); - - b.Property("QuantityMeet5") - .HasColumnType("int"); - - b.Property("QuantityMeet6") - .HasColumnType("int"); - - b.Property("QuantityMeet7") - .HasColumnType("int"); - - b.Property("QuantityMeet8") - .HasColumnType("int"); - - b.Property("QuantityMeet9") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("VentureType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Measures") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseOrder") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityMeet") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("VentureType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("RoadShippedTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialSrate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierReceiveTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityCurrent") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDemand1") - .HasColumnType("int"); - - b.Property("QuantityDemand10") - .HasColumnType("int"); - - b.Property("QuantityDemand11") - .HasColumnType("int"); - - b.Property("QuantityDemand12") - .HasColumnType("int"); - - b.Property("QuantityDemand13") - .HasColumnType("int"); - - b.Property("QuantityDemand14") - .HasColumnType("int"); - - b.Property("QuantityDemand15") - .HasColumnType("int"); - - b.Property("QuantityDemand16") - .HasColumnType("int"); - - b.Property("QuantityDemand17") - .HasColumnType("int"); - - b.Property("QuantityDemand18") - .HasColumnType("int"); - - b.Property("QuantityDemand19") - .HasColumnType("int"); - - b.Property("QuantityDemand2") - .HasColumnType("int"); - - b.Property("QuantityDemand20") - .HasColumnType("int"); - - b.Property("QuantityDemand21") - .HasColumnType("int"); - - b.Property("QuantityDemand22") - .HasColumnType("int"); - - b.Property("QuantityDemand23") - .HasColumnType("int"); - - b.Property("QuantityDemand24") - .HasColumnType("int"); - - b.Property("QuantityDemand25") - .HasColumnType("int"); - - b.Property("QuantityDemand26") - .HasColumnType("int"); - - b.Property("QuantityDemand27") - .HasColumnType("int"); - - b.Property("QuantityDemand28") - .HasColumnType("int"); - - b.Property("QuantityDemand29") - .HasColumnType("int"); - - b.Property("QuantityDemand3") - .HasColumnType("int"); - - b.Property("QuantityDemand30") - .HasColumnType("int"); - - b.Property("QuantityDemand31") - .HasColumnType("int"); - - b.Property("QuantityDemand4") - .HasColumnType("int"); - - b.Property("QuantityDemand5") - .HasColumnType("int"); - - b.Property("QuantityDemand6") - .HasColumnType("int"); - - b.Property("QuantityDemand7") - .HasColumnType("int"); - - b.Property("QuantityDemand8") - .HasColumnType("int"); - - b.Property("QuantityDemand9") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("IsUpdate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreatQuantity") - .HasColumnType("int"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DemandSrate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DemandType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnTimePercentage") - .HasColumnType("int"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("QuantityDemand") - .HasColumnType("int"); - - b.Property("QuantityInTransit") - .HasColumnType("int"); - - b.Property("QuantityReceive") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("int"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("int"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("int"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("int"); - - b.Property("SummarySign") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Country") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("DeliveryPlace") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialUnit") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Note") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseOrder") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Purchaser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("QuantityDemand") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Supplier") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ModelCategory") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MotorMaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Plant") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SortTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Omterior") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Plant") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("FinalWorkshop") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Models") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionLineName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Feedback") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("LotNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PickUpCrossings") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PickUpLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Plant") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnReason") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialSrate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("PurchasingGroup") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityDemand") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDescription") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialType") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionCycle") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("QuantityCurrent") - .HasColumnType("int"); - - b.Property("QuantityPlan") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SafetyStock") - .HasColumnType("int"); - - b.Property("SupplierBatch") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplieryxqDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.cs b/API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.cs deleted file mode 100644 index 3a0fe87..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250529020443_2025052903.cs +++ /dev/null @@ -1,303 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class _2025052903 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_ATTACHMENT_DATA", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - Type = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - FileName = table.Column(type: "VARCHAR(300)", maxLength: 300, nullable: false), - FileUrl = table.Column(type: "VARCHAR(1000)", maxLength: 1000, nullable: false), - DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DeviceId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductSn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_ENVIRONMENT", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - EnvIndicatorName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - NumValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - UpperLimit = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - LowerLimit = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - ChineseUnit = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - EquipmentCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - EquipmentName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - DataCollectionPoint = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - CollectTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_MATERIAL_DATA", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - Type = table.Column(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false), - VendorHardwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - OemHardwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - OemSoftwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - OemModel = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - OemProjectName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), - Launched = table.Column(type: "VARCHAR(6)", maxLength: 6, nullable: true), - DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), - ProcurementType = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), - MpnCode = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), - MpnName = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), - ValidDays = table.Column(type: "CHAR(12)", maxLength: 12, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DeviceId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - Rate = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - RateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), - StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_OEE_TIME_DETAILS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceName = table.Column(type: "VARCHAR(33)", maxLength: 33, nullable: false), - RecId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - Type = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SubType = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SubTypeName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StartTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - EndTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_PROCESS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - CheryProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - SupplierCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - TechCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - TechName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ValidPeriod = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - TechVersion = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - MoldCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - MoldName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - MaxProcessingCapacity = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProcessCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProcessName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProcessOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), - DeviceCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - Rhythm = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - RhythmUnit = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DeviceType = table.Column(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false), - DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - Manufacturer = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ModelNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - SerialNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionDate = table.Column(type: "CHAR(16)", maxLength: 16, nullable: false), - Material = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CurrentLocation = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DeviceStatus = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - CavityCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), - MoldSize = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DesignLifeUnits = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - DesignLifeValue = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - CurrentUsageCount = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - OverhaulCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), - CoolingChannelLayout = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DetectionAccuracy = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CalibrationDate = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - CalibrationDueDays = table.Column(type: "CHAR(12)", maxLength: 12, nullable: false), - ToleranceRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WearThreshold = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DetectionRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - UnitType = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT", x => x.UId); - }); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_ATTACHMENT_DATA"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_ENVIRONMENT"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_MATERIAL_DATA"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_OEE_TIME_DETAILS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_PROCESS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.Designer.cs deleted file mode 100644 index 304248c..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.Designer.cs +++ /dev/null @@ -1,4650 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using 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 deleted file mode 100644 index 9124ebc..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250529065559_z20250529.cs +++ /dev/null @@ -1,8729 +0,0 @@ -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/20250529092933_z202505290001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250529092933_z202505290001.Designer.cs deleted file mode 100644 index 8545888..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250529092933_z202505290001.Designer.cs +++ /dev/null @@ -1,4487 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250529092933_z202505290001")] - partial class z202505290001 - { - /// - 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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .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/20250529092933_z202505290001.cs b/API/TaskManager.EntityFramework/Migrations/20250529092933_z202505290001.cs deleted file mode 100644 index 2bf11b0..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250529092933_z202505290001.cs +++ /dev/null @@ -1,3448 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202505290001 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Type", - table: "TaskLogs", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskLogs", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "TaskLogs", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Info", - table: "TaskLogs", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Url", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "TableName", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Module", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Corn", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Api", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_SINV_DATA", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "SerialNumber", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "ScheduleAgreement", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "PurchasingGroup", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "SerialSrate", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "SerialNumber", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "ReturnType", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "ReturnReason", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "ReturnNumber", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_RETURN", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_RETURN", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Plant", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PickUpLocation", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PickUpCrossings", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "LotNumber", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Judge", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Feedback", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Vin", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "ProductionLineName", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "ProductionLineId", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Models", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "FinalWorkshop", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - 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: "UpdateByUser", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Type", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "StartMonth", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "SalseDepartment", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "ReleaseEdition", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Plant", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Pattern", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Omterior", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Models", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Assembly", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Vin", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "ProductionType", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "ProductionLineName", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "ProductionLineId", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Models", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Vin", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "SortTime", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(8)", - maxLength: 8, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(8)", - oldMaxLength: 8); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "ProductionLineName", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "ProductionLineId", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Plant", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "OnLineTime", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(8)", - maxLength: 8, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(8)", - oldMaxLength: 8); - - migrationBuilder.AlterColumn( - name: "MotorMaterialCode", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Models", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "ModelCategory", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "AssemblyMaterialCode", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "TradeTerms", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Supplier", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "SerialNumber", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PO", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PO", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Purchaser", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PurchaseOrder", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PlantName", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Note", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialUnit", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "ItemType", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "DeliveryPlace", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Country", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Batch", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "SummarySign", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "PlantName", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "DemandType", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "DemandSrate", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "StartMonth", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "ReleaseEdition", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PlantName", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "IsUpdate", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "ReleaseEdition", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PlantName", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "IsUpdate", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "StockState", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "PlantName", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "SerialSrate", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "SerialNumber", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "ReceivingCrossings", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "DeliveryNumber", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Type", - table: "TaskLogs", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskLogs", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "TaskLogs", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Info", - table: "TaskLogs", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Url", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TableName", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Module", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Corn", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Api", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_SINV_DATA", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SerialNumber", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ScheduleAgreement", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PurchasingGroup", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SerialSrate", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SerialNumber", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReturnType", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReturnReason", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReturnNumber", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_RETURN", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_RETURN", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Plant", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PickUpLocation", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PickUpCrossings", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LotNumber", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Judge", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Feedback", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Vin", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_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, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProductionLineId", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Models", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FinalWorkshop", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", - type: "NVarchar(500)", - maxLength: 500, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "NVarchar(500)", - oldMaxLength: 500, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Type", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StartMonth", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SalseDepartment", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_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, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Plant", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Pattern", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Omterior", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Models", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Assembly", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Vin", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProductionType", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProductionLineName", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProductionLineId", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Models", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Vin", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SortTime", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(8)", - maxLength: 8, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(8)", - oldMaxLength: 8, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_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, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProductionLineId", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Plant", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "OnLineTime", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(8)", - maxLength: 8, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(8)", - oldMaxLength: 8, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MotorMaterialCode", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Models", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ModelCategory", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AssemblyMaterialCode", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TradeTerms", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Supplier", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SerialNumber", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PO", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PO", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Purchaser", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PurchaseOrder", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantName", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Note", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialUnit", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ItemType", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeliveryPlace", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Country", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SummarySign", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantName", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DemandType", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DemandSrate", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StartMonth", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_MRP_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, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantName", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "IsUpdate", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReleaseEdition", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantName", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "IsUpdate", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StockState", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantName", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UpdateByUser", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SerialSrate", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SerialNumber", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(max)", - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReceivingCrossings", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DeliveryNumber", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateByUser", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250530075115_z202505300001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250530075115_z202505300001.Designer.cs deleted file mode 100644 index 0564e70..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250530075115_z202505300001.Designer.cs +++ /dev/null @@ -1,5091 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250530075115_z202505300001")] - partial class z202505300001 - { - /// - 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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasColumnType("nvarchar(max)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .HasColumnType("nvarchar(max)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250530075115_z202505300001.cs b/API/TaskManager.EntityFramework/Migrations/20250530075115_z202505300001.cs deleted file mode 100644 index 35d69c8..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250530075115_z202505300001.cs +++ /dev/null @@ -1,222 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202505300001 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Client", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.CreateTable( - name: "SUPPLIER_EMPLOYEE_DT", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - StationId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - OperatorId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - OperatorName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - HaveQuantity = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), - DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - PositionId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PositionName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - QualificationLevel = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - CheckInTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - CheckOutTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_EMPLOYEE_DT", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_INFO_DT", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - KeyStation = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), - DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - ProductionLineOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), - StationOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_INFO_DT", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_ATTACHMENT_DATA_DT", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - Type = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - FileName = table.Column(type: "VARCHAR(300)", maxLength: 300, nullable: false), - FileUrl = table.Column(type: "VARCHAR(1000)", maxLength: 1000, nullable: false), - DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DeviceId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductSn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA_DT", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DeviceType = table.Column(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false), - DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - Manufacturer = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ModelNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - SerialNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionDate = table.Column(type: "CHAR(16)", maxLength: 16, nullable: false), - Material = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CurrentLocation = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DeviceStatus = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - CavityCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), - MoldSize = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DesignLifeUnits = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - DesignLifeValue = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - CurrentUsageCount = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - OverhaulCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), - CoolingChannelLayout = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DetectionAccuracy = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CalibrationDate = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - CalibrationDueDays = table.Column(type: "CHAR(12)", maxLength: 12, nullable: false), - ToleranceRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WearThreshold = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DetectionRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - UnitType = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "TaskSub", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - TableName = table.Column(type: "nvarchar(max)", nullable: true), - TaskName = table.Column(type: "nvarchar(max)", nullable: true), - DataCount = table.Column(type: "int", nullable: false), - Subscriber = table.Column(type: "nvarchar(max)", nullable: true), - FailedCount = table.Column(type: "int", nullable: false), - FailedInfo = table.Column(type: "nvarchar(max)", nullable: true), - Domain = table.Column(type: "nvarchar(max)", nullable: true), - Site = table.Column(type: "nvarchar(max)", nullable: false), - CreateUser = table.Column(type: "nvarchar(max)", nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - UpdateUser = table.Column(type: "nvarchar(max)", nullable: true), - UpdateTime = table.Column(type: "datetime2", nullable: true), - SyncedPageCount = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_TaskSub", x => x.UId); - }); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "SUPPLIER_EMPLOYEE_DT"); - - migrationBuilder.DropTable( - name: "SUPPLIER_INFO_DT"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_ATTACHMENT_DATA_DT"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT"); - - migrationBuilder.DropTable( - name: "TaskSub"); - - migrationBuilder.DropColumn( - name: "Client", - table: "TaskConifgure"); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250603010854_z202506030001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250603010854_z202506030001.Designer.cs deleted file mode 100644 index 35bc6fe..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250603010854_z202506030001.Designer.cs +++ /dev/null @@ -1,5175 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250603010854_z202506030001")] - partial class z202506030001 - { - /// - 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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .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("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasColumnType("nvarchar(max)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .HasColumnType("nvarchar(max)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250603010854_z202506030001.cs b/API/TaskManager.EntityFramework/Migrations/20250603010854_z202506030001.cs deleted file mode 100644 index 4713ed6..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250603010854_z202506030001.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506030001 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "QuantityDemand3", - table: "SUPPLIER_MRP_DATE", - type: "decimal(18,2)", - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "QuantityDemand3", - table: "SUPPLIER_MRP_DATE", - type: "int", - nullable: false, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250603014933_z202506030002.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250603014933_z202506030002.Designer.cs deleted file mode 100644 index ceb8ac6..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250603014933_z202506030002.Designer.cs +++ /dev/null @@ -1,5223 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250603014933_z202506030002")] - partial class z202506030002 - { - /// - 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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .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("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasColumnType("nvarchar(max)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .HasColumnType("nvarchar(max)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250603014933_z202506030002.cs b/API/TaskManager.EntityFramework/Migrations/20250603014933_z202506030002.cs deleted file mode 100644 index 403899a..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250603014933_z202506030002.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506030002 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "TaskAllocation", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - TaskName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - TableName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Creator = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Subscriber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_TaskAllocation", x => x.UId); - }); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "TaskAllocation"); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250604031956_2025060402.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250604031956_2025060402.Designer.cs deleted file mode 100644 index 17845b3..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250604031956_2025060402.Designer.cs +++ /dev/null @@ -1,5223 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250604031956_2025060402")] - partial class _2025060402 - { - /// - 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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .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("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("int"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasColumnType("nvarchar(max)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .HasColumnType("nvarchar(max)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasColumnType("nvarchar(max)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250604031956_2025060402.cs b/API/TaskManager.EntityFramework/Migrations/20250604031956_2025060402.cs deleted file mode 100644 index 0d5222e..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250604031956_2025060402.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class _2025060402 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.Designer.cs deleted file mode 100644 index 3418df4..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.Designer.cs +++ /dev/null @@ -1,5242 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250609023049_z202506090001")] - partial class z202506090001 - { - /// - 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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Path") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Version") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.cs b/API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.cs deleted file mode 100644 index fc984c0..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.cs +++ /dev/null @@ -1,385 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506090001 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "UpdateUser", - table: "TaskSub", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskSub", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TableName", - table: "TaskSub", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Subscriber", - table: "TaskSub", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Site", - table: "TaskSub", - type: "nvarchar(30)", - maxLength: 30, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "FailedInfo", - table: "TaskSub", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Domain", - table: "TaskSub", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateUser", - table: "TaskSub", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Type", - table: "TaskLogs", - type: "nvarchar(20)", - maxLength: 20, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskLogs", - type: "nvarchar(20)", - maxLength: 20, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Info", - table: "TaskLogs", - type: "nvarchar(20)", - maxLength: 20, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreationTime", - table: "TaskLogs", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Path", - table: "TaskLogs", - type: "nvarchar(20)", - maxLength: 20, - nullable: true); - - migrationBuilder.AddColumn( - name: "Version", - table: "TaskLogs", - type: "nvarchar(20)", - maxLength: 20, - nullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDelivery", - table: "SUPPLIER_PO", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Note", - table: "SUPPLIER_PO", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand2", - table: "SUPPLIER_MRP_DATE", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "QuantityDemand1", - table: "SUPPLIER_MRP_DATE", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "IsDelete", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "QuantityDelivery", - table: "SUPPLIER_DEL_STATE", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(int), - oldType: "int"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Path", - table: "TaskLogs"); - - migrationBuilder.DropColumn( - name: "Version", - table: "TaskLogs"); - - migrationBuilder.AlterColumn( - name: "UpdateUser", - table: "TaskSub", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskSub", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TableName", - table: "TaskSub", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Subscriber", - table: "TaskSub", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Site", - table: "TaskSub", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30); - - migrationBuilder.AlterColumn( - name: "FailedInfo", - table: "TaskSub", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Domain", - table: "TaskSub", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreateUser", - table: "TaskSub", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Type", - table: "TaskLogs", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(20)", - oldMaxLength: 20, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskLogs", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(20)", - oldMaxLength: 20, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Info", - table: "TaskLogs", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(20)", - oldMaxLength: 20, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CreationTime", - table: "TaskLogs", - 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: "QuantityDelivery", - table: "SUPPLIER_PO", - type: "int", - nullable: false, - defaultValue: 0, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Note", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand2", - table: "SUPPLIER_MRP_DATE", - type: "int", - nullable: false, - defaultValue: 0, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand1", - table: "SUPPLIER_MRP_DATE", - type: "int", - nullable: false, - defaultValue: 0, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "IsDelete", - table: "SUPPLIER_INV_DATA", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "QuantityDelivery", - table: "SUPPLIER_DEL_STATE", - type: "int", - nullable: false, - defaultValue: 0, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.Designer.cs deleted file mode 100644 index 9eca8d3..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.Designer.cs +++ /dev/null @@ -1,5242 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250609031426_z202506090002")] - partial class z202506090002 - { - /// - 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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Path") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Version") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.cs b/API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.cs deleted file mode 100644 index bed2465..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506090002 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "QuantityDemand12", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(int), - oldType: "int"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "QuantityDemand12", - table: "SUPPLIER_MRP_MONTH", - type: "int", - nullable: false, - defaultValue: 0, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.Designer.cs deleted file mode 100644 index 320b925..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.Designer.cs +++ /dev/null @@ -1,5260 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250609033910_z202506090003")] - partial class z202506090003 - { - /// - 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") - .IsRequired() - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .IsRequired() - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .IsRequired() - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .IsRequired() - .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") - .IsRequired() - .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") - .IsRequired() - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .IsRequired() - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .IsRequired() - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .IsRequired() - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .IsRequired() - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .IsRequired() - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .IsRequired() - .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") - .IsRequired() - .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") - .IsRequired() - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .IsRequired() - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .IsRequired() - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .IsRequired() - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .IsRequired() - .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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Path") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Version") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.cs b/API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.cs deleted file mode 100644 index 4a25938..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506090003 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.Designer.cs deleted file mode 100644 index 329127d..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.Designer.cs +++ /dev/null @@ -1,5227 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250609034358_z202506090004")] - partial class z202506090004 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .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") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .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") - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .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") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .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") - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("PurchaseOrder") - .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") - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Path") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Version") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.cs b/API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.cs deleted file mode 100644 index 4ff6329..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.cs +++ /dev/null @@ -1,842 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506090004 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "SupplierCode", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32); - - migrationBuilder.AlterColumn( - name: "SerialNumber", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(10)", - maxLength: 10, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(10)", - oldMaxLength: 10); - - migrationBuilder.AlterColumn( - name: "QuantityMeet", - table: "SUPPLIER_CON_PO", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "PurchaseOrder", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "FeedbackResults", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(10)", - maxLength: 10, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(10)", - oldMaxLength: 10); - - migrationBuilder.AlterColumn( - name: "SupplierCode", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32); - - migrationBuilder.AlterColumn( - name: "StartMonth", - table: "SUPPLIER_CON_MMRP", - type: "CHAR(7)", - maxLength: 7, - nullable: true, - oldClrType: typeof(string), - oldType: "CHAR(7)", - oldMaxLength: 7); - - migrationBuilder.AlterColumn( - name: "ReleaseEdition", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32); - - migrationBuilder.AlterColumn( - name: "QuantityMeet6", - table: "SUPPLIER_CON_MMRP", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet5", - table: "SUPPLIER_CON_MMRP", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet4", - table: "SUPPLIER_CON_MMRP", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet3", - table: "SUPPLIER_CON_MMRP", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet2", - table: "SUPPLIER_CON_MMRP", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet1", - table: "SUPPLIER_CON_MMRP", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "FeedbackResults", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(10)", - maxLength: 10, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(10)", - oldMaxLength: 10); - - migrationBuilder.AlterColumn( - name: "SupplierCode", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32); - - migrationBuilder.AlterColumn( - name: "ReleaseEdition", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32); - - migrationBuilder.AlterColumn( - name: "QuantityMeet9", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet8", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet7", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet6", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet5", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet4", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet3", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet2", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet12", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet11", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet10", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "QuantityMeet1", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: true, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "FeedbackResults", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(10)", - maxLength: 10, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(10)", - oldMaxLength: 10); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "SupplierCode", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SerialNumber", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(10)", - maxLength: 10, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(10)", - oldMaxLength: 10, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet", - table: "SUPPLIER_CON_PO", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PurchaseOrder", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FeedbackResults", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(10)", - maxLength: 10, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(10)", - oldMaxLength: 10, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierCode", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StartMonth", - table: "SUPPLIER_CON_MMRP", - type: "CHAR(7)", - maxLength: 7, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "CHAR(7)", - oldMaxLength: 7, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReleaseEdition", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet6", - table: "SUPPLIER_CON_MMRP", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet5", - table: "SUPPLIER_CON_MMRP", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet4", - table: "SUPPLIER_CON_MMRP", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet3", - table: "SUPPLIER_CON_MMRP", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet2", - table: "SUPPLIER_CON_MMRP", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet1", - table: "SUPPLIER_CON_MMRP", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FeedbackResults", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(10)", - maxLength: 10, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(10)", - oldMaxLength: 10, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierCode", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReleaseEdition", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet9", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet8", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet7", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet6", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet5", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet4", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet3", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet2", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet12", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet11", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet10", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityMeet1", - table: "SUPPLIER_CON_DATE", - type: "DECIMAL(16,5)", - precision: 16, - scale: 5, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "DECIMAL(16,5)", - oldPrecision: 16, - oldScale: 5, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FeedbackResults", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(10)", - maxLength: 10, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "VARCHAR(10)", - oldMaxLength: 10, - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.Designer.cs deleted file mode 100644 index 1a452cf..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.Designer.cs +++ /dev/null @@ -1,5227 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250609035549_z202506090005")] - partial class z202506090005 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Path") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Version") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.cs b/API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.cs deleted file mode 100644 index 56c495c..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.cs +++ /dev/null @@ -1,566 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506090005 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "VentureType", - table: "SUPPLIER_CON_PO", - type: "NVARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VentureSpecific", - table: "SUPPLIER_CON_PO", - type: "NVARCHAR(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierCode", - table: "SUPPLIER_CON_PO", - type: "NVARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SerialNumber", - table: "SUPPLIER_CON_PO", - type: "NVARCHAR(10)", - maxLength: 10, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(10)", - oldMaxLength: 10, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PurchaseOrder", - table: "SUPPLIER_CON_PO", - type: "NVARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Measures", - table: "SUPPLIER_CON_PO", - type: "NVARCHAR(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FeedbackResults", - table: "SUPPLIER_CON_PO", - type: "NVARCHAR(10)", - maxLength: 10, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(10)", - oldMaxLength: 10, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VentureType", - table: "SUPPLIER_CON_MMRP", - type: "NVARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VentureSpecific", - table: "SUPPLIER_CON_MMRP", - type: "NVARCHAR(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierCode", - table: "SUPPLIER_CON_MMRP", - type: "NVARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StartMonth", - table: "SUPPLIER_CON_MMRP", - type: "NVARCHAR(7)", - maxLength: 7, - nullable: true, - oldClrType: typeof(string), - oldType: "CHAR(7)", - oldMaxLength: 7, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReleaseEdition", - table: "SUPPLIER_CON_MMRP", - type: "NVARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_CON_MMRP", - type: "NVARCHAR(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Measures", - table: "SUPPLIER_CON_MMRP", - type: "NVARCHAR(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_CON_MMRP", - type: "NVARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FeedbackResults", - table: "SUPPLIER_CON_MMRP", - type: "NVARCHAR(10)", - maxLength: 10, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(10)", - oldMaxLength: 10, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VentureType", - table: "SUPPLIER_CON_DATE", - type: "NVARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VentureSpecific", - table: "SUPPLIER_CON_DATE", - type: "NVARCHAR(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierCode", - table: "SUPPLIER_CON_DATE", - type: "NVARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StartDate", - table: "SUPPLIER_CON_DATE", - type: "NVARCHAR(10)", - maxLength: 10, - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(10)", - oldMaxLength: 10); - - migrationBuilder.AlterColumn( - name: "ReleaseEdition", - table: "SUPPLIER_CON_DATE", - type: "NVARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_CON_DATE", - type: "NVARCHAR(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Measures", - table: "SUPPLIER_CON_DATE", - type: "NVARCHAR(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_CON_DATE", - type: "NVARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FeedbackResults", - table: "SUPPLIER_CON_DATE", - type: "NVARCHAR(10)", - maxLength: 10, - nullable: true, - oldClrType: typeof(string), - oldType: "VARCHAR(10)", - oldMaxLength: 10, - oldNullable: true); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "VentureType", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VentureSpecific", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierCode", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SerialNumber", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(10)", - maxLength: 10, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(10)", - oldMaxLength: 10, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PurchaseOrder", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Measures", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FeedbackResults", - table: "SUPPLIER_CON_PO", - type: "VARCHAR(10)", - maxLength: 10, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(10)", - oldMaxLength: 10, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VentureType", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VentureSpecific", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierCode", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StartMonth", - table: "SUPPLIER_CON_MMRP", - type: "CHAR(7)", - maxLength: 7, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(7)", - oldMaxLength: 7, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReleaseEdition", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Measures", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FeedbackResults", - table: "SUPPLIER_CON_MMRP", - type: "VARCHAR(10)", - maxLength: 10, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(10)", - oldMaxLength: 10, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VentureType", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "VentureSpecific", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierCode", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StartDate", - table: "SUPPLIER_CON_DATE", - type: "CHAR(10)", - maxLength: 10, - nullable: false, - oldClrType: typeof(string), - oldType: "NVARCHAR(10)", - oldMaxLength: 10); - - migrationBuilder.AlterColumn( - name: "ReleaseEdition", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(32)", - maxLength: 32, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(32)", - oldMaxLength: 32, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlantId", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Measures", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(255)", - maxLength: 255, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(255)", - oldMaxLength: 255, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialCode", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FeedbackResults", - table: "SUPPLIER_CON_DATE", - type: "VARCHAR(10)", - maxLength: 10, - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(10)", - oldMaxLength: 10, - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.Designer.cs deleted file mode 100644 index 5ab243d..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.Designer.cs +++ /dev/null @@ -1,5227 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250609051230_z202506090006")] - partial class z202506090006 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Path") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Version") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.cs b/API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.cs deleted file mode 100644 index 94b1073..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506090006 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "StartDate", - table: "SUPPLIER_MRP_DATE", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "StartDate", - table: "SUPPLIER_MRP_DATE", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.Designer.cs deleted file mode 100644 index bce4b13..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.Designer.cs +++ /dev/null @@ -1,5227 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250609053405_z202506090007")] - partial class z202506090007 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasColumnType("nvarchar(max)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Path") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Version") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.cs b/API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.cs deleted file mode 100644 index 405a934..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506090007 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.Designer.cs deleted file mode 100644 index d73c9f4..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.Designer.cs +++ /dev/null @@ -1,5252 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250609054243_z202506090008")] - partial class z202506090008 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Path") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Type") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("Version") - .HasMaxLength(20) - .HasColumnType("nvarchar(20)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.cs b/API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.cs deleted file mode 100644 index a72593e..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.cs +++ /dev/null @@ -1,579 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506090008 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_SINV_DATA", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_SINV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_RETURN", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PO", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_WARNING", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_MRP_WARNING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StartDate", - table: "SUPPLIER_CON_DATE", - type: "datetime2", - nullable: true, - oldClrType: typeof(string), - oldType: "NVARCHAR(10)", - oldMaxLength: 10); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_SINV_DATA", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_SINV_DATA", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_RETURN", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_RETURN", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_PO", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_PO", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_WARNING", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_MRP_WARNING", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RequestDate", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StartDate", - table: "SUPPLIER_CON_DATE", - type: "NVARCHAR(10)", - maxLength: 10, - nullable: false, - defaultValue: "", - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609064628_z202506090009.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250609064628_z202506090009.Designer.cs deleted file mode 100644 index 9a373b1..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609064628_z202506090009.Designer.cs +++ /dev/null @@ -1,5251 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250609064628_z202506090009")] - partial class z202506090009 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609064628_z202506090009.cs b/API/TaskManager.EntityFramework/Migrations/20250609064628_z202506090009.cs deleted file mode 100644 index 3b0f24c..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609064628_z202506090009.cs +++ /dev/null @@ -1,126 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506090009 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Version", - table: "TaskLogs", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(20)", - oldMaxLength: 20, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Type", - table: "TaskLogs", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(20)", - oldMaxLength: 20, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskLogs", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(20)", - oldMaxLength: 20, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Path", - table: "TaskLogs", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(20)", - oldMaxLength: 20, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Info", - table: "TaskLogs", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(20)", - oldMaxLength: 20, - oldNullable: true); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Version", - table: "TaskLogs", - type: "nvarchar(20)", - maxLength: 20, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Type", - table: "TaskLogs", - type: "nvarchar(20)", - maxLength: 20, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskLogs", - type: "nvarchar(20)", - maxLength: 20, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Path", - table: "TaskLogs", - type: "nvarchar(20)", - maxLength: 20, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Info", - table: "TaskLogs", - type: "nvarchar(20)", - maxLength: 20, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609071043_z202506090010.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250609071043_z202506090010.Designer.cs deleted file mode 100644 index bfd160a..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609071043_z202506090010.Designer.cs +++ /dev/null @@ -1,5252 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250609071043_z202506090010")] - partial class z202506090010 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609071043_z202506090010.cs b/API/TaskManager.EntityFramework/Migrations/20250609071043_z202506090010.cs deleted file mode 100644 index a2ea23e..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609071043_z202506090010.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506090010 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "IsDelete", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "IsDelete", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609071148_z202506090011.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250609071148_z202506090011.Designer.cs deleted file mode 100644 index 9fdebfa..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609071148_z202506090011.Designer.cs +++ /dev/null @@ -1,5253 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250609071148_z202506090011")] - partial class z202506090011 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(max)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250609071148_z202506090011.cs b/API/TaskManager.EntityFramework/Migrations/20250609071148_z202506090011.cs deleted file mode 100644 index 598c7de..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250609071148_z202506090011.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506090011 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "IsDelete", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(5)", - maxLength: 5, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "IsDelete", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(5)", - oldMaxLength: 5); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250610023901_z202506100001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250610023901_z202506100001.Designer.cs deleted file mode 100644 index 617f147..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250610023901_z202506100001.Designer.cs +++ /dev/null @@ -1,5320 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250610023901_z202506100001")] - partial class z202506100001 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasColumnType("nvarchar(450)") - .HasAnnotation("Relational:JsonPropertyName", "id"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250610023901_z202506100001.cs b/API/TaskManager.EntityFramework/Migrations/20250610023901_z202506100001.cs deleted file mode 100644 index 6174d2a..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250610023901_z202506100001.cs +++ /dev/null @@ -1,420 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506100001 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand9", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "QuantityDemand8", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "QuantityDemand7", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "QuantityDemand6", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "QuantityDemand5", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "QuantityDemand4", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "QuantityDemand3", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "QuantityDemand2", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "QuantityDemand11", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "QuantityDemand10", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AlterColumn( - name: "QuantityDemand1", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)"); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_CON_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_CON_MMRP", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_CON_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_Id", - table: "SUPPLIER_SINV_DATA", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_Id", - table: "SUPPLIER_SA_WEEK", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_Id", - table: "SUPPLIER_RETURN", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_Id", - table: "SUPPLIER_PRO_TSCHEDUL", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_Id", - table: "SUPPLIER_PRO_PLANING", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_Id", - table: "SUPPLIER_PRO_HSCHEDUL", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_Id", - table: "SUPPLIER_PRO_CSCHEDUL", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_Id", - table: "SUPPLIER_PO", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_WARNING_Id", - table: "SUPPLIER_MRP_WARNING", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_Id", - table: "SUPPLIER_MRP_STATE", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_Id", - table: "SUPPLIER_MRP_MONTH", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_Id", - table: "SUPPLIER_MRP_DATE", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_Id", - table: "SUPPLIER_INV_DATA", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_Id", - table: "SUPPLIER_DEL_STATE", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_Id", - table: "SUPPLIER_SINV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SA_WEEK_Id", - table: "SUPPLIER_SA_WEEK"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_RETURN_Id", - table: "SUPPLIER_RETURN"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_Id", - table: "SUPPLIER_PRO_TSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_PLANING_Id", - table: "SUPPLIER_PRO_PLANING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_Id", - table: "SUPPLIER_PRO_HSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_Id", - table: "SUPPLIER_PRO_CSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PO_Id", - table: "SUPPLIER_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_WARNING_Id", - table: "SUPPLIER_MRP_WARNING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_STATE_Id", - table: "SUPPLIER_MRP_STATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_MONTH_Id", - table: "SUPPLIER_MRP_MONTH"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_DATE_Id", - table: "SUPPLIER_MRP_DATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_INV_DATA_Id", - table: "SUPPLIER_INV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_DEL_STATE_Id", - table: "SUPPLIER_DEL_STATE"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_CON_PO"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_CON_DATE"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand9", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand8", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand7", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand6", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand5", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand4", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand3", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand2", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand11", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand10", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "QuantityDemand1", - table: "SUPPLIER_MRP_MONTH", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.Designer.cs deleted file mode 100644 index 0aa652a..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.Designer.cs +++ /dev/null @@ -1,5323 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250610061746_z2025061000024")] - partial class z2025061000024 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasColumnType("nvarchar(max)"); - - b.Property("Client") - .HasColumnType("nvarchar(max)"); - - b.Property("Corn") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasColumnType("nvarchar(max)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasColumnType("nvarchar(max)"); - - b.Property("Url") - .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") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.cs b/API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.cs deleted file mode 100644 index 8abd1e1..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.cs +++ /dev/null @@ -1,49 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z2025061000024 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "PageSize", - table: "TaskConifgure", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "PageSize", - table: "TaskConifgure"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250610062047_z20250610000240002.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250610062047_z20250610000240002.Designer.cs deleted file mode 100644 index 26f5698..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250610062047_z20250610000240002.Designer.cs +++ /dev/null @@ -1,5330 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250610062047_z20250610000240002")] - partial class z20250610000240002 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250610062047_z20250610000240002.cs b/API/TaskManager.EntityFramework/Migrations/20250610062047_z20250610000240002.cs deleted file mode 100644 index 2307d33..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250610062047_z20250610000240002.cs +++ /dev/null @@ -1,158 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z20250610000240002 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Url", - table: "TaskConifgure", - type: "nvarchar(500)", - maxLength: 500, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskConifgure", - type: "nvarchar(200)", - maxLength: 200, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TableName", - table: "TaskConifgure", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Module", - table: "TaskConifgure", - type: "nvarchar(400)", - maxLength: 400, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Corn", - table: "TaskConifgure", - type: "nvarchar(400)", - maxLength: 400, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Client", - table: "TaskConifgure", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Api", - table: "TaskConifgure", - type: "nvarchar(400)", - maxLength: 400, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Url", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(500)", - oldMaxLength: 500, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(200)", - oldMaxLength: 200, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TableName", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Module", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(400)", - oldMaxLength: 400, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Corn", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(400)", - oldMaxLength: 400, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Client", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Api", - table: "TaskConifgure", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(400)", - oldMaxLength: 400, - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.Designer.cs deleted file mode 100644 index 3b3101a..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.Designer.cs +++ /dev/null @@ -1,5342 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250610064324_z20250610000240003")] - partial class z20250610000240003 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.cs b/API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.cs deleted file mode 100644 index 0f65bdc..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.cs +++ /dev/null @@ -1,69 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z20250610000240003 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_CON_MMRP", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_Id", - table: "SUPPLIER_CON_PO", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_Id", - table: "SUPPLIER_CON_MMRP", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_Id", - table: "SUPPLIER_CON_DATE", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_Id", - table: "SUPPLIER_CON_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_Id", - table: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_Id", - table: "SUPPLIER_CON_DATE"); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_CON_MMRP", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.Designer.cs deleted file mode 100644 index 9bb3161..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.Designer.cs +++ /dev/null @@ -1,5444 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250611063901_z2025061100001")] - partial class z2025061100001 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_DATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_PO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasColumnType("nvarchar(max)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasColumnType("nvarchar(max)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_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") - .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") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.cs b/API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.cs deleted file mode 100644 index 579ec4a..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.cs +++ /dev/null @@ -1,741 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z2025061100001 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_RETURN", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PO", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_WARNING", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(100)", - maxLength: 100, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_ReadState", - table: "SUPPLIER_SINV_DATA", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_TaskId", - table: "SUPPLIER_SINV_DATA", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_WriteState", - table: "SUPPLIER_SINV_DATA", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_ReadState", - table: "SUPPLIER_SA_WEEK", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_TaskId", - table: "SUPPLIER_SA_WEEK", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_WriteState", - table: "SUPPLIER_SA_WEEK", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_ReadState", - table: "SUPPLIER_RETURN", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_TaskId", - table: "SUPPLIER_RETURN", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_WriteState", - table: "SUPPLIER_RETURN", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_ReadState", - table: "SUPPLIER_PRO_TSCHEDUL", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_TaskId", - table: "SUPPLIER_PRO_TSCHEDUL", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_WriteState", - table: "SUPPLIER_PRO_TSCHEDUL", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_ReadState", - table: "SUPPLIER_PRO_PLANING", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_TaskId", - table: "SUPPLIER_PRO_PLANING", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_WriteState", - table: "SUPPLIER_PRO_PLANING", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_ReadState", - table: "SUPPLIER_PRO_HSCHEDUL", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_TaskId", - table: "SUPPLIER_PRO_HSCHEDUL", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_WriteState", - table: "SUPPLIER_PRO_HSCHEDUL", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_ReadState", - table: "SUPPLIER_PRO_CSCHEDUL", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_TaskId", - table: "SUPPLIER_PRO_CSCHEDUL", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_WriteState", - table: "SUPPLIER_PRO_CSCHEDUL", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_ReadState", - table: "SUPPLIER_PO", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_TaskId", - table: "SUPPLIER_PO", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_WriteState", - table: "SUPPLIER_PO", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_WARNING_ReadState", - table: "SUPPLIER_MRP_WARNING", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_WARNING_TaskId", - table: "SUPPLIER_MRP_WARNING", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_WARNING_WriteState", - table: "SUPPLIER_MRP_WARNING", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_ReadState", - table: "SUPPLIER_MRP_STATE", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_TaskId", - table: "SUPPLIER_MRP_STATE", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_WriteState", - table: "SUPPLIER_MRP_STATE", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_ReadState", - table: "SUPPLIER_MRP_MONTH", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_TaskId", - table: "SUPPLIER_MRP_MONTH", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_WriteState", - table: "SUPPLIER_MRP_MONTH", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_ReadState", - table: "SUPPLIER_MRP_DATE", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_TaskId", - table: "SUPPLIER_MRP_DATE", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_WriteState", - table: "SUPPLIER_MRP_DATE", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_ReadState", - table: "SUPPLIER_INV_DATA", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_TaskId", - table: "SUPPLIER_INV_DATA", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_WriteState", - table: "SUPPLIER_INV_DATA", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_ReadState", - table: "SUPPLIER_DEL_STATE", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_TaskId", - table: "SUPPLIER_DEL_STATE", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_WriteState", - table: "SUPPLIER_DEL_STATE", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_ReadState", - table: "SUPPLIER_CON_PO", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_TaskId", - table: "SUPPLIER_CON_PO", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_WriteState", - table: "SUPPLIER_CON_PO", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_ReadState", - table: "SUPPLIER_CON_MMRP", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_TaskId", - table: "SUPPLIER_CON_MMRP", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_WriteState", - table: "SUPPLIER_CON_MMRP", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_ReadState", - table: "SUPPLIER_CON_DATE", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_TaskId", - table: "SUPPLIER_CON_DATE", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_WriteState", - table: "SUPPLIER_CON_DATE", - column: "WriteState"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_ReadState", - table: "SUPPLIER_SINV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_TaskId", - table: "SUPPLIER_SINV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_WriteState", - table: "SUPPLIER_SINV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SA_WEEK_ReadState", - table: "SUPPLIER_SA_WEEK"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SA_WEEK_TaskId", - table: "SUPPLIER_SA_WEEK"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SA_WEEK_WriteState", - table: "SUPPLIER_SA_WEEK"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_RETURN_ReadState", - table: "SUPPLIER_RETURN"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_RETURN_TaskId", - table: "SUPPLIER_RETURN"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_RETURN_WriteState", - table: "SUPPLIER_RETURN"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_ReadState", - table: "SUPPLIER_PRO_TSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_TaskId", - table: "SUPPLIER_PRO_TSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_WriteState", - table: "SUPPLIER_PRO_TSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_PLANING_ReadState", - table: "SUPPLIER_PRO_PLANING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_PLANING_TaskId", - table: "SUPPLIER_PRO_PLANING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_PLANING_WriteState", - table: "SUPPLIER_PRO_PLANING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_ReadState", - table: "SUPPLIER_PRO_HSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_TaskId", - table: "SUPPLIER_PRO_HSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_WriteState", - table: "SUPPLIER_PRO_HSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_ReadState", - table: "SUPPLIER_PRO_CSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_TaskId", - table: "SUPPLIER_PRO_CSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_WriteState", - table: "SUPPLIER_PRO_CSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PO_ReadState", - table: "SUPPLIER_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PO_TaskId", - table: "SUPPLIER_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PO_WriteState", - table: "SUPPLIER_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_WARNING_ReadState", - table: "SUPPLIER_MRP_WARNING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_WARNING_TaskId", - table: "SUPPLIER_MRP_WARNING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_WARNING_WriteState", - table: "SUPPLIER_MRP_WARNING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_STATE_ReadState", - table: "SUPPLIER_MRP_STATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_STATE_TaskId", - table: "SUPPLIER_MRP_STATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_STATE_WriteState", - table: "SUPPLIER_MRP_STATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_MONTH_ReadState", - table: "SUPPLIER_MRP_MONTH"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_MONTH_TaskId", - table: "SUPPLIER_MRP_MONTH"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_MONTH_WriteState", - table: "SUPPLIER_MRP_MONTH"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_DATE_ReadState", - table: "SUPPLIER_MRP_DATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_DATE_TaskId", - table: "SUPPLIER_MRP_DATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_DATE_WriteState", - table: "SUPPLIER_MRP_DATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_INV_DATA_ReadState", - table: "SUPPLIER_INV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_INV_DATA_TaskId", - table: "SUPPLIER_INV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_INV_DATA_WriteState", - table: "SUPPLIER_INV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_DEL_STATE_ReadState", - table: "SUPPLIER_DEL_STATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_DEL_STATE_TaskId", - table: "SUPPLIER_DEL_STATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_DEL_STATE_WriteState", - table: "SUPPLIER_DEL_STATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_ReadState", - table: "SUPPLIER_CON_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_TaskId", - table: "SUPPLIER_CON_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_WriteState", - table: "SUPPLIER_CON_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_ReadState", - table: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_TaskId", - table: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_WriteState", - table: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_ReadState", - table: "SUPPLIER_CON_DATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_TaskId", - table: "SUPPLIER_CON_DATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_WriteState", - table: "SUPPLIER_CON_DATE"); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_SA_WEEK", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_RETURN", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PRO_TSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PRO_HSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PRO_CSCHEDUL", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_PO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_WARNING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_MONTH", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_MRP_DATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_INV_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "MaterialDescription", - table: "SUPPLIER_DEL_STATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(100)", - oldMaxLength: 100, - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.Designer.cs deleted file mode 100644 index 961b9e4..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.Designer.cs +++ /dev/null @@ -1,9997 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250616060016_z202506160003")] - partial class z202506160003 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_DATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_PO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id") - .IsUnique() - .HasFilter("[Id] IS NOT NULL"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.cs b/API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.cs deleted file mode 100644 index bdd261a..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250616060016_z202506160003.cs +++ /dev/null @@ -1,1850 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506160003 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "SalseDepartment", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Omterior", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.CreateTable( - name: "SUPPLIER_BOM_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - BomCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - BomName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - BomVersion = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - VendorProductType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialUnit = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true), - SubMaterialCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SubMaterialName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - SubMaterialType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SubMaterialUnit = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SubMaterialQuota = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_BOM_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_CON_DATE_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), - ReleaseEdition = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), - MaterialCode = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), - PlantId = table.Column(type: "NVARCHAR(64)", maxLength: 64, nullable: true), - FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), - VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), - VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), - Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), - StartDate = table.Column(type: "datetime2", nullable: true), - QuantityMeet1 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet2 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet3 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet4 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet5 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet6 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet7 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet8 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet9 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet10 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet11 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet12 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet13 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet14 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet15 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet16 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet17 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet18 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet19 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet20 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet21 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet22 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet23 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet24 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet25 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet26 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet27 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet28 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet29 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet30 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet31 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_CON_DATE_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_CON_MMRP_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Id = table.Column(type: "nvarchar(450)", nullable: true), - SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), - ReleaseEdition = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), - MaterialCode = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), - PlantId = table.Column(type: "NVARCHAR(64)", maxLength: 64, nullable: true), - FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), - VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), - VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), - Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), - StartMonth = table.Column(type: "NVARCHAR(7)", maxLength: 7, nullable: true), - QuantityMeet1 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet2 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet3 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet4 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet5 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet6 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet7 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet8 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet9 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet10 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet11 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - QuantityMeet12 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_CON_MMRP_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_CON_PO_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), - PurchaseOrder = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), - SerialNumber = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), - QuantityMeet = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), - VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), - VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), - Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_CON_PO_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_DEL_STATE_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - DeliveryNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SerialSrate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ReceivingCrossings = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), - DataCreateTime = table.Column(type: "datetime2", nullable: true), - SupplierReceiveTime = table.Column(type: "datetime2", nullable: true), - RoadShippedTime = table.Column(type: "datetime2", nullable: true), - RoadReceiveTime = table.Column(type: "datetime2", nullable: true), - CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_DEL_STATE_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_EMPLOYEE_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - StationId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - OperatorId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - OperatorName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - HaveQuantity = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), - DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - PositionId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PositionName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - QualificationLevel = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - CheckInTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - CheckOutTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_EMPLOYEE_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_INFO_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - KeyStation = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), - DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - ProductionLineOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), - StationOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_INFO_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_INV_DATA_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - QuantityCurrent = table.Column(type: "decimal(18,2)", nullable: true), - StockState = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DataUpdateTime = table.Column(type: "datetime2", nullable: true), - CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: true), - UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UpdateTime = table.Column(type: "datetime2", nullable: true), - IsDelete = table.Column(type: "nvarchar(max)", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_INV_DATA_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_MRP_DATE_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ReleaseEdition = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - StartDate = table.Column(type: "datetime2", nullable: true), - QuantityDemand1 = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDemand2 = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDemand3 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand4 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand5 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand6 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand7 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand8 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand9 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand10 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand11 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand12 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand13 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand14 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand15 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand16 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand17 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand18 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand19 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand20 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand21 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand22 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand23 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand24 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand25 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand26 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand27 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand28 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand29 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand30 = table.Column(type: "decimal(18,2)", nullable: false), - QuantityDemand31 = table.Column(type: "decimal(18,2)", nullable: false), - IsUpdate = table.Column(type: "nvarchar(max)", nullable: true), - CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_MRP_DATE_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_MRP_MONTH_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ReleaseEdition = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - StartMonth = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - QuantityDemand1 = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDemand2 = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDemand3 = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDemand4 = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDemand5 = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDemand6 = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDemand7 = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDemand8 = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDemand9 = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDemand10 = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDemand11 = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDemand12 = table.Column(type: "decimal(18,2)", nullable: true), - IsUpdate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_MRP_MONTH_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_MRP_STATE_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DemandSrate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DemandType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - SummarySign = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DateRequired = table.Column(type: "datetime2", nullable: true), - QuantityDemand = table.Column(type: "decimal(18,2)", nullable: true), - ConfirmTime = table.Column(type: "datetime2", nullable: true), - CreatQuantity = table.Column(type: "decimal(18,2)", nullable: true), - QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), - QuantityReceive = table.Column(type: "decimal(18,2)", nullable: true), - QuantityInTransit = table.Column(type: "decimal(18,2)", nullable: true), - OnTimePercentage = table.Column(type: "decimal(18,2)", nullable: true), - SummaryCreatQuantity = table.Column(type: "decimal(18,2)", nullable: true), - SummaryQuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), - SummaryQuantityReceive = table.Column(type: "decimal(18,2)", nullable: true), - SummaryQuantityInTransit = table.Column(type: "decimal(18,2)", nullable: true), - CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: true), - UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UpdateTime = table.Column(type: "datetime2", nullable: true), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_MRP_STATE_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PO_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - PurchaseOrder = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - VoucherDate = table.Column(type: "datetime2", nullable: true), - Purchaser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Supplier = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - QuantityDemand = table.Column(type: "decimal(18,2)", nullable: true), - MaterialUnit = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DeliveryDate = table.Column(type: "datetime2", nullable: true), - DeliveryPlace = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), - Note = table.Column(type: "nvarchar(max)", nullable: true), - ItemType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TradeTerms = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Country = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Batch = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PO_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - Type = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - FileName = table.Column(type: "VARCHAR(300)", maxLength: 300, nullable: false), - FileUrl = table.Column(type: "VARCHAR(1000)", maxLength: 1000, nullable: false), - DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DeviceId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductSn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_CPS_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - VendorProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductBatch = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - CheryProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - StationId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - EmpCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - EmpName = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), - VendorFieldName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorFieldCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - GatherSpot = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - SamplingRate = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - LimitUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), - VendorFieldDesc = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), - CarrierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - IntputQty = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - FttQty = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - Parameter = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - Characteristic = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - Cc = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), - Sc = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), - Spc = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), - StandardValue = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - UpperLimit = table.Column(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false), - LowerLimit = table.Column(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false), - DecimalValue = table.Column(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false), - UnitCn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), - UnitEn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - CheckResult = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: false), - DetectionMode = table.Column(type: "VARCHAR(20)", maxLength: 20, nullable: true), - WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), - CollectTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - CheckMode = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), - DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_CPS_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_CSCHEDUL_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Vin = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - SortDate = table.Column(type: "datetime2", nullable: true), - SortTime = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), - OnLineDate = table.Column(type: "datetime2", nullable: true), - OnLineTime = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), - ModelCategory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - AssemblyMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MotorMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Plant = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: true), - UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UpdateTime = table.Column(type: "datetime2", nullable: true), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_CSCHEDUL_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_DATA_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - EmpCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - EmpName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductBatch = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - SubProdNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SubProdName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - SubBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ChildPackageInfo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), - SubProdNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - SubProdSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ChildSource = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - SubSupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - SubSupplierName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - CheryProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductBatchNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), - WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), - MaterialInputTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - MaterialOutputTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - VendorFieldNum = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorFieldName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - InstrumentQualityStatus = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true), - ManualQualityStatus = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true), - FinalQualityStatus = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: false), - CollectTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - DateTime = table.Column(type: "CHAR(16)", maxLength: 16, nullable: false), - ParentHardwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), - ParentSoftwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), - ChildHardwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), - ChildSoftwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_DATA_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_ENVIRONMENT_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - EnvIndicatorName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - NumValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - UpperLimit = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - LowerLimit = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - ChineseUnit = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - EquipmentCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - EquipmentName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - DataCollectionPoint = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - CollectTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - WorkshopName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkOrderNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - DefectiveNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - AcceptableNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - OncePassRateRealValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - OncePassRateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), - StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_FLAW_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DefectsCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DefectsName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - ClassOfName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - VendorProductBatch = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - CheryProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), - Numberofdefect = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - DefectsDesc = table.Column(type: "VARCHAR(255)", maxLength: 255, nullable: false), - DefectsLevel = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), - StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_FLAW_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_HSCHEDUL_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Vin = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - ProductionType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - OnLineTime = table.Column(type: "datetime2", nullable: true), - CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_HSCHEDUL_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_MATERIAL_DATA_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - Type = table.Column(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false), - VendorHardwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - OemHardwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - OemSoftwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - OemModel = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - OemProjectName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), - Launched = table.Column(type: "VARCHAR(6)", maxLength: 6, nullable: true), - DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), - ProcurementType = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), - MpnCode = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), - MpnName = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), - ValidDays = table.Column(type: "CHAR(12)", maxLength: 12, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - SupplierSubCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierSubName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - SubSupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SubSupplierName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - SubSupplierAddress = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - ComponentCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - ComponentName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), - SubBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SubBatchNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - SubBatchSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), - EmpCode = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - EmpName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - FeatureName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - FeatureUnit = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - StandardValue = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - FeatureUpper = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - FeatureLower = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - FeatureValue = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheckNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheckResult = table.Column(type: "CHAR(2)", maxLength: 2, nullable: false), - CheckTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - SamplingRate = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - LimitUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), - VendorFieldDesc = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), - VendorFieldCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeadLine = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_STOCK_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DeviceId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - Rate = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - RateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), - StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceName = table.Column(type: "VARCHAR(33)", maxLength: 33, nullable: false), - RecId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - Type = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SubType = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SubTypeName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StartTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - EndTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_PLANING_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ReleaseEdition = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Assembly = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Pattern = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - StartMonth = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Quantity1 = table.Column(type: "decimal(18,2)", nullable: true), - Quantity2 = table.Column(type: "decimal(18,2)", nullable: true), - Quantity3 = table.Column(type: "decimal(18,2)", nullable: true), - Quantity4 = table.Column(type: "decimal(18,2)", nullable: true), - Quantity5 = table.Column(type: "decimal(18,2)", nullable: true), - Quantity6 = table.Column(type: "decimal(18,2)", nullable: true), - Plant = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - Omterior = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SalseDepartment = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_PLANING_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DeviceType = table.Column(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false), - DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - Manufacturer = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ModelNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - SerialNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionDate = table.Column(type: "CHAR(16)", maxLength: 16, nullable: false), - Material = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CurrentLocation = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DeviceStatus = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - CavityCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), - MoldSize = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DesignLifeUnits = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - DesignLifeValue = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - CurrentUsageCount = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - OverhaulCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), - CoolingChannelLayout = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - DetectionAccuracy = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CalibrationDate = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - CalibrationDueDays = table.Column(type: "CHAR(12)", maxLength: 12, nullable: false), - ToleranceRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WearThreshold = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - DetectionRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - UnitType = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_PROCESS_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - CheryProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - SupplierCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - TechCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - TechName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ValidPeriod = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - TechVersion = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - MoldCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - MoldName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - MaxProcessingCapacity = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProcessCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProcessName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProcessOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), - DeviceCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - Rhythm = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - RhythmUnit = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_SCHEDULING_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - PlanNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ManufactureNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - ManufactureInputNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), - ManufactureOutputNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - PlanStatus = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), - PlanBeginTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - PlanEndTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - ActualBeginTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), - ActualEndTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_SCHEDULING_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - WorkOrderNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - DefectiveNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - AcceptableNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - OncePassRateRealValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - OncePassRateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), - StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_PRO_TSCHEDUL_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Vin = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - OnLineTime = table.Column(type: "datetime2", nullable: true), - FinalWorkshop = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FinalOnLineTime = table.Column(type: "datetime2", nullable: true), - CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: false), - UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UpdateTime = table.Column(type: "datetime2", nullable: false), - IsDelete = table.Column(type: "nvarchar(5)", maxLength: 5, nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_PRO_TSCHEDUL_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_RETURN_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ReturnNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SerialSrate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PickUpLocation = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - DemandPickupTime = table.Column(type: "datetime2", nullable: true), - PickUpCrossings = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Feedback = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Plant = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: false), - ReturnType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - LotNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Judge = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ReturnReason = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: true), - UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UpdateTime = table.Column(type: "datetime2", nullable: true), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_RETURN_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_SA_WEEK_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - ScheduleAgreement = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - PurchasingGroup = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - QuantityDemand = table.Column(type: "decimal(18,2)", nullable: true), - DateReceived = table.Column(type: "datetime2", nullable: true), - CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreateTime = table.Column(type: "datetime2", nullable: true), - UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UpdateTime = table.Column(type: "datetime2", nullable: true), - IsDelete = table.Column(type: "int", nullable: false), - Version = table.Column(type: "int", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_SA_WEEK_LOGS", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "SUPPLIER_SINV_DATA_LOGS", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), - MaterialCode = table.Column(type: "VARCHAR(50)", maxLength: 50, nullable: false), - MaterialDescription = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), - MaterialType = table.Column(type: "VARCHAR(20)", maxLength: 20, nullable: false), - QuantityCurrent = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - QuantityPlan = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - InventoryStatus = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), - SafetyStock = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), - ProductionCycle = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), - DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), - SupplierBatch = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), - SupplieryxqDate = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), - WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), - ReadState = table.Column(type: "bit", nullable: false, defaultValue: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false), - RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), - Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_SUPPLIER_SINV_DATA_LOGS", x => x.UId); - }); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_Id", - table: "SUPPLIER_CON_DATE_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_ReadState", - table: "SUPPLIER_CON_DATE_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_TaskId", - table: "SUPPLIER_CON_DATE_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_WriteState", - table: "SUPPLIER_CON_DATE_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_Id", - table: "SUPPLIER_CON_MMRP_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_ReadState", - table: "SUPPLIER_CON_MMRP_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_TaskId", - table: "SUPPLIER_CON_MMRP_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_WriteState", - table: "SUPPLIER_CON_MMRP_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_Id", - table: "SUPPLIER_CON_PO_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_ReadState", - table: "SUPPLIER_CON_PO_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_TaskId", - table: "SUPPLIER_CON_PO_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_WriteState", - table: "SUPPLIER_CON_PO_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_LOGS_Id", - table: "SUPPLIER_DEL_STATE_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_LOGS_ReadState", - table: "SUPPLIER_DEL_STATE_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_LOGS_TaskId", - table: "SUPPLIER_DEL_STATE_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_LOGS_WriteState", - table: "SUPPLIER_DEL_STATE_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_LOGS_Id", - table: "SUPPLIER_INV_DATA_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_LOGS_ReadState", - table: "SUPPLIER_INV_DATA_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_LOGS_TaskId", - table: "SUPPLIER_INV_DATA_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_LOGS_WriteState", - table: "SUPPLIER_INV_DATA_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_LOGS_Id", - table: "SUPPLIER_MRP_DATE_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_LOGS_ReadState", - table: "SUPPLIER_MRP_DATE_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_LOGS_TaskId", - table: "SUPPLIER_MRP_DATE_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_LOGS_WriteState", - table: "SUPPLIER_MRP_DATE_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_LOGS_Id", - table: "SUPPLIER_MRP_MONTH_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_LOGS_ReadState", - table: "SUPPLIER_MRP_MONTH_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_LOGS_TaskId", - table: "SUPPLIER_MRP_MONTH_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_LOGS_WriteState", - table: "SUPPLIER_MRP_MONTH_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_LOGS_Id", - table: "SUPPLIER_MRP_STATE_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_LOGS_ReadState", - table: "SUPPLIER_MRP_STATE_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_LOGS_TaskId", - table: "SUPPLIER_MRP_STATE_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_LOGS_WriteState", - table: "SUPPLIER_MRP_STATE_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_LOGS_Id", - table: "SUPPLIER_PO_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_LOGS_ReadState", - table: "SUPPLIER_PO_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_LOGS_TaskId", - table: "SUPPLIER_PO_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_LOGS_WriteState", - table: "SUPPLIER_PO_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_CSCHEDUL_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_ReadState", - table: "SUPPLIER_PRO_CSCHEDUL_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_TaskId", - table: "SUPPLIER_PRO_CSCHEDUL_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_WriteState", - table: "SUPPLIER_PRO_CSCHEDUL_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_HSCHEDUL_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_ReadState", - table: "SUPPLIER_PRO_HSCHEDUL_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_TaskId", - table: "SUPPLIER_PRO_HSCHEDUL_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_WriteState", - table: "SUPPLIER_PRO_HSCHEDUL_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_LOGS_Id", - table: "SUPPLIER_PRO_PLANING_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_LOGS_ReadState", - table: "SUPPLIER_PRO_PLANING_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_LOGS_TaskId", - table: "SUPPLIER_PRO_PLANING_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_LOGS_WriteState", - table: "SUPPLIER_PRO_PLANING_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_TSCHEDUL_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_ReadState", - table: "SUPPLIER_PRO_TSCHEDUL_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_TaskId", - table: "SUPPLIER_PRO_TSCHEDUL_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_WriteState", - table: "SUPPLIER_PRO_TSCHEDUL_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_LOGS_Id", - table: "SUPPLIER_RETURN_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_LOGS_ReadState", - table: "SUPPLIER_RETURN_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_LOGS_TaskId", - table: "SUPPLIER_RETURN_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_LOGS_WriteState", - table: "SUPPLIER_RETURN_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_LOGS_Id", - table: "SUPPLIER_SA_WEEK_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_LOGS_ReadState", - table: "SUPPLIER_SA_WEEK_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_LOGS_TaskId", - table: "SUPPLIER_SA_WEEK_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_LOGS_WriteState", - table: "SUPPLIER_SA_WEEK_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_Id", - table: "SUPPLIER_SINV_DATA_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_ReadState", - table: "SUPPLIER_SINV_DATA_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_TaskId", - table: "SUPPLIER_SINV_DATA_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_WriteState", - table: "SUPPLIER_SINV_DATA_LOGS", - column: "WriteState"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "SUPPLIER_BOM_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_CON_DATE_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_CON_MMRP_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_CON_PO_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_DEL_STATE_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_EMPLOYEE_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_INFO_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_INV_DATA_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_MRP_DATE_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_MRP_MONTH_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_MRP_STATE_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PO_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_CPS_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_CSCHEDUL_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_DATA_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_ENVIRONMENT_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_FLAW_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_HSCHEDUL_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_MATERIAL_DATA_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_PLANING_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_PROCESS_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_SCHEDULING_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_PRO_TSCHEDUL_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_RETURN_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_SA_WEEK_LOGS"); - - migrationBuilder.DropTable( - name: "SUPPLIER_SINV_DATA_LOGS"); - - migrationBuilder.AlterColumn( - name: "SalseDepartment", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Omterior", - table: "SUPPLIER_PRO_PLANING", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250617065901_z202506170001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250617065901_z202506170001.Designer.cs deleted file mode 100644 index c698d05..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250617065901_z202506170001.Designer.cs +++ /dev/null @@ -1,9985 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250617065901_z202506170001")] - partial class z202506170001 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_DATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_PO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250617065901_z202506170001.cs b/API/TaskManager.EntityFramework/Migrations/20250617065901_z202506170001.cs deleted file mode 100644 index be12471..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250617065901_z202506170001.cs +++ /dev/null @@ -1,921 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506170001 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_Id", - table: "SUPPLIER_SINV_DATA_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_Id", - table: "SUPPLIER_SINV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SA_WEEK_LOGS_Id", - table: "SUPPLIER_SA_WEEK_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SA_WEEK_Id", - table: "SUPPLIER_SA_WEEK"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_RETURN_LOGS_Id", - table: "SUPPLIER_RETURN_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_RETURN_Id", - table: "SUPPLIER_RETURN"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_TSCHEDUL_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_Id", - table: "SUPPLIER_PRO_TSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_PLANING_LOGS_Id", - table: "SUPPLIER_PRO_PLANING_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_PLANING_Id", - table: "SUPPLIER_PRO_PLANING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_HSCHEDUL_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_Id", - table: "SUPPLIER_PRO_HSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_CSCHEDUL_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_Id", - table: "SUPPLIER_PRO_CSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PO_LOGS_Id", - table: "SUPPLIER_PO_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PO_Id", - table: "SUPPLIER_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_WARNING_Id", - table: "SUPPLIER_MRP_WARNING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_STATE_LOGS_Id", - table: "SUPPLIER_MRP_STATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_STATE_Id", - table: "SUPPLIER_MRP_STATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_MONTH_LOGS_Id", - table: "SUPPLIER_MRP_MONTH_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_MONTH_Id", - table: "SUPPLIER_MRP_MONTH"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_DATE_LOGS_Id", - table: "SUPPLIER_MRP_DATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_DATE_Id", - table: "SUPPLIER_MRP_DATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_INV_DATA_LOGS_Id", - table: "SUPPLIER_INV_DATA_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_INV_DATA_Id", - table: "SUPPLIER_INV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_DEL_STATE_LOGS_Id", - table: "SUPPLIER_DEL_STATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_DEL_STATE_Id", - table: "SUPPLIER_DEL_STATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_Id", - table: "SUPPLIER_CON_PO_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_Id", - table: "SUPPLIER_CON_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_Id", - table: "SUPPLIER_CON_MMRP_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_Id", - table: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_Id", - table: "SUPPLIER_CON_DATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_Id", - table: "SUPPLIER_CON_DATE"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_Id", - table: "SUPPLIER_SINV_DATA_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_RequestDate", - table: "SUPPLIER_SINV_DATA_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_Id", - table: "SUPPLIER_SINV_DATA", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_RequestDate", - table: "SUPPLIER_SINV_DATA", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_LOGS_Id", - table: "SUPPLIER_SA_WEEK_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_LOGS_RequestDate", - table: "SUPPLIER_SA_WEEK_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_Id", - table: "SUPPLIER_SA_WEEK", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_RequestDate", - table: "SUPPLIER_SA_WEEK", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_LOGS_Id", - table: "SUPPLIER_RETURN_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_LOGS_RequestDate", - table: "SUPPLIER_RETURN_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_Id", - table: "SUPPLIER_RETURN", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_RequestDate", - table: "SUPPLIER_RETURN", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_TSCHEDUL_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_RequestDate", - table: "SUPPLIER_PRO_TSCHEDUL_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_Id", - table: "SUPPLIER_PRO_TSCHEDUL", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_RequestDate", - table: "SUPPLIER_PRO_TSCHEDUL", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_LOGS_Id", - table: "SUPPLIER_PRO_PLANING_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_LOGS_RequestDate", - table: "SUPPLIER_PRO_PLANING_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_Id", - table: "SUPPLIER_PRO_PLANING", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_RequestDate", - table: "SUPPLIER_PRO_PLANING", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_HSCHEDUL_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_RequestDate", - table: "SUPPLIER_PRO_HSCHEDUL_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_Id", - table: "SUPPLIER_PRO_HSCHEDUL", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_RequestDate", - table: "SUPPLIER_PRO_HSCHEDUL", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_CSCHEDUL_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_RequestDate", - table: "SUPPLIER_PRO_CSCHEDUL_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_Id", - table: "SUPPLIER_PRO_CSCHEDUL", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_RequestDate", - table: "SUPPLIER_PRO_CSCHEDUL", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_LOGS_Id", - table: "SUPPLIER_PO_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_LOGS_RequestDate", - table: "SUPPLIER_PO_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_Id", - table: "SUPPLIER_PO", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_RequestDate", - table: "SUPPLIER_PO", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_WARNING_Id", - table: "SUPPLIER_MRP_WARNING", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_WARNING_RequestDate", - table: "SUPPLIER_MRP_WARNING", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_LOGS_Id", - table: "SUPPLIER_MRP_STATE_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_LOGS_RequestDate", - table: "SUPPLIER_MRP_STATE_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_Id", - table: "SUPPLIER_MRP_STATE", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_RequestDate", - table: "SUPPLIER_MRP_STATE", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_LOGS_Id", - table: "SUPPLIER_MRP_MONTH_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_LOGS_RequestDate", - table: "SUPPLIER_MRP_MONTH_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_Id", - table: "SUPPLIER_MRP_MONTH", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_RequestDate", - table: "SUPPLIER_MRP_MONTH", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_LOGS_Id", - table: "SUPPLIER_MRP_DATE_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_LOGS_RequestDate", - table: "SUPPLIER_MRP_DATE_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_Id", - table: "SUPPLIER_MRP_DATE", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_RequestDate", - table: "SUPPLIER_MRP_DATE", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_LOGS_Id", - table: "SUPPLIER_INV_DATA_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_LOGS_RequestDate", - table: "SUPPLIER_INV_DATA_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_Id", - table: "SUPPLIER_INV_DATA", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_RequestDate", - table: "SUPPLIER_INV_DATA", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_LOGS_Id", - table: "SUPPLIER_DEL_STATE_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_LOGS_RequestDate", - table: "SUPPLIER_DEL_STATE_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_Id", - table: "SUPPLIER_DEL_STATE", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_RequestDate", - table: "SUPPLIER_DEL_STATE", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_Id", - table: "SUPPLIER_CON_PO_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_Id", - table: "SUPPLIER_CON_PO", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_Id", - table: "SUPPLIER_CON_MMRP_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_Id", - table: "SUPPLIER_CON_MMRP", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_Id", - table: "SUPPLIER_CON_DATE_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_Id", - table: "SUPPLIER_CON_DATE", - column: "Id"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_Id", - table: "SUPPLIER_SINV_DATA_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_RequestDate", - table: "SUPPLIER_SINV_DATA_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_Id", - table: "SUPPLIER_SINV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_RequestDate", - table: "SUPPLIER_SINV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SA_WEEK_LOGS_Id", - table: "SUPPLIER_SA_WEEK_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SA_WEEK_LOGS_RequestDate", - table: "SUPPLIER_SA_WEEK_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SA_WEEK_Id", - table: "SUPPLIER_SA_WEEK"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SA_WEEK_RequestDate", - table: "SUPPLIER_SA_WEEK"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_RETURN_LOGS_Id", - table: "SUPPLIER_RETURN_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_RETURN_LOGS_RequestDate", - table: "SUPPLIER_RETURN_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_RETURN_Id", - table: "SUPPLIER_RETURN"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_RETURN_RequestDate", - table: "SUPPLIER_RETURN"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_TSCHEDUL_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_RequestDate", - table: "SUPPLIER_PRO_TSCHEDUL_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_Id", - table: "SUPPLIER_PRO_TSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_RequestDate", - table: "SUPPLIER_PRO_TSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_PLANING_LOGS_Id", - table: "SUPPLIER_PRO_PLANING_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_PLANING_LOGS_RequestDate", - table: "SUPPLIER_PRO_PLANING_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_PLANING_Id", - table: "SUPPLIER_PRO_PLANING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_PLANING_RequestDate", - table: "SUPPLIER_PRO_PLANING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_HSCHEDUL_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_RequestDate", - table: "SUPPLIER_PRO_HSCHEDUL_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_Id", - table: "SUPPLIER_PRO_HSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_RequestDate", - table: "SUPPLIER_PRO_HSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_CSCHEDUL_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_RequestDate", - table: "SUPPLIER_PRO_CSCHEDUL_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_Id", - table: "SUPPLIER_PRO_CSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_RequestDate", - table: "SUPPLIER_PRO_CSCHEDUL"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PO_LOGS_Id", - table: "SUPPLIER_PO_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PO_LOGS_RequestDate", - table: "SUPPLIER_PO_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PO_Id", - table: "SUPPLIER_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PO_RequestDate", - table: "SUPPLIER_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_WARNING_Id", - table: "SUPPLIER_MRP_WARNING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_WARNING_RequestDate", - table: "SUPPLIER_MRP_WARNING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_STATE_LOGS_Id", - table: "SUPPLIER_MRP_STATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_STATE_LOGS_RequestDate", - table: "SUPPLIER_MRP_STATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_STATE_Id", - table: "SUPPLIER_MRP_STATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_STATE_RequestDate", - table: "SUPPLIER_MRP_STATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_MONTH_LOGS_Id", - table: "SUPPLIER_MRP_MONTH_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_MONTH_LOGS_RequestDate", - table: "SUPPLIER_MRP_MONTH_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_MONTH_Id", - table: "SUPPLIER_MRP_MONTH"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_MONTH_RequestDate", - table: "SUPPLIER_MRP_MONTH"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_DATE_LOGS_Id", - table: "SUPPLIER_MRP_DATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_DATE_LOGS_RequestDate", - table: "SUPPLIER_MRP_DATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_DATE_Id", - table: "SUPPLIER_MRP_DATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_MRP_DATE_RequestDate", - table: "SUPPLIER_MRP_DATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_INV_DATA_LOGS_Id", - table: "SUPPLIER_INV_DATA_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_INV_DATA_LOGS_RequestDate", - table: "SUPPLIER_INV_DATA_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_INV_DATA_Id", - table: "SUPPLIER_INV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_INV_DATA_RequestDate", - table: "SUPPLIER_INV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_DEL_STATE_LOGS_Id", - table: "SUPPLIER_DEL_STATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_DEL_STATE_LOGS_RequestDate", - table: "SUPPLIER_DEL_STATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_DEL_STATE_Id", - table: "SUPPLIER_DEL_STATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_DEL_STATE_RequestDate", - table: "SUPPLIER_DEL_STATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_Id", - table: "SUPPLIER_CON_PO_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_Id", - table: "SUPPLIER_CON_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_Id", - table: "SUPPLIER_CON_MMRP_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_Id", - table: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_Id", - table: "SUPPLIER_CON_DATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_Id", - table: "SUPPLIER_CON_DATE"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_Id", - table: "SUPPLIER_SINV_DATA_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_Id", - table: "SUPPLIER_SINV_DATA", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_LOGS_Id", - table: "SUPPLIER_SA_WEEK_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SA_WEEK_Id", - table: "SUPPLIER_SA_WEEK", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_LOGS_Id", - table: "SUPPLIER_RETURN_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_RETURN_Id", - table: "SUPPLIER_RETURN", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_TSCHEDUL_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_TSCHEDUL_Id", - table: "SUPPLIER_PRO_TSCHEDUL", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_LOGS_Id", - table: "SUPPLIER_PRO_PLANING_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PLANING_Id", - table: "SUPPLIER_PRO_PLANING", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_HSCHEDUL_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_HSCHEDUL_Id", - table: "SUPPLIER_PRO_HSCHEDUL", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_Id", - table: "SUPPLIER_PRO_CSCHEDUL_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CSCHEDUL_Id", - table: "SUPPLIER_PRO_CSCHEDUL", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_LOGS_Id", - table: "SUPPLIER_PO_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PO_Id", - table: "SUPPLIER_PO", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_WARNING_Id", - table: "SUPPLIER_MRP_WARNING", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_LOGS_Id", - table: "SUPPLIER_MRP_STATE_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_STATE_Id", - table: "SUPPLIER_MRP_STATE", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_LOGS_Id", - table: "SUPPLIER_MRP_MONTH_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_MONTH_Id", - table: "SUPPLIER_MRP_MONTH", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_LOGS_Id", - table: "SUPPLIER_MRP_DATE_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_MRP_DATE_Id", - table: "SUPPLIER_MRP_DATE", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_LOGS_Id", - table: "SUPPLIER_INV_DATA_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INV_DATA_Id", - table: "SUPPLIER_INV_DATA", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_LOGS_Id", - table: "SUPPLIER_DEL_STATE_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_DEL_STATE_Id", - table: "SUPPLIER_DEL_STATE", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_Id", - table: "SUPPLIER_CON_PO_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_Id", - table: "SUPPLIER_CON_PO", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_Id", - table: "SUPPLIER_CON_MMRP_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_Id", - table: "SUPPLIER_CON_MMRP", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_Id", - table: "SUPPLIER_CON_DATE_LOGS", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_Id", - table: "SUPPLIER_CON_DATE", - column: "Id", - unique: true, - filter: "[Id] IS NOT NULL"); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250617084345_z202506170002.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250617084345_z202506170002.Designer.cs deleted file mode 100644 index 8c7ad0d..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250617084345_z202506170002.Designer.cs +++ /dev/null @@ -1,9991 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250617084345_z202506170002")] - partial class z202506170002 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_DATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_PO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Module") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Module"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250617084345_z202506170002.cs b/API/TaskManager.EntityFramework/Migrations/20250617084345_z202506170002.cs deleted file mode 100644 index a817748..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250617084345_z202506170002.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506170002 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Module", - table: "TaskLogs", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.CreateIndex( - name: "IX_TaskLogs_Module", - table: "TaskLogs", - column: "Module"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_TaskLogs_Module", - table: "TaskLogs"); - - migrationBuilder.DropColumn( - name: "Module", - table: "TaskLogs"); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.Designer.cs deleted file mode 100644 index ff79466..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.Designer.cs +++ /dev/null @@ -1,10261 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250619005547_z202506190001")] - partial class z202506190001 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_DATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_PO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_BOM", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_CPS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Module") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Module"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.cs b/API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.cs deleted file mode 100644 index b0b65c3..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250619005547_z202506190001.cs +++ /dev/null @@ -1,1389 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506190001 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_Id", - table: "SUPPLIER_SINV_DATA_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_ReadState", - table: "SUPPLIER_SINV_DATA_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_RequestDate", - table: "SUPPLIER_SINV_DATA_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_TaskId", - table: "SUPPLIER_SINV_DATA_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_WriteState", - table: "SUPPLIER_SINV_DATA_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_Id", - table: "SUPPLIER_SINV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_ReadState", - table: "SUPPLIER_SINV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_TaskId", - table: "SUPPLIER_SINV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_SINV_DATA_WriteState", - table: "SUPPLIER_SINV_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_Id", - table: "SUPPLIER_CON_PO_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_ReadState", - table: "SUPPLIER_CON_PO_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_TaskId", - table: "SUPPLIER_CON_PO_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_WriteState", - table: "SUPPLIER_CON_PO_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_Id", - table: "SUPPLIER_CON_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_ReadState", - table: "SUPPLIER_CON_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_TaskId", - table: "SUPPLIER_CON_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_WriteState", - table: "SUPPLIER_CON_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_Id", - table: "SUPPLIER_CON_MMRP_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_ReadState", - table: "SUPPLIER_CON_MMRP_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_TaskId", - table: "SUPPLIER_CON_MMRP_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_WriteState", - table: "SUPPLIER_CON_MMRP_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_Id", - table: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_ReadState", - table: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_TaskId", - table: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_WriteState", - table: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_Id", - table: "SUPPLIER_CON_DATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_ReadState", - table: "SUPPLIER_CON_DATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_TaskId", - table: "SUPPLIER_CON_DATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_WriteState", - table: "SUPPLIER_CON_DATE_LOGS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_Id", - table: "SUPPLIER_CON_DATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_ReadState", - table: "SUPPLIER_CON_DATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_TaskId", - table: "SUPPLIER_CON_DATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_WriteState", - table: "SUPPLIER_CON_DATE"); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskLogs", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Module", - table: "TaskLogs", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_SCHEDULING_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_SCHEDULING_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_SCHEDULING", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_SCHEDULING", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_PROCESS_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_PROCESS_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_PROCESS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_PROCESS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_MATERIAL_STOCK", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_MATERIAL_STOCK", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_MATERIAL_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_MATERIAL_DATA", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_FLAW_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_FLAW_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_FLAW", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_FLAW", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_FIRST_PASSYIELD", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_FIRST_PASSYIELD", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_ENVIRONMENT_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_ENVIRONMENT_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_ENVIRONMENT", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_ENVIRONMENT", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_DATA_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_DATA_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_DATA", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_CPS_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_CPS_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_CPS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_CPS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_PRO_ATTACHMENT_DATA", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_ATTACHMENT_DATA", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_INFO_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_INFO_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_INFO", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_INFO", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_EMPLOYEE_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_EMPLOYEE_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_EMPLOYEE", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_EMPLOYEE", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_CON_PO_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_CON_PO", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_CON_MMRP_LOGS", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_CON_MMRP_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_CON_MMRP", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_CON_MMRP", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_CON_DATE_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_CON_DATE", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_BOM_LOGS", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_BOM_LOGS", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.AddColumn( - name: "Id", - table: "SUPPLIER_BOM", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestDate", - table: "SUPPLIER_BOM", - type: "nvarchar(30)", - maxLength: 30, - nullable: true); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_STATION_FIRST_PASSYIELD_RequestDate", - table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_SCHEDULING_RequestDate", - table: "SUPPLIER_PRO_SCHEDULING", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PROCESS_EQUIPMENT_RequestDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_PROCESS_RequestDate", - table: "SUPPLIER_PRO_PROCESS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_OEE_TIME_DETAILS_RequestDate", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_RequestDate", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_MATERIAL_STOCK_RequestDate", - table: "SUPPLIER_PRO_MATERIAL_STOCK", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_MATERIAL_DATA_RequestDate", - table: "SUPPLIER_PRO_MATERIAL_DATA", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_FLAW_RequestDate", - table: "SUPPLIER_PRO_FLAW", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_FIRST_PASSYIELD_RequestDate", - table: "SUPPLIER_PRO_FIRST_PASSYIELD", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_ENVIRONMENT_RequestDate", - table: "SUPPLIER_PRO_ENVIRONMENT", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_DATA_RequestDate", - table: "SUPPLIER_PRO_DATA", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_CPS_RequestDate", - table: "SUPPLIER_PRO_CPS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_PRO_ATTACHMENT_DATA_RequestDate", - table: "SUPPLIER_PRO_ATTACHMENT_DATA", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_INFO_RequestDate", - table: "SUPPLIER_INFO", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_EMPLOYEE_RequestDate", - table: "SUPPLIER_EMPLOYEE", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_RequestDate", - table: "SUPPLIER_CON_PO", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_RequestDate", - table: "SUPPLIER_CON_MMRP", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_RequestDate", - table: "SUPPLIER_CON_DATE", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_BOM_RequestDate", - table: "SUPPLIER_BOM", - column: "RequestDate"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_STATION_FIRST_PASSYIELD_RequestDate", - table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_SCHEDULING_RequestDate", - table: "SUPPLIER_PRO_SCHEDULING"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_PROCESS_EQUIPMENT_RequestDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_PROCESS_RequestDate", - table: "SUPPLIER_PRO_PROCESS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_OEE_TIME_DETAILS_RequestDate", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_RequestDate", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_MATERIAL_STOCK_RequestDate", - table: "SUPPLIER_PRO_MATERIAL_STOCK"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_MATERIAL_DATA_RequestDate", - table: "SUPPLIER_PRO_MATERIAL_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_FLAW_RequestDate", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_FIRST_PASSYIELD_RequestDate", - table: "SUPPLIER_PRO_FIRST_PASSYIELD"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_ENVIRONMENT_RequestDate", - table: "SUPPLIER_PRO_ENVIRONMENT"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_DATA_RequestDate", - table: "SUPPLIER_PRO_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_CPS_RequestDate", - table: "SUPPLIER_PRO_CPS"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_PRO_ATTACHMENT_DATA_RequestDate", - table: "SUPPLIER_PRO_ATTACHMENT_DATA"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_INFO_RequestDate", - table: "SUPPLIER_INFO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_EMPLOYEE_RequestDate", - table: "SUPPLIER_EMPLOYEE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_PO_RequestDate", - table: "SUPPLIER_CON_PO"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_MMRP_RequestDate", - table: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_CON_DATE_RequestDate", - table: "SUPPLIER_CON_DATE"); - - migrationBuilder.DropIndex( - name: "IX_SUPPLIER_BOM_RequestDate", - table: "SUPPLIER_BOM"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_SCHEDULING_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_SCHEDULING_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_SCHEDULING"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_SCHEDULING"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_PROCESS_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_PROCESS_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_PROCESS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_PROCESS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_MATERIAL_STOCK"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_MATERIAL_STOCK"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_MATERIAL_DATA"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_MATERIAL_DATA"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_FLAW_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_FLAW_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_FLAW"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_FIRST_PASSYIELD"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_FIRST_PASSYIELD"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_ENVIRONMENT_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_ENVIRONMENT_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_ENVIRONMENT"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_ENVIRONMENT"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_DATA_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_DATA_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_DATA"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_DATA"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_CPS_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_CPS_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_CPS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_CPS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_PRO_ATTACHMENT_DATA"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_PRO_ATTACHMENT_DATA"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_INFO_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_INFO_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_INFO"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_INFO"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_EMPLOYEE_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_EMPLOYEE_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_EMPLOYEE"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_EMPLOYEE"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_CON_PO_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_CON_PO"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_CON_MMRP_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_CON_MMRP"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_CON_DATE_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_CON_DATE"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_BOM_LOGS"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_BOM_LOGS"); - - migrationBuilder.DropColumn( - name: "Id", - table: "SUPPLIER_BOM"); - - migrationBuilder.DropColumn( - name: "RequestDate", - table: "SUPPLIER_BOM"); - - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskLogs", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Module", - table: "TaskLogs", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_CON_MMRP_LOGS", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Id", - table: "SUPPLIER_CON_MMRP", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_Id", - table: "SUPPLIER_SINV_DATA_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_ReadState", - table: "SUPPLIER_SINV_DATA_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_RequestDate", - table: "SUPPLIER_SINV_DATA_LOGS", - column: "RequestDate"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_TaskId", - table: "SUPPLIER_SINV_DATA_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_LOGS_WriteState", - table: "SUPPLIER_SINV_DATA_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_Id", - table: "SUPPLIER_SINV_DATA", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_ReadState", - table: "SUPPLIER_SINV_DATA", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_TaskId", - table: "SUPPLIER_SINV_DATA", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_SINV_DATA_WriteState", - table: "SUPPLIER_SINV_DATA", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_Id", - table: "SUPPLIER_CON_PO_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_ReadState", - table: "SUPPLIER_CON_PO_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_TaskId", - table: "SUPPLIER_CON_PO_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_LOGS_WriteState", - table: "SUPPLIER_CON_PO_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_Id", - table: "SUPPLIER_CON_PO", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_ReadState", - table: "SUPPLIER_CON_PO", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_TaskId", - table: "SUPPLIER_CON_PO", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_PO_WriteState", - table: "SUPPLIER_CON_PO", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_Id", - table: "SUPPLIER_CON_MMRP_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_ReadState", - table: "SUPPLIER_CON_MMRP_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_TaskId", - table: "SUPPLIER_CON_MMRP_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_LOGS_WriteState", - table: "SUPPLIER_CON_MMRP_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_Id", - table: "SUPPLIER_CON_MMRP", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_ReadState", - table: "SUPPLIER_CON_MMRP", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_TaskId", - table: "SUPPLIER_CON_MMRP", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_MMRP_WriteState", - table: "SUPPLIER_CON_MMRP", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_Id", - table: "SUPPLIER_CON_DATE_LOGS", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_ReadState", - table: "SUPPLIER_CON_DATE_LOGS", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_TaskId", - table: "SUPPLIER_CON_DATE_LOGS", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_LOGS_WriteState", - table: "SUPPLIER_CON_DATE_LOGS", - column: "WriteState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_Id", - table: "SUPPLIER_CON_DATE", - column: "Id"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_ReadState", - table: "SUPPLIER_CON_DATE", - column: "ReadState"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_TaskId", - table: "SUPPLIER_CON_DATE", - column: "TaskId"); - - migrationBuilder.CreateIndex( - name: "IX_SUPPLIER_CON_DATE_WriteState", - table: "SUPPLIER_CON_DATE", - column: "WriteState"); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250620033738_z202506200001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250620033738_z202506200001.Designer.cs deleted file mode 100644 index 3e1af91..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250620033738_z202506200001.Designer.cs +++ /dev/null @@ -1,10260 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250620033738_z202506200001")] - partial class z202506200001 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_DATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_PO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_BOM", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_CPS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Module") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Module"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250620033738_z202506200001.cs b/API/TaskManager.EntityFramework/Migrations/20250620033738_z202506200001.cs deleted file mode 100644 index b23db53..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250620033738_z202506200001.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506200001 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "FailedInfo", - table: "TaskSub", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "FailedInfo", - table: "TaskSub", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250620073219_z202506200002.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250620073219_z202506200002.Designer.cs deleted file mode 100644 index fb80d5a..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250620073219_z202506200002.Designer.cs +++ /dev/null @@ -1,10261 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250620073219_z202506200002")] - partial class z202506200002 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_DATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_PO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_BOM", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_CPS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Module") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Module"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250620073219_z202506200002.cs b/API/TaskManager.EntityFramework/Migrations/20250620073219_z202506200002.cs deleted file mode 100644 index 67ee582..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250620073219_z202506200002.cs +++ /dev/null @@ -1,60 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506200002 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskSub", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(30)", - oldMaxLength: 30, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Type", - table: "SUPPLIER_PRO_MATERIAL_DATA", - type: "VARCHAR(50)", - maxLength: 50, - nullable: false, - oldClrType: typeof(decimal), - oldType: "DECIMAL(1,0)", - oldPrecision: 1); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "TaskName", - table: "TaskSub", - type: "nvarchar(30)", - maxLength: 30, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Type", - table: "SUPPLIER_PRO_MATERIAL_DATA", - type: "DECIMAL(1,0)", - precision: 1, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(50)", - oldMaxLength: 50); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250620074909_z202506200003.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250620074909_z202506200003.Designer.cs deleted file mode 100644 index d86090a..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250620074909_z202506200003.Designer.cs +++ /dev/null @@ -1,10261 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250620074909_z202506200003")] - partial class z202506200003 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "8.0.0") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_DATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_PO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_BOM", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_CPS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Module") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Module"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250620074909_z202506200003.cs b/API/TaskManager.EntityFramework/Migrations/20250620074909_z202506200003.cs deleted file mode 100644 index a0999c2..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250620074909_z202506200003.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506200003 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250624060542_z202506240001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250624060542_z202506240001.Designer.cs deleted file mode 100644 index e494fcd..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250624060542_z202506240001.Designer.cs +++ /dev/null @@ -1,10332 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250624060542_z202506240001")] - partial class z202506240001 - { - /// - 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.DynamicTable", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SchemaJson") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("DynamicTables"); - }); - - modelBuilder.Entity("TaskManager.Entity.DynamicTableRecord", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("RecordJson") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableId") - .HasColumnType("bigint"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("DynamicTableRecords"); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_DATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_PO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_BOM", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheckOutTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_CPS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Module") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Module"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250624060542_z202506240001.cs b/API/TaskManager.EntityFramework/Migrations/20250624060542_z202506240001.cs deleted file mode 100644 index 64bc186..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250624060542_z202506240001.cs +++ /dev/null @@ -1,101 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506240001 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "CreationTime", - table: "TaskLogs", - 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: "DeadLine", - table: "SUPPLIER_PRO_MATERIAL_STOCK", - type: "VARCHAR(30)", - maxLength: 30, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(10)", - oldMaxLength: 10); - - migrationBuilder.CreateTable( - name: "DynamicTableRecords", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - TableId = table.Column(type: "bigint", nullable: false), - RecordJson = table.Column(type: "nvarchar(max)", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_DynamicTableRecords", x => x.UId); - }); - - migrationBuilder.CreateTable( - name: "DynamicTables", - columns: table => new - { - UId = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - TableName = table.Column(type: "nvarchar(max)", nullable: false), - SchemaJson = table.Column(type: "nvarchar(max)", nullable: false), - WriteState = table.Column(type: "bit", nullable: false), - ReadState = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_DynamicTables", x => x.UId); - }); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "DynamicTableRecords"); - - migrationBuilder.DropTable( - name: "DynamicTables"); - - migrationBuilder.AlterColumn( - name: "CreationTime", - table: "TaskLogs", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "DeadLine", - table: "SUPPLIER_PRO_MATERIAL_STOCK", - type: "VARCHAR(10)", - maxLength: 10, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(30)", - oldMaxLength: 30); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250626085605_z20250620001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250626085605_z20250620001.Designer.cs deleted file mode 100644 index ec611e2..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250626085605_z20250620001.Designer.cs +++ /dev/null @@ -1,10317 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250626085605_z20250620001")] - partial class z20250620001 - { - /// - 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.DynamicTable", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SchemaJson") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("DynamicTables"); - }); - - modelBuilder.Entity("TaskManager.Entity.DynamicTableRecord", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("RecordJson") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableId") - .HasColumnType("bigint"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("DynamicTableRecords"); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_DATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_PO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("VARCHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_BOM", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CheckOutTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CheckOutTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CheckOutTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_CPS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("VarChar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Module") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Module"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250626085605_z20250620001.cs b/API/TaskManager.EntityFramework/Migrations/20250626085605_z20250620001.cs deleted file mode 100644 index be4eb57..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250626085605_z20250620001.cs +++ /dev/null @@ -1,279 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z20250620001 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_SINV_DATA", - type: "VarChar(30)", - maxLength: 30, - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "ValidDays", - table: "SUPPLIER_PRO_MATERIAL_DATA", - type: "VARCHAR(12)", - maxLength: 12, - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(12)", - oldMaxLength: 12); - - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_INFO_LOGS", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_INFO_DT", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_INFO", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_EMPLOYEE_LOGS", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "CheckOutTime", - table: "SUPPLIER_EMPLOYEE_LOGS", - type: "datetime2", - nullable: true, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "CheckInTime", - table: "SUPPLIER_EMPLOYEE_LOGS", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_EMPLOYEE_DT", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "CheckOutTime", - table: "SUPPLIER_EMPLOYEE_DT", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "CheckInTime", - table: "SUPPLIER_EMPLOYEE_DT", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_EMPLOYEE", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "CheckOutTime", - table: "SUPPLIER_EMPLOYEE", - type: "datetime2", - nullable: true, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "CheckInTime", - table: "SUPPLIER_EMPLOYEE", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_SINV_DATA", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(string), - oldType: "VarChar(30)", - oldMaxLength: 30); - - migrationBuilder.AlterColumn( - name: "ValidDays", - table: "SUPPLIER_PRO_MATERIAL_DATA", - type: "CHAR(12)", - maxLength: 12, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(12)", - oldMaxLength: 12); - - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_INFO_LOGS", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_INFO_DT", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_INFO", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_EMPLOYEE_LOGS", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "CheckOutTime", - table: "SUPPLIER_EMPLOYEE_LOGS", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - defaultValue: "", - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CheckInTime", - table: "SUPPLIER_EMPLOYEE_LOGS", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_EMPLOYEE_DT", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "CheckOutTime", - table: "SUPPLIER_EMPLOYEE_DT", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "CheckInTime", - table: "SUPPLIER_EMPLOYEE_DT", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "DataUpdateTime", - table: "SUPPLIER_EMPLOYEE", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "CheckOutTime", - table: "SUPPLIER_EMPLOYEE", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - defaultValue: "", - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CheckInTime", - table: "SUPPLIER_EMPLOYEE", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250627012246_z202506270001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250627012246_z202506270001.Designer.cs deleted file mode 100644 index 774215a..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250627012246_z202506270001.Designer.cs +++ /dev/null @@ -1,10317 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250627012246_z202506270001")] - partial class z202506270001 - { - /// - 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.DynamicTable", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SchemaJson") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("DynamicTables"); - }); - - modelBuilder.Entity("TaskManager.Entity.DynamicTableRecord", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("RecordJson") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableId") - .HasColumnType("bigint"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("DynamicTableRecords"); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_DATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_PO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("VARCHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_BOM", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CheckOutTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CheckOutTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CheckOutTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_CPS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("VarChar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Module") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Module"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250627012246_z202506270001.cs b/API/TaskManager.EntityFramework/Migrations/20250627012246_z202506270001.cs deleted file mode 100644 index cf01a79..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250627012246_z202506270001.cs +++ /dev/null @@ -1,22 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506270001 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250627014145_z202506270002.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250627014145_z202506270002.Designer.cs deleted file mode 100644 index 1239933..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250627014145_z202506270002.Designer.cs +++ /dev/null @@ -1,10311 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250627014145_z202506270002")] - partial class z202506270002 - { - /// - 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.DynamicTable", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SchemaJson") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("DynamicTables"); - }); - - modelBuilder.Entity("TaskManager.Entity.DynamicTableRecord", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("RecordJson") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableId") - .HasColumnType("bigint"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("DynamicTableRecords"); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_DATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_PO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("VARCHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - 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(32) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(32) - .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(30) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("VARCHAR"); - - 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() - .HasColumnType("datetime2"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("VARCHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_BOM", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CheckOutTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CheckOutTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CheckOutTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_CPS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("VarChar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Module") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Module"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250627014145_z202506270002.cs b/API/TaskManager.EntityFramework/Migrations/20250627014145_z202506270002.cs deleted file mode 100644 index d500002..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250627014145_z202506270002.cs +++ /dev/null @@ -1,267 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506270002 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "ProductionDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(16)", - oldMaxLength: 16); - - migrationBuilder.AlterColumn( - name: "CalibrationDueDays", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "VARCHAR(12)", - maxLength: 12, - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(12)", - oldMaxLength: 12); - - migrationBuilder.AlterColumn( - name: "CalibrationDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "ProductionDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(16)", - oldMaxLength: 16); - - migrationBuilder.AlterColumn( - name: "CalibrationDueDays", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", - type: "VARCHAR(12)", - maxLength: 12, - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(12)", - oldMaxLength: 12); - - migrationBuilder.AlterColumn( - name: "CalibrationDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - - migrationBuilder.AlterColumn( - name: "ProductionDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(16)", - oldMaxLength: 16); - - migrationBuilder.AlterColumn( - name: "DeviceStatus", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "VARCHAR(30)", - maxLength: 30, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(16)", - oldMaxLength: 16); - - migrationBuilder.AlterColumn( - name: "DesignLifeValue", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(16)", - oldMaxLength: 16); - - migrationBuilder.AlterColumn( - name: "DesignLifeUnits", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(16)", - oldMaxLength: 16); - - migrationBuilder.AlterColumn( - name: "CurrentUsageCount", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(16)", - oldMaxLength: 16); - - migrationBuilder.AlterColumn( - name: "CalibrationDueDays", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "VARCHAR(32)", - maxLength: 32, - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(12)", - oldMaxLength: 12); - - migrationBuilder.AlterColumn( - name: "CalibrationDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "CHAR(19)", - oldMaxLength: 19); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "ProductionDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "CHAR(16)", - maxLength: 16, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "CalibrationDueDays", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "CHAR(12)", - maxLength: 12, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(12)", - oldMaxLength: 12); - - migrationBuilder.AlterColumn( - name: "CalibrationDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "ProductionDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", - type: "CHAR(16)", - maxLength: 16, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "CalibrationDueDays", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", - type: "CHAR(12)", - maxLength: 12, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(12)", - oldMaxLength: 12); - - migrationBuilder.AlterColumn( - name: "CalibrationDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "ProductionDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "CHAR(16)", - maxLength: 16, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "DeviceStatus", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "VARCHAR(16)", - maxLength: 16, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(30)", - oldMaxLength: 30); - - migrationBuilder.AlterColumn( - name: "DesignLifeValue", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "VARCHAR(16)", - maxLength: 16, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32); - - migrationBuilder.AlterColumn( - name: "DesignLifeUnits", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "VARCHAR(16)", - maxLength: 16, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32); - - migrationBuilder.AlterColumn( - name: "CurrentUsageCount", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "VARCHAR(16)", - maxLength: 16, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32); - - migrationBuilder.AlterColumn( - name: "CalibrationDueDays", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "CHAR(12)", - maxLength: 12, - nullable: false, - oldClrType: typeof(string), - oldType: "VARCHAR(32)", - oldMaxLength: 32); - - migrationBuilder.AlterColumn( - name: "CalibrationDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "CHAR(19)", - maxLength: 19, - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250627014433_z202506270003.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250627014433_z202506270003.Designer.cs deleted file mode 100644 index 05e1ecf..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250627014433_z202506270003.Designer.cs +++ /dev/null @@ -1,10311 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using TaskManager.EntityFramework; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - [DbContext(typeof(JobDbContext))] - [Migration("20250627014433_z202506270003")] - partial class z202506270003 - { - /// - 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.DynamicTable", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SchemaJson") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("DynamicTables"); - }); - - modelBuilder.Entity("TaskManager.Entity.DynamicTableRecord", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("RecordJson") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableId") - .HasColumnType("bigint"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("DynamicTableRecords"); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_DATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet13") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet14") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet15") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet16") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet17") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet18") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet19") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet20") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet21") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet22") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet23") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet24") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet25") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet26") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet27") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet28") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet29") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet30") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet31") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_DATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_MMRP", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PlantId") - .HasMaxLength(64) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet1") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet10") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet11") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet12") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet2") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet3") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet4") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet5") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet6") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet7") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet8") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityMeet9") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ReleaseEdition") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(7) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_MMRP_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_CON_PO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FeedbackResults") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Measures") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("QuantityMeet") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(10) - .HasColumnType("NVARCHAR"); - - b.Property("SupplierCode") - .HasMaxLength(32) - .HasColumnType("NVARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VentureSpecific") - .HasMaxLength(255) - .HasColumnType("NVARCHAR"); - - b.Property("VentureType") - .HasMaxLength(50) - .HasColumnType("NVARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_CON_PO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FileName") - .IsRequired() - .HasMaxLength(300) - .HasColumnType("VARCHAR"); - - b.Property("FileUrl") - .IsRequired() - .HasMaxLength(1000) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ChineseUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCollectionPoint") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EnvIndicatorName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EquipmentName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LowerLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("NumValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpperLimit") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_ENVIRONMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FLAW", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ClassOfName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DefectsCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DefectsDesc") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("VARCHAR"); - - b.Property("DefectsLevel") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("DefectsName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Numberofdefect") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FLAW_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("VARCHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Launched") - .HasMaxLength(6) - .HasColumnType("VARCHAR"); - - b.Property("MpnCode") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("MpnName") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("OemHardwareRevision") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemModel") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OemProjectName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OemSoftwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcurementType") - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("ValidDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("CHAR"); - - b.Property("VendorHardwareRevision") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Rate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(33) - .HasColumnType("VARCHAR"); - - b.Property("EndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("RecId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubTypeName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - 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(32) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(32) - .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(30) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("VARCHAR"); - - 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() - .HasColumnType("datetime2"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CalibrationDate") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("CalibrationDueDays") - .IsRequired() - .HasMaxLength(12) - .HasColumnType("VARCHAR"); - - b.Property("CavityCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CoolingChannelLayout") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("CurrentLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CurrentUsageCount") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeUnits") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DesignLifeValue") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DetectionAccuracy") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DetectionRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("DeviceStatus") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("DeviceType") - .HasPrecision(1) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Manufacturer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Material") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ModelNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldSize") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("OverhaulCount") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ProductionDate") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("ToleranceRange") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("UnitType") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WearThreshold") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaxProcessingCapacity") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("MoldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MoldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProcessOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Rhythm") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("RhythmUnit") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TechCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TechVersion") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ValidPeriod") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_PROCESS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_BOM", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("BomCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("BomName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("BomVersion") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialUnit") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SubMaterialCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubMaterialQuota") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubMaterialType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("SubMaterialUnit") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductType") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_BOM_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCreateTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReceivingCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("RoadReceiveTime") - .HasColumnType("datetime2"); - - b.Property("RoadShippedTime") - .HasColumnType("datetime2"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierReceiveTime") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_DEL_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CheckOutTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_EMPLOYEE", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CheckOutTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckInTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("CheckOutTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("HaveQuantity") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OperatorId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OperatorName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PositionName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("QualificationLevel") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_EMPLOYEE_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_INFO", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasColumnType("datetime2"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_DT", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("KeyStation") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationOrder") - .HasPrecision(16) - .HasColumnType("DECIMAL"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_INFO_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StockState") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_INV_DATA_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("IsUpdate") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand13") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand14") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand15") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand16") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand17") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand18") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand19") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand20") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand21") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand22") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand23") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand24") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand25") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand26") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand27") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand28") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand29") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand30") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand31") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartDate") - .HasColumnType("datetime2"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_DATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("IsUpdate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)") - .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantId"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plantName"); - - b.Property("QuantityDemand1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); - - b.Property("QuantityDemand10") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); - - b.Property("QuantityDemand11") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); - - b.Property("QuantityDemand12") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); - - b.Property("QuantityDemand2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); - - b.Property("QuantityDemand3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); - - b.Property("QuantityDemand4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); - - b.Property("QuantityDemand5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); - - b.Property("QuantityDemand6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); - - b.Property("QuantityDemand7") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); - - b.Property("QuantityDemand8") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); - - b.Property("QuantityDemand9") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_MONTH_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("CreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateRequired") - .HasColumnType("datetime2"); - - b.Property("DemandSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DemandType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("OnTimePercentage") - .HasColumnType("decimal(18,2)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SummaryCreatQuantity") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("SummaryQuantityReceive") - .HasColumnType("decimal(18,2)"); - - b.Property("SummarySign") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_STATE_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateGap") - .HasColumnType("decimal(18,2)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryGap") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityCurrent") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityInTransit") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlanned") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityPlannedDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReckonDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_MRP_WARNING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Batch") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Country") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeliveryDate") - .HasColumnType("datetime2"); - - b.Property("DeliveryPlace") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("ItemType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("MaterialUnit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Note") - .HasColumnType("nvarchar(max)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PlantName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrder") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Purchaser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Supplier") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TradeTerms") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("VoucherDate") - .HasColumnType("datetime2"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PO_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_CPS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CarrierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Cc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Characteristic") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckMode") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DecimalValue") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("DetectionMode") - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("FttQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("GatherSpot") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IntputQty") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("LowerLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("Parameter") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Sc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("Spc") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UnitCn") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UnitEn") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("UpperLimit") - .HasPrecision(26, 15) - .HasColumnType("DECIMAL"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_CPS_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AssemblyMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("ModelCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MotorMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineDate") - .HasColumnType("datetime2"); - - b.Property("OnLineTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SortDate") - .HasColumnType("datetime2"); - - b.Property("SortTime") - .HasMaxLength(8) - .HasColumnType("nvarchar(8)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_CSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildPackageInfo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ChildSource") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("CollectTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("CHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FinalQualityStatus") - .IsRequired() - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InstrumentQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManualQualityStatus") - .HasMaxLength(8) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialInputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("MaterialOutputTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ParentHardwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ParentSoftwareRevision") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubProdNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubProdSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldNum") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductBatch") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductSn") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WorkshopName") - .HasMaxLength(50) - .HasColumnType("nvarchar"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_HSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CheckNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CheckResult") - .IsRequired() - .HasMaxLength(2) - .HasColumnType("CHAR"); - - b.Property("CheckTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ComponentCode") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ComponentName") - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DeadLine") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("DeviceCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("DeviceName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("EmpCode") - .IsRequired() - .HasMaxLength(16) - .HasColumnType("VARCHAR"); - - b.Property("EmpName") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("FeatureLower") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUnit") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("FeatureUpper") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("FeatureValue") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LimitUpdateTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SamplingRate") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("StandardValue") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubBatchNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SubBatchSn") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierAddress") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SubSupplierName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierSubName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorFieldCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("VendorFieldDesc") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Assembly") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "assembly"); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "createByUser"); - - b.Property("CreateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "createTime"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "isDelete"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "materialCode"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "models"); - - b.Property("Omterior") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Pattern") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "pattern"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "plant"); - - b.Property("Quantity1") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity1"); - - b.Property("Quantity2") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity2"); - - b.Property("Quantity3") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity3"); - - b.Property("Quantity4") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity4"); - - b.Property("Quantity5") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity5"); - - b.Property("Quantity6") - .HasColumnType("decimal(18,2)") - .HasAnnotation("Relational:JsonPropertyName", "quantity6"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("ReleaseEdition") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SalseDepartment") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("StartMonth") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "startMonth"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("Type") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "type"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); - - b.Property("UpdateTime") - .HasColumnType("datetime2") - .HasAnnotation("Relational:JsonPropertyName", "updateTime"); - - b.Property("Version") - .HasColumnType("int") - .HasAnnotation("Relational:JsonPropertyName", "version"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_PLANING_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("ActualBeginTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("ActualEndTime") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureInputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ManufactureNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ManufactureOutputNum") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlanBeginTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanEndTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("PlanNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlanStatus") - .IsRequired() - .HasMaxLength(1) - .HasColumnType("CHAR"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("AcceptableNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("CheryProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("CheryProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("DefectiveNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ManufactureNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("OncePassRateRealValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("OncePassRateTagValue") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("PlantId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("PlantName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("ProductBatchNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("ProductionLineName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("StationId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("StationName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("StatisticalTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("VendorProductName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("VendorProductNo") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkOrderNumber") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("WorkShift") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopId") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("WorkshopName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("FinalOnLineTime") - .HasColumnType("datetime2"); - - b.Property("FinalWorkshop") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .IsRequired() - .HasMaxLength(5) - .HasColumnType("nvarchar(5)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Models") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("OnLineTime") - .HasColumnType("datetime2"); - - b.Property("ProductionLineId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProductionLineName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("Vin") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_PRO_TSCHEDUL_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DemandPickupTime") - .HasColumnType("datetime2"); - - b.Property("Feedback") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("Judge") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("LotNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PickUpCrossings") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PickUpLocation") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Plant") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDelivery") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReturnNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnReason") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReturnType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialSrate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_RETURN_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DateReceived") - .HasColumnType("datetime2"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDelete") - .HasColumnType("int"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDescription") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("PlantId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasingGroup") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityDemand") - .HasColumnType("decimal(18,2)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ScheduleAgreement") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SerialNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpdateByUser") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("Version") - .HasColumnType("int"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Id"); - - b.HasIndex("ReadState"); - - b.HasIndex("RequestDate"); - - b.HasIndex("TaskId"); - - b.HasIndex("WriteState"); - - b.ToTable("SUPPLIER_SA_WEEK_LOGS"); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("VarChar"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.HasIndex("RequestDate"); - - b.ToTable("SUPPLIER_SINV_DATA", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA_LOGS", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataUpdateTime") - .IsRequired() - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("Id") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InventoryStatus") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("VARCHAR"); - - b.Property("MaterialDescription") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("VARCHAR"); - - b.Property("MaterialType") - .IsRequired() - .HasMaxLength(20) - .HasColumnType("VARCHAR"); - - b.Property("ProductionCycle") - .IsRequired() - .HasMaxLength(10) - .HasColumnType("VARCHAR"); - - b.Property("QuantityCurrent") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("QuantityPlan") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("ReadState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("Remark") - .HasMaxLength(500) - .HasColumnType("NVarchar"); - - b.Property("RequestDate") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SafetyStock") - .HasPrecision(16, 5) - .HasColumnType("DECIMAL"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(32) - .HasColumnType("VARCHAR"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("VARCHAR"); - - b.Property("SupplieryxqDate") - .HasMaxLength(19) - .HasColumnType("CHAR"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("WriteState") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_SINV_DATA_LOGS", (string)null); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Creator") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Subscriber") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TableName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskAllocation"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("Api") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("Client") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Corn") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("IsAuto") - .HasColumnType("bit"); - - b.Property("Module") - .HasMaxLength(400) - .HasColumnType("nvarchar(400)"); - - b.Property("PageSize") - .HasColumnType("int"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TableName") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("Url") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskConifgure"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskLog", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("Info") - .HasColumnType("nvarchar(max)"); - - b.Property("Module") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Path") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Version") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.HasIndex("Module"); - - b.ToTable("TaskLogs"); - }); - - modelBuilder.Entity("TaskManager.Entity.TaskSub", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("DataCount") - .HasColumnType("int"); - - b.Property("Domain") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("FailedCount") - .HasColumnType("int"); - - b.Property("FailedInfo") - .HasColumnType("nvarchar(max)"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Site") - .IsRequired() - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("Subscriber") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("SyncedPageCount") - .HasColumnType("int"); - - b.Property("TableName") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("TaskId") - .HasColumnType("uniqueidentifier"); - - b.Property("TaskName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("UpdateTime") - .HasColumnType("datetime2"); - - b.Property("UpdateUser") - .HasMaxLength(30) - .HasColumnType("nvarchar(30)"); - - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("TaskSub"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250627014433_z202506270003.cs b/API/TaskManager.EntityFramework/Migrations/20250627014433_z202506270003.cs deleted file mode 100644 index d24e6bd..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250627014433_z202506270003.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506270003 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "ProductionDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "datetime2", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "ProductionDate", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250627034559_z202506270004.cs b/API/TaskManager.EntityFramework/Migrations/20250627034559_z202506270004.cs deleted file mode 100644 index 1328d2e..0000000 --- a/API/TaskManager.EntityFramework/Migrations/20250627034559_z202506270004.cs +++ /dev/null @@ -1,1010 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace TaskManager.EntityFramework.Migrations -{ - /// - public partial class z202506270004 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_SINV_DATA_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_SINV_DATA", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_SCHEDULING_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_SCHEDULING", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_PROCESS_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "NVarchar(500)", - oldMaxLength: 500, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "WriteState", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "bit", - nullable: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "NVarchar(500)", - oldMaxLength: 500, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "bit", - nullable: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_PROCESS", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "NVarchar(500)", - oldMaxLength: 500, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_PROCESS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_MATERIAL_STOCK", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_MATERIAL_DATA", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_FLAW_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_FLAW", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_FIRST_PASSYIELD", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_ENVIRONMENT_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_ENVIRONMENT", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_DATA_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_DATA", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_CPS_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_CPS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_ATTACHMENT_DATA_DT", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "WriteState", - table: "SUPPLIER_PRO_ATTACHMENT_DATA", - type: "bit", - nullable: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_ATTACHMENT_DATA", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "NVarchar(500)", - oldMaxLength: 500, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_ATTACHMENT_DATA", - type: "bit", - nullable: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_INFO_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_INFO_DT", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_INFO", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_EMPLOYEE_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_EMPLOYEE_DT", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_EMPLOYEE", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_CON_PO_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_CON_PO", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_CON_MMRP_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_CON_MMRP", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_CON_DATE_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_CON_DATE", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_BOM_LOGS", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_BOM", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: false); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_SINV_DATA_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_SINV_DATA", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_SCHEDULING_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_SCHEDULING", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_PROCESS_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "NVarchar(500)", - maxLength: 500, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "WriteState", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "NVarchar(500)", - maxLength: 500, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_PROCESS", - type: "NVarchar(500)", - maxLength: 500, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_PROCESS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_OEE_TIME_DETAILS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_MATERIAL_STOCK", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_MATERIAL_DATA_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_MATERIAL_DATA", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_FLAW_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_FLAW", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_FIRST_PASSYIELD", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_ENVIRONMENT_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_ENVIRONMENT", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_DATA_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_DATA", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_CPS_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_CPS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_ATTACHMENT_DATA_DT", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "WriteState", - table: "SUPPLIER_PRO_ATTACHMENT_DATA", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "SUPPLIER_PRO_ATTACHMENT_DATA", - type: "NVarchar(500)", - maxLength: 500, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_PRO_ATTACHMENT_DATA", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit"); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_INFO_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_INFO_DT", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_INFO", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_EMPLOYEE_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_EMPLOYEE_DT", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_EMPLOYEE", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_CON_PO_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_CON_PO", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_CON_MMRP_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_CON_MMRP", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_CON_DATE_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_CON_DATE", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_BOM_LOGS", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "ReadState", - table: "SUPPLIER_BOM", - type: "bit", - nullable: false, - defaultValue: false, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - } - } -} diff --git a/API/TaskManager.EntityFramework/Migrations/20250627034559_z202506270004.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250627233450_z1239912930001.Designer.cs similarity index 99% rename from API/TaskManager.EntityFramework/Migrations/20250627034559_z202506270004.Designer.cs rename to API/TaskManager.EntityFramework/Migrations/20250627233450_z1239912930001.Designer.cs index 3bb1e09..43087cb 100644 --- a/API/TaskManager.EntityFramework/Migrations/20250627034559_z202506270004.Designer.cs +++ b/API/TaskManager.EntityFramework/Migrations/20250627233450_z1239912930001.Designer.cs @@ -12,8 +12,8 @@ using TaskManager.EntityFramework; namespace TaskManager.EntityFramework.Migrations { [DbContext(typeof(JobDbContext))] - [Migration("20250627034559_z202506270004")] - partial class z202506270004 + [Migration("20250627233450_z1239912930001")] + partial class z1239912930001 { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) diff --git a/API/TaskManager.EntityFramework/Migrations/20250627233450_z1239912930001.cs b/API/TaskManager.EntityFramework/Migrations/20250627233450_z1239912930001.cs new file mode 100644 index 0000000..1151d39 --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250627233450_z1239912930001.cs @@ -0,0 +1,4060 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace TaskManager.EntityFramework.Migrations +{ + /// + public partial class z1239912930001 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "DynamicTableRecords", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + TableId = table.Column(type: "bigint", nullable: false), + RecordJson = table.Column(type: "nvarchar(max)", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DynamicTableRecords", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "DynamicTables", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + TableName = table.Column(type: "nvarchar(max)", nullable: false), + SchemaJson = table.Column(type: "nvarchar(max)", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_DynamicTables", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_BOM", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + BomCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + BomName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + BomVersion = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialUnit = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true), + SubMaterialCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubMaterialName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + SubMaterialType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SubMaterialUnit = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubMaterialQuota = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_BOM", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_BOM_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + BomCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + BomName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + BomVersion = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialUnit = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true), + SubMaterialCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubMaterialName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + SubMaterialType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SubMaterialUnit = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubMaterialQuota = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_BOM_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_CON_DATE", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + ReleaseEdition = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + MaterialCode = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + PlantId = table.Column(type: "NVARCHAR(64)", maxLength: 64, nullable: true), + FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), + VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + StartDate = table.Column(type: "datetime2", nullable: true), + QuantityMeet1 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet2 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet3 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet4 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet5 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet6 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet7 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet8 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet9 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet10 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet11 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet12 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet13 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet14 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet15 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet16 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet17 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet18 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet19 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet20 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet21 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet22 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet23 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet24 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet25 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet26 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet27 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet28 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet29 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet30 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet31 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_CON_DATE", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_CON_DATE_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + ReleaseEdition = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + MaterialCode = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + PlantId = table.Column(type: "NVARCHAR(64)", maxLength: 64, nullable: true), + FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), + VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + StartDate = table.Column(type: "datetime2", nullable: true), + QuantityMeet1 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet2 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet3 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet4 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet5 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet6 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet7 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet8 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet9 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet10 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet11 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet12 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet13 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet14 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet15 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet16 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet17 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet18 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet19 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet20 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet21 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet22 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet23 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet24 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet25 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet26 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet27 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet28 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet29 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet30 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet31 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_CON_DATE_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_CON_MMRP", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Id = table.Column(type: "nvarchar(max)", nullable: true), + SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + ReleaseEdition = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + MaterialCode = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + PlantId = table.Column(type: "NVARCHAR(64)", maxLength: 64, nullable: true), + FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), + VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + StartMonth = table.Column(type: "NVARCHAR(7)", maxLength: 7, nullable: true), + QuantityMeet1 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet2 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet3 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet4 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet5 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet6 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet7 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet8 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet9 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet10 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet11 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet12 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_CON_MMRP", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_CON_MMRP_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Id = table.Column(type: "nvarchar(max)", nullable: true), + SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + ReleaseEdition = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + MaterialCode = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + PlantId = table.Column(type: "NVARCHAR(64)", maxLength: 64, nullable: true), + FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), + VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + StartMonth = table.Column(type: "NVARCHAR(7)", maxLength: 7, nullable: true), + QuantityMeet1 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet2 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet3 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet4 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet5 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet6 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet7 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet8 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet9 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet10 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet11 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + QuantityMeet12 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_CON_MMRP_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_CON_PO", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + PurchaseOrder = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), + QuantityMeet = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), + VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_CON_PO", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_CON_PO_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true), + PurchaseOrder = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), + QuantityMeet = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true), + VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true), + VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_CON_PO_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_DEL_STATE", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + DeliveryNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialSrate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ReceivingCrossings = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), + DataCreateTime = table.Column(type: "datetime2", nullable: true), + SupplierReceiveTime = table.Column(type: "datetime2", nullable: true), + RoadShippedTime = table.Column(type: "datetime2", nullable: true), + RoadReceiveTime = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_DEL_STATE", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_DEL_STATE_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + DeliveryNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialSrate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ReceivingCrossings = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), + DataCreateTime = table.Column(type: "datetime2", nullable: true), + SupplierReceiveTime = table.Column(type: "datetime2", nullable: true), + RoadShippedTime = table.Column(type: "datetime2", nullable: true), + RoadReceiveTime = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_DEL_STATE_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_EMPLOYEE", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + OperatorId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + OperatorName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + HaveQuantity = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + DataUpdateTime = table.Column(type: "datetime2", nullable: false), + PositionId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PositionName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + QualificationLevel = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + CheckInTime = table.Column(type: "datetime2", nullable: false), + CheckOutTime = table.Column(type: "datetime2", nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_EMPLOYEE", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_EMPLOYEE_DT", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + OperatorId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + OperatorName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + HaveQuantity = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + DataUpdateTime = table.Column(type: "datetime2", nullable: false), + PositionId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PositionName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + QualificationLevel = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + CheckInTime = table.Column(type: "datetime2", nullable: false), + CheckOutTime = table.Column(type: "datetime2", nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_EMPLOYEE_DT", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_EMPLOYEE_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + OperatorId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + OperatorName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + HaveQuantity = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + DataUpdateTime = table.Column(type: "datetime2", nullable: false), + PositionId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PositionName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + QualificationLevel = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + CheckInTime = table.Column(type: "datetime2", nullable: false), + CheckOutTime = table.Column(type: "datetime2", nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_EMPLOYEE_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_INFO", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + KeyStation = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + DataUpdateTime = table.Column(type: "datetime2", nullable: false), + ProductionLineOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + StationOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_INFO", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_INFO_DT", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + KeyStation = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + DataUpdateTime = table.Column(type: "datetime2", nullable: false), + ProductionLineOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + StationOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_INFO_DT", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_INFO_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + KeyStation = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + DataUpdateTime = table.Column(type: "datetime2", nullable: false), + ProductionLineOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + StationOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_INFO_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_INV_DATA", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + QuantityCurrent = table.Column(type: "decimal(18,2)", nullable: true), + StockState = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DataUpdateTime = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "nvarchar(max)", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_INV_DATA", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_INV_DATA_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + QuantityCurrent = table.Column(type: "decimal(18,2)", nullable: true), + StockState = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DataUpdateTime = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "nvarchar(max)", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_INV_DATA_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_MRP_DATE", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ReleaseEdition = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + StartDate = table.Column(type: "datetime2", nullable: true), + QuantityDemand1 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand2 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand3 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand4 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand5 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand6 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand7 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand8 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand9 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand10 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand11 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand12 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand13 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand14 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand15 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand16 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand17 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand18 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand19 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand20 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand21 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand22 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand23 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand24 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand25 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand26 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand27 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand28 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand29 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand30 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand31 = table.Column(type: "decimal(18,2)", nullable: false), + IsUpdate = table.Column(type: "nvarchar(max)", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_MRP_DATE", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_MRP_DATE_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ReleaseEdition = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + StartDate = table.Column(type: "datetime2", nullable: true), + QuantityDemand1 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand2 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand3 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand4 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand5 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand6 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand7 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand8 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand9 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand10 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand11 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand12 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand13 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand14 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand15 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand16 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand17 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand18 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand19 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand20 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand21 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand22 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand23 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand24 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand25 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand26 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand27 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand28 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand29 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand30 = table.Column(type: "decimal(18,2)", nullable: false), + QuantityDemand31 = table.Column(type: "decimal(18,2)", nullable: false), + IsUpdate = table.Column(type: "nvarchar(max)", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_MRP_DATE_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_MRP_MONTH", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ReleaseEdition = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + StartMonth = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + QuantityDemand1 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand2 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand3 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand4 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand5 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand6 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand7 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand8 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand9 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand10 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand11 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand12 = table.Column(type: "decimal(18,2)", nullable: true), + IsUpdate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_MRP_MONTH", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_MRP_MONTH_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ReleaseEdition = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + StartMonth = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + QuantityDemand1 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand2 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand3 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand4 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand5 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand6 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand7 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand8 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand9 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand10 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand11 = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDemand12 = table.Column(type: "decimal(18,2)", nullable: true), + IsUpdate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_MRP_MONTH_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_MRP_STATE", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DemandSrate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DemandType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + SummarySign = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DateRequired = table.Column(type: "datetime2", nullable: true), + QuantityDemand = table.Column(type: "decimal(18,2)", nullable: true), + ConfirmTime = table.Column(type: "datetime2", nullable: true), + CreatQuantity = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), + QuantityReceive = table.Column(type: "decimal(18,2)", nullable: true), + QuantityInTransit = table.Column(type: "decimal(18,2)", nullable: true), + OnTimePercentage = table.Column(type: "decimal(18,2)", nullable: true), + SummaryCreatQuantity = table.Column(type: "decimal(18,2)", nullable: true), + SummaryQuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), + SummaryQuantityReceive = table.Column(type: "decimal(18,2)", nullable: true), + SummaryQuantityInTransit = table.Column(type: "decimal(18,2)", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_MRP_STATE", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_MRP_STATE_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DemandSrate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DemandType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + SummarySign = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DateRequired = table.Column(type: "datetime2", nullable: true), + QuantityDemand = table.Column(type: "decimal(18,2)", nullable: true), + ConfirmTime = table.Column(type: "datetime2", nullable: true), + CreatQuantity = table.Column(type: "decimal(18,2)", nullable: true), + QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), + QuantityReceive = table.Column(type: "decimal(18,2)", nullable: true), + QuantityInTransit = table.Column(type: "decimal(18,2)", nullable: true), + OnTimePercentage = table.Column(type: "decimal(18,2)", nullable: true), + SummaryCreatQuantity = table.Column(type: "decimal(18,2)", nullable: true), + SummaryQuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), + SummaryQuantityReceive = table.Column(type: "decimal(18,2)", nullable: true), + SummaryQuantityInTransit = table.Column(type: "decimal(18,2)", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_MRP_STATE_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_MRP_WARNING", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + QuantityCurrent = table.Column(type: "decimal(18,2)", nullable: true), + ReckonDate = table.Column(type: "datetime2", nullable: true), + QuantityPlanned = table.Column(type: "decimal(18,2)", nullable: true), + QuantityPlannedDelivery = table.Column(type: "decimal(18,2)", nullable: true), + QuantityInTransit = table.Column(type: "decimal(18,2)", nullable: true), + DateGap = table.Column(type: "decimal(18,2)", nullable: true), + InventoryGap = table.Column(type: "decimal(18,2)", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_MRP_WARNING", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PO", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + PurchaseOrder = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + VoucherDate = table.Column(type: "datetime2", nullable: true), + Purchaser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Supplier = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + QuantityDemand = table.Column(type: "decimal(18,2)", nullable: true), + MaterialUnit = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DeliveryDate = table.Column(type: "datetime2", nullable: true), + DeliveryPlace = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), + Note = table.Column(type: "nvarchar(max)", nullable: true), + ItemType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + TradeTerms = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Country = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Batch = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PO", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PO_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + PurchaseOrder = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + VoucherDate = table.Column(type: "datetime2", nullable: true), + Purchaser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Supplier = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + QuantityDemand = table.Column(type: "decimal(18,2)", nullable: true), + MaterialUnit = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DeliveryDate = table.Column(type: "datetime2", nullable: true), + DeliveryPlace = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: true), + Note = table.Column(type: "nvarchar(max)", nullable: true), + ItemType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + TradeTerms = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Country = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Batch = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PO_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_ATTACHMENT_DATA", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + FileName = table.Column(type: "VARCHAR(300)", maxLength: 300, nullable: false), + FileUrl = table.Column(type: "VARCHAR(1000)", maxLength: 1000, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductSn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_ATTACHMENT_DATA_DT", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + FileName = table.Column(type: "VARCHAR(300)", maxLength: 300, nullable: false), + FileUrl = table.Column(type: "VARCHAR(1000)", maxLength: 1000, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductSn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA_DT", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + FileName = table.Column(type: "VARCHAR(300)", maxLength: 300, nullable: false), + FileUrl = table.Column(type: "VARCHAR(1000)", maxLength: 1000, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductSn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_CPS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductBatch = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheryProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EmpCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EmpName = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + VendorFieldName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorFieldCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + GatherSpot = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + SamplingRate = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + LimitUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + VendorFieldDesc = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), + CarrierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + IntputQty = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + FttQty = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + Parameter = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + Characteristic = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + Cc = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + Sc = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + Spc = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + StandardValue = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + UpperLimit = table.Column(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false), + LowerLimit = table.Column(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false), + DecimalValue = table.Column(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false), + UnitCn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), + UnitEn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheckResult = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: false), + DetectionMode = table.Column(type: "VARCHAR(20)", maxLength: 20, nullable: true), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + CollectTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + CheckMode = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_CPS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_CPS_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductBatch = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheryProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EmpCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EmpName = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + VendorFieldName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorFieldCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + GatherSpot = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + SamplingRate = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + LimitUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + VendorFieldDesc = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), + CarrierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + IntputQty = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + FttQty = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + Parameter = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + Characteristic = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + Cc = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + Sc = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + Spc = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + StandardValue = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + UpperLimit = table.Column(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false), + LowerLimit = table.Column(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false), + DecimalValue = table.Column(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false), + UnitCn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), + UnitEn = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheckResult = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: false), + DetectionMode = table.Column(type: "VARCHAR(20)", maxLength: 20, nullable: true), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + CollectTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + CheckMode = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_CPS_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_CSCHEDUL", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Vin = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + SortDate = table.Column(type: "datetime2", nullable: true), + SortTime = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), + OnLineDate = table.Column(type: "datetime2", nullable: true), + OnLineTime = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), + ModelCategory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + AssemblyMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MotorMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Plant = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_CSCHEDUL", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_CSCHEDUL_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Vin = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + SortDate = table.Column(type: "datetime2", nullable: true), + SortTime = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), + OnLineDate = table.Column(type: "datetime2", nullable: true), + OnLineTime = table.Column(type: "nvarchar(8)", maxLength: 8, nullable: true), + ModelCategory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + AssemblyMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MotorMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Plant = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_CSCHEDUL_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_DATA", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + EmpCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EmpName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductBatch = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SubProdNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubProdName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + SubBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ChildPackageInfo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + SubProdNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + SubProdSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ChildSource = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SubSupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + SubSupplierName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheryProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + MaterialInputTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + MaterialOutputTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + VendorFieldNum = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorFieldName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + InstrumentQualityStatus = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true), + ManualQualityStatus = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true), + FinalQualityStatus = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: false), + CollectTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + DateTime = table.Column(type: "CHAR(16)", maxLength: 16, nullable: false), + ParentHardwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + ParentSoftwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + ChildHardwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + ChildSoftwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_DATA", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_DATA_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + EmpCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EmpName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductBatch = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SubProdNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubProdName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + SubBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ChildPackageInfo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + SubProdNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + SubProdSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ChildSource = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SubSupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + SubSupplierName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: true), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheryProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + MaterialInputTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + MaterialOutputTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + VendorFieldNum = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorFieldName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + InstrumentQualityStatus = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true), + ManualQualityStatus = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true), + FinalQualityStatus = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: false), + CollectTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + DateTime = table.Column(type: "CHAR(16)", maxLength: 16, nullable: false), + ParentHardwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + ParentSoftwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + ChildHardwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + ChildSoftwareRevision = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_DATA_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_ENVIRONMENT", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + EnvIndicatorName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + NumValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + UpperLimit = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + LowerLimit = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + ChineseUnit = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EquipmentCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EquipmentName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + DataCollectionPoint = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + CollectTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_ENVIRONMENT_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + EnvIndicatorName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + NumValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + UpperLimit = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + LowerLimit = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + ChineseUnit = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EquipmentCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + EquipmentName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + DataCollectionPoint = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + CollectTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_FIRST_PASSYIELD", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + WorkshopName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkOrderNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + DefectiveNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + AcceptableNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateRealValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_FIRST_PASSYIELD", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + WorkshopName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkOrderNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + DefectiveNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + AcceptableNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateRealValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_FLAW", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DefectsCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DefectsName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + ClassOfName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductBatch = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheryProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + Numberofdefect = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + DefectsDesc = table.Column(type: "VARCHAR(255)", maxLength: 255, nullable: false), + DefectsLevel = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_FLAW", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_FLAW_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DefectsCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DefectsName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + ClassOfName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductBatch = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheryProductSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + Numberofdefect = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + DefectsDesc = table.Column(type: "VARCHAR(255)", maxLength: 255, nullable: false), + DefectsLevel = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_FLAW_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_HSCHEDUL", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Vin = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ProductionType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + OnLineTime = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_HSCHEDUL", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_HSCHEDUL_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Vin = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + ProductionType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + OnLineTime = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_HSCHEDUL_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_MATERIAL_DATA", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "VARCHAR(50)", maxLength: 50, nullable: false), + VendorHardwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + OemHardwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + OemSoftwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + OemModel = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + OemProjectName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + Launched = table.Column(type: "VARCHAR(6)", maxLength: 6, nullable: true), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + ProcurementType = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), + MpnCode = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), + MpnName = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), + ValidDays = table.Column(type: "VARCHAR(12)", maxLength: 12, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_MATERIAL_DATA_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false), + VendorHardwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + OemHardwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + OemSoftwareRevision = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + OemModel = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + OemProjectName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + Launched = table.Column(type: "VARCHAR(6)", maxLength: 6, nullable: true), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + ProcurementType = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), + MpnCode = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), + MpnName = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: true), + ValidDays = table.Column(type: "CHAR(12)", maxLength: 12, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_MATERIAL_STOCK", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SupplierSubCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierSubName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + SubSupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubSupplierName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + SubSupplierAddress = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + ComponentCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + ComponentName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + SubBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubBatchNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + SubBatchSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + EmpCode = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + EmpName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + FeatureName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + FeatureUnit = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StandardValue = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + FeatureUpper = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + FeatureLower = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + FeatureValue = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheckNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheckResult = table.Column(type: "CHAR(2)", maxLength: 2, nullable: false), + CheckTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + SamplingRate = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + LimitUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + VendorFieldDesc = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + VendorFieldCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeadLine = table.Column(type: "VARCHAR(30)", maxLength: 30, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_STOCK", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SupplierSubCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierSubName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + SubSupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubSupplierName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + SubSupplierAddress = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + ComponentCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + ComponentName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: true), + SubBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubBatchNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + SubBatchSn = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + EmpCode = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + EmpName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + FeatureName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + FeatureUnit = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StandardValue = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + FeatureUpper = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + FeatureLower = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + FeatureValue = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheckNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheckResult = table.Column(type: "CHAR(2)", maxLength: 2, nullable: false), + CheckTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + SamplingRate = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + LimitUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + VendorFieldDesc = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + VendorFieldCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeadLine = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_STOCK_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + Rate = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + RateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + Rate = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + RateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_OEE_TIME_DETAILS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(33)", maxLength: 33, nullable: false), + RecId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + Type = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubType = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubTypeName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StartTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + EndTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(33)", maxLength: 33, nullable: false), + RecId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + Type = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubType = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SubTypeName = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StartTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + EndTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PLANING", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ReleaseEdition = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Assembly = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Pattern = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + StartMonth = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Quantity1 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity2 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity3 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity4 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity5 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity6 = table.Column(type: "decimal(18,2)", nullable: true), + Plant = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + Omterior = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SalseDepartment = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_PLANING", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PLANING_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ReleaseEdition = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Assembly = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Pattern = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + StartMonth = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Quantity1 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity2 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity3 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity4 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity5 = table.Column(type: "decimal(18,2)", nullable: true), + Quantity6 = table.Column(type: "decimal(18,2)", nullable: true), + Plant = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + Omterior = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SalseDepartment = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_PLANING_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PROCESS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + CheryProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SupplierCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + TechCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + TechName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ValidPeriod = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + TechVersion = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + MoldCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + MoldName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + MaxProcessingCapacity = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProcessCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProcessName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProcessOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + DeviceCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Rhythm = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + RhythmUnit = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PROCESS_EQUIPMENT", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceType = table.Column(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false), + DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Manufacturer = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ModelNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SerialNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionDate = table.Column(type: "datetime2", nullable: false), + Material = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CurrentLocation = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceStatus = table.Column(type: "VARCHAR(30)", maxLength: 30, nullable: false), + CavityCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + MoldSize = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DesignLifeUnits = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DesignLifeValue = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CurrentUsageCount = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + OverhaulCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + CoolingChannelLayout = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DetectionAccuracy = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CalibrationDate = table.Column(type: "datetime2", nullable: false), + CalibrationDueDays = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ToleranceRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WearThreshold = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DetectionRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + UnitType = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceType = table.Column(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false), + DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Manufacturer = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ModelNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SerialNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionDate = table.Column(type: "datetime2", nullable: false), + Material = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CurrentLocation = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceStatus = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + CavityCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + MoldSize = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DesignLifeUnits = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + DesignLifeValue = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + CurrentUsageCount = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + OverhaulCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + CoolingChannelLayout = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DetectionAccuracy = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CalibrationDate = table.Column(type: "datetime2", nullable: false), + CalibrationDueDays = table.Column(type: "VARCHAR(12)", maxLength: 12, nullable: false), + ToleranceRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WearThreshold = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DetectionRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + UnitType = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceType = table.Column(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false), + DeviceCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DeviceName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Manufacturer = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ModelNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SerialNumber = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionDate = table.Column(type: "datetime2", nullable: false), + Material = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CurrentLocation = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DeviceStatus = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + CavityCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + MoldSize = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DesignLifeUnits = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + DesignLifeValue = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + CurrentUsageCount = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + OverhaulCount = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + CoolingChannelLayout = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + DetectionAccuracy = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CalibrationDate = table.Column(type: "nvarchar(max)", nullable: false), + CalibrationDueDays = table.Column(type: "VARCHAR(12)", maxLength: 12, nullable: false), + ToleranceRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WearThreshold = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + DetectionRange = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + UnitType = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_PROCESS_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + CheryProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SupplierCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + TechCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + TechName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ValidPeriod = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + TechVersion = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + MoldCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + MoldName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + MaxProcessingCapacity = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProcessCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProcessName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProcessOrder = table.Column(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), + DeviceCode = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + Rhythm = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + RhythmUnit = table.Column(type: "VARCHAR(16)", maxLength: 16, nullable: false), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_SCHEDULING", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + PlanNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + ManufactureInputNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + ManufactureOutputNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + PlanStatus = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + PlanBeginTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + PlanEndTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + ActualBeginTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + ActualEndTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_SCHEDULING", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_SCHEDULING_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + PlanNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + ManufactureInputNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), + ManufactureOutputNum = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + PlanStatus = table.Column(type: "CHAR(1)", maxLength: 1, nullable: false), + PlanBeginTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + PlanEndTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + ActualBeginTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + ActualEndTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_SCHEDULING_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkOrderNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + DefectiveNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + AcceptableNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateRealValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_STATION_FIRST_PASSYIELD", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkOrderNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + DefectiveNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + AcceptableNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateRealValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_TSCHEDUL", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Vin = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + OnLineTime = table.Column(type: "datetime2", nullable: true), + FinalWorkshop = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + FinalOnLineTime = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "nvarchar(5)", maxLength: 5, nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_TSCHEDUL", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_PRO_TSCHEDUL_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Models = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Vin = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ProductionLineName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + OnLineTime = table.Column(type: "datetime2", nullable: true), + FinalWorkshop = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + FinalOnLineTime = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: false), + IsDelete = table.Column(type: "nvarchar(5)", maxLength: 5, nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_PRO_TSCHEDUL_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_RETURN", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ReturnNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialSrate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PickUpLocation = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DemandPickupTime = table.Column(type: "datetime2", nullable: true), + PickUpCrossings = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Feedback = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Plant = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: false), + ReturnType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + LotNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Judge = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ReturnReason = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_RETURN", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_RETURN_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ReturnNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialSrate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PickUpLocation = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DemandPickupTime = table.Column(type: "datetime2", nullable: true), + PickUpCrossings = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Feedback = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Plant = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + QuantityDelivery = table.Column(type: "decimal(18,2)", nullable: false), + ReturnType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + LotNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Judge = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + ReturnReason = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_RETURN_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_SA_WEEK", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ScheduleAgreement = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + PurchasingGroup = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + QuantityDemand = table.Column(type: "decimal(18,2)", nullable: true), + DateReceived = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_SA_WEEK", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_SA_WEEK_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + ScheduleAgreement = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + SerialNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + MaterialDescription = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + PurchasingGroup = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + PlantId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + QuantityDemand = table.Column(type: "decimal(18,2)", nullable: true), + DateReceived = table.Column(type: "datetime2", nullable: true), + CreateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: true), + UpdateByUser = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + IsDelete = table.Column(type: "int", nullable: false), + Version = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_SA_WEEK_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_SINV_DATA", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + MaterialCode = table.Column(type: "VARCHAR(50)", maxLength: 50, nullable: false), + MaterialDescription = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + MaterialType = table.Column(type: "VARCHAR(20)", maxLength: 20, nullable: false), + QuantityCurrent = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + QuantityPlan = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + InventoryStatus = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SafetyStock = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + ProductionCycle = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + DataUpdateTime = table.Column(type: "VarChar(30)", maxLength: 30, nullable: false), + SupplierBatch = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + SupplieryxqDate = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_SINV_DATA", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "SUPPLIER_SINV_DATA_LOGS", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + MaterialCode = table.Column(type: "VARCHAR(50)", maxLength: 50, nullable: false), + MaterialDescription = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + MaterialType = table.Column(type: "VARCHAR(20)", maxLength: 20, nullable: false), + QuantityCurrent = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + QuantityPlan = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + InventoryStatus = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SafetyStock = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + ProductionCycle = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + SupplierBatch = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: true), + SupplieryxqDate = table.Column(type: "CHAR(19)", maxLength: 19, nullable: true), + WriteState = table.Column(type: "bit", nullable: false, defaultValue: false), + ReadState = table.Column(type: "bit", nullable: false, defaultValue: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Id = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_SUPPLIER_SINV_DATA_LOGS", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "TaskAllocation", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + TaskName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + TableName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Creator = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + Subscriber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_TaskAllocation", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "TaskConifgure", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Api = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: true), + Corn = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: true), + Module = table.Column(type: "nvarchar(400)", maxLength: 400, nullable: true), + Client = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TableName = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), + TaskName = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), + Url = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), + IsAuto = table.Column(type: "bit", nullable: false), + PageSize = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_TaskConifgure", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "TaskLogs", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Path = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Version = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Info = table.Column(type: "nvarchar(max)", nullable: true), + Type = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + TaskName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + Module = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_TaskLogs", x => x.UId); + }); + + migrationBuilder.CreateTable( + name: "TaskSub", + columns: table => new + { + UId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + TableName = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + TaskName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), + DataCount = table.Column(type: "int", nullable: false), + Subscriber = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + FailedCount = table.Column(type: "int", nullable: false), + FailedInfo = table.Column(type: "nvarchar(max)", nullable: true), + Domain = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + Site = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: false), + CreateUser = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + CreateTime = table.Column(type: "datetime2", nullable: false), + Remark = table.Column(type: "nvarchar(max)", nullable: true), + UpdateUser = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true), + UpdateTime = table.Column(type: "datetime2", nullable: true), + SyncedPageCount = table.Column(type: "int", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_TaskSub", x => x.UId); + }); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_BOM_RequestDate", + table: "SUPPLIER_BOM", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_DATE_RequestDate", + table: "SUPPLIER_CON_DATE", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_MMRP_RequestDate", + table: "SUPPLIER_CON_MMRP", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_PO_RequestDate", + table: "SUPPLIER_CON_PO", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_DEL_STATE_Id", + table: "SUPPLIER_DEL_STATE", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_DEL_STATE_ReadState", + table: "SUPPLIER_DEL_STATE", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_DEL_STATE_RequestDate", + table: "SUPPLIER_DEL_STATE", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_DEL_STATE_TaskId", + table: "SUPPLIER_DEL_STATE", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_DEL_STATE_WriteState", + table: "SUPPLIER_DEL_STATE", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_DEL_STATE_LOGS_Id", + table: "SUPPLIER_DEL_STATE_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_DEL_STATE_LOGS_ReadState", + table: "SUPPLIER_DEL_STATE_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_DEL_STATE_LOGS_RequestDate", + table: "SUPPLIER_DEL_STATE_LOGS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_DEL_STATE_LOGS_TaskId", + table: "SUPPLIER_DEL_STATE_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_DEL_STATE_LOGS_WriteState", + table: "SUPPLIER_DEL_STATE_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_EMPLOYEE_RequestDate", + table: "SUPPLIER_EMPLOYEE", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INFO_RequestDate", + table: "SUPPLIER_INFO", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_Id", + table: "SUPPLIER_INV_DATA", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_ReadState", + table: "SUPPLIER_INV_DATA", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_RequestDate", + table: "SUPPLIER_INV_DATA", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_TaskId", + table: "SUPPLIER_INV_DATA", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_WriteState", + table: "SUPPLIER_INV_DATA", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_LOGS_Id", + table: "SUPPLIER_INV_DATA_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_LOGS_ReadState", + table: "SUPPLIER_INV_DATA_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_LOGS_RequestDate", + table: "SUPPLIER_INV_DATA_LOGS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_LOGS_TaskId", + table: "SUPPLIER_INV_DATA_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_INV_DATA_LOGS_WriteState", + table: "SUPPLIER_INV_DATA_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_Id", + table: "SUPPLIER_MRP_DATE", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_ReadState", + table: "SUPPLIER_MRP_DATE", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_RequestDate", + table: "SUPPLIER_MRP_DATE", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_TaskId", + table: "SUPPLIER_MRP_DATE", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_WriteState", + table: "SUPPLIER_MRP_DATE", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_LOGS_Id", + table: "SUPPLIER_MRP_DATE_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_LOGS_ReadState", + table: "SUPPLIER_MRP_DATE_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_LOGS_RequestDate", + table: "SUPPLIER_MRP_DATE_LOGS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_LOGS_TaskId", + table: "SUPPLIER_MRP_DATE_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_DATE_LOGS_WriteState", + table: "SUPPLIER_MRP_DATE_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_Id", + table: "SUPPLIER_MRP_MONTH", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_ReadState", + table: "SUPPLIER_MRP_MONTH", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_RequestDate", + table: "SUPPLIER_MRP_MONTH", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_TaskId", + table: "SUPPLIER_MRP_MONTH", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_WriteState", + table: "SUPPLIER_MRP_MONTH", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_LOGS_Id", + table: "SUPPLIER_MRP_MONTH_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_LOGS_ReadState", + table: "SUPPLIER_MRP_MONTH_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_LOGS_RequestDate", + table: "SUPPLIER_MRP_MONTH_LOGS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_LOGS_TaskId", + table: "SUPPLIER_MRP_MONTH_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_MONTH_LOGS_WriteState", + table: "SUPPLIER_MRP_MONTH_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_Id", + table: "SUPPLIER_MRP_STATE", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_ReadState", + table: "SUPPLIER_MRP_STATE", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_RequestDate", + table: "SUPPLIER_MRP_STATE", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_TaskId", + table: "SUPPLIER_MRP_STATE", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_WriteState", + table: "SUPPLIER_MRP_STATE", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_LOGS_Id", + table: "SUPPLIER_MRP_STATE_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_LOGS_ReadState", + table: "SUPPLIER_MRP_STATE_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_LOGS_RequestDate", + table: "SUPPLIER_MRP_STATE_LOGS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_LOGS_TaskId", + table: "SUPPLIER_MRP_STATE_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_STATE_LOGS_WriteState", + table: "SUPPLIER_MRP_STATE_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_WARNING_Id", + table: "SUPPLIER_MRP_WARNING", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_WARNING_ReadState", + table: "SUPPLIER_MRP_WARNING", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_WARNING_RequestDate", + table: "SUPPLIER_MRP_WARNING", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_WARNING_TaskId", + table: "SUPPLIER_MRP_WARNING", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_MRP_WARNING_WriteState", + table: "SUPPLIER_MRP_WARNING", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_Id", + table: "SUPPLIER_PO", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_ReadState", + table: "SUPPLIER_PO", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_RequestDate", + table: "SUPPLIER_PO", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_TaskId", + table: "SUPPLIER_PO", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_WriteState", + table: "SUPPLIER_PO", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_LOGS_Id", + table: "SUPPLIER_PO_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_LOGS_ReadState", + table: "SUPPLIER_PO_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_LOGS_RequestDate", + table: "SUPPLIER_PO_LOGS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_LOGS_TaskId", + table: "SUPPLIER_PO_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PO_LOGS_WriteState", + table: "SUPPLIER_PO_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_ATTACHMENT_DATA_RequestDate", + table: "SUPPLIER_PRO_ATTACHMENT_DATA", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CPS_RequestDate", + table: "SUPPLIER_PRO_CPS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_Id", + table: "SUPPLIER_PRO_CSCHEDUL", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_ReadState", + table: "SUPPLIER_PRO_CSCHEDUL", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_RequestDate", + table: "SUPPLIER_PRO_CSCHEDUL", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_TaskId", + table: "SUPPLIER_PRO_CSCHEDUL", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_WriteState", + table: "SUPPLIER_PRO_CSCHEDUL", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_Id", + table: "SUPPLIER_PRO_CSCHEDUL_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_ReadState", + table: "SUPPLIER_PRO_CSCHEDUL_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_RequestDate", + table: "SUPPLIER_PRO_CSCHEDUL_LOGS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_TaskId", + table: "SUPPLIER_PRO_CSCHEDUL_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_WriteState", + table: "SUPPLIER_PRO_CSCHEDUL_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_DATA_RequestDate", + table: "SUPPLIER_PRO_DATA", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_ENVIRONMENT_RequestDate", + table: "SUPPLIER_PRO_ENVIRONMENT", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_FIRST_PASSYIELD_RequestDate", + table: "SUPPLIER_PRO_FIRST_PASSYIELD", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_FLAW_RequestDate", + table: "SUPPLIER_PRO_FLAW", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_Id", + table: "SUPPLIER_PRO_HSCHEDUL", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_ReadState", + table: "SUPPLIER_PRO_HSCHEDUL", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_RequestDate", + table: "SUPPLIER_PRO_HSCHEDUL", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_TaskId", + table: "SUPPLIER_PRO_HSCHEDUL", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_WriteState", + table: "SUPPLIER_PRO_HSCHEDUL", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_Id", + table: "SUPPLIER_PRO_HSCHEDUL_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_ReadState", + table: "SUPPLIER_PRO_HSCHEDUL_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_RequestDate", + table: "SUPPLIER_PRO_HSCHEDUL_LOGS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_TaskId", + table: "SUPPLIER_PRO_HSCHEDUL_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_WriteState", + table: "SUPPLIER_PRO_HSCHEDUL_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_MATERIAL_DATA_RequestDate", + table: "SUPPLIER_PRO_MATERIAL_DATA", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_MATERIAL_STOCK_RequestDate", + table: "SUPPLIER_PRO_MATERIAL_STOCK", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_RequestDate", + table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_OEE_TIME_DETAILS_RequestDate", + table: "SUPPLIER_PRO_OEE_TIME_DETAILS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_Id", + table: "SUPPLIER_PRO_PLANING", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_ReadState", + table: "SUPPLIER_PRO_PLANING", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_RequestDate", + table: "SUPPLIER_PRO_PLANING", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_TaskId", + table: "SUPPLIER_PRO_PLANING", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_WriteState", + table: "SUPPLIER_PRO_PLANING", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_LOGS_Id", + table: "SUPPLIER_PRO_PLANING_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_LOGS_ReadState", + table: "SUPPLIER_PRO_PLANING_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_LOGS_RequestDate", + table: "SUPPLIER_PRO_PLANING_LOGS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_LOGS_TaskId", + table: "SUPPLIER_PRO_PLANING_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PLANING_LOGS_WriteState", + table: "SUPPLIER_PRO_PLANING_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PROCESS_RequestDate", + table: "SUPPLIER_PRO_PROCESS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_PROCESS_EQUIPMENT_RequestDate", + table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_SCHEDULING_RequestDate", + table: "SUPPLIER_PRO_SCHEDULING", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_STATION_FIRST_PASSYIELD_RequestDate", + table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_Id", + table: "SUPPLIER_PRO_TSCHEDUL", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_ReadState", + table: "SUPPLIER_PRO_TSCHEDUL", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_RequestDate", + table: "SUPPLIER_PRO_TSCHEDUL", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_TaskId", + table: "SUPPLIER_PRO_TSCHEDUL", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_WriteState", + table: "SUPPLIER_PRO_TSCHEDUL", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_Id", + table: "SUPPLIER_PRO_TSCHEDUL_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_ReadState", + table: "SUPPLIER_PRO_TSCHEDUL_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_RequestDate", + table: "SUPPLIER_PRO_TSCHEDUL_LOGS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_TaskId", + table: "SUPPLIER_PRO_TSCHEDUL_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_WriteState", + table: "SUPPLIER_PRO_TSCHEDUL_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_Id", + table: "SUPPLIER_RETURN", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_ReadState", + table: "SUPPLIER_RETURN", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_RequestDate", + table: "SUPPLIER_RETURN", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_TaskId", + table: "SUPPLIER_RETURN", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_WriteState", + table: "SUPPLIER_RETURN", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_LOGS_Id", + table: "SUPPLIER_RETURN_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_LOGS_ReadState", + table: "SUPPLIER_RETURN_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_LOGS_RequestDate", + table: "SUPPLIER_RETURN_LOGS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_LOGS_TaskId", + table: "SUPPLIER_RETURN_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_RETURN_LOGS_WriteState", + table: "SUPPLIER_RETURN_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_Id", + table: "SUPPLIER_SA_WEEK", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_ReadState", + table: "SUPPLIER_SA_WEEK", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_RequestDate", + table: "SUPPLIER_SA_WEEK", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_TaskId", + table: "SUPPLIER_SA_WEEK", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_WriteState", + table: "SUPPLIER_SA_WEEK", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_LOGS_Id", + table: "SUPPLIER_SA_WEEK_LOGS", + column: "Id"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_LOGS_ReadState", + table: "SUPPLIER_SA_WEEK_LOGS", + column: "ReadState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_LOGS_RequestDate", + table: "SUPPLIER_SA_WEEK_LOGS", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_LOGS_TaskId", + table: "SUPPLIER_SA_WEEK_LOGS", + column: "TaskId"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SA_WEEK_LOGS_WriteState", + table: "SUPPLIER_SA_WEEK_LOGS", + column: "WriteState"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_SINV_DATA_RequestDate", + table: "SUPPLIER_SINV_DATA", + column: "RequestDate"); + + migrationBuilder.CreateIndex( + name: "IX_TaskLogs_Module", + table: "TaskLogs", + column: "Module"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "DynamicTableRecords"); + + migrationBuilder.DropTable( + name: "DynamicTables"); + + migrationBuilder.DropTable( + name: "SUPPLIER_BOM"); + + migrationBuilder.DropTable( + name: "SUPPLIER_BOM_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_CON_DATE"); + + migrationBuilder.DropTable( + name: "SUPPLIER_CON_DATE_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_CON_MMRP"); + + migrationBuilder.DropTable( + name: "SUPPLIER_CON_MMRP_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_CON_PO"); + + migrationBuilder.DropTable( + name: "SUPPLIER_CON_PO_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_DEL_STATE"); + + migrationBuilder.DropTable( + name: "SUPPLIER_DEL_STATE_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_EMPLOYEE"); + + migrationBuilder.DropTable( + name: "SUPPLIER_EMPLOYEE_DT"); + + migrationBuilder.DropTable( + name: "SUPPLIER_EMPLOYEE_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_INFO"); + + migrationBuilder.DropTable( + name: "SUPPLIER_INFO_DT"); + + migrationBuilder.DropTable( + name: "SUPPLIER_INFO_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_INV_DATA"); + + migrationBuilder.DropTable( + name: "SUPPLIER_INV_DATA_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_MRP_DATE"); + + migrationBuilder.DropTable( + name: "SUPPLIER_MRP_DATE_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_MRP_MONTH"); + + migrationBuilder.DropTable( + name: "SUPPLIER_MRP_MONTH_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_MRP_STATE"); + + migrationBuilder.DropTable( + name: "SUPPLIER_MRP_STATE_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_MRP_WARNING"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PO"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PO_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_ATTACHMENT_DATA"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_ATTACHMENT_DATA_DT"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_CPS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_CPS_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_CSCHEDUL"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_CSCHEDUL_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_DATA"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_DATA_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_ENVIRONMENT"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_ENVIRONMENT_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_FIRST_PASSYIELD"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_FLAW"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_FLAW_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_HSCHEDUL"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_HSCHEDUL_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_MATERIAL_DATA"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_MATERIAL_DATA_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_MATERIAL_STOCK"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_OEE_TIME_DETAILS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PLANING"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PLANING_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PROCESS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_PROCESS_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_SCHEDULING"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_SCHEDULING_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_TSCHEDUL"); + + migrationBuilder.DropTable( + name: "SUPPLIER_PRO_TSCHEDUL_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_RETURN"); + + migrationBuilder.DropTable( + name: "SUPPLIER_RETURN_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_SA_WEEK"); + + migrationBuilder.DropTable( + name: "SUPPLIER_SA_WEEK_LOGS"); + + migrationBuilder.DropTable( + name: "SUPPLIER_SINV_DATA"); + + migrationBuilder.DropTable( + name: "SUPPLIER_SINV_DATA_LOGS"); + + migrationBuilder.DropTable( + name: "TaskAllocation"); + + migrationBuilder.DropTable( + name: "TaskConifgure"); + + migrationBuilder.DropTable( + name: "TaskLogs"); + + migrationBuilder.DropTable( + name: "TaskSub"); + } + } +} diff --git a/API/Wood.Admin.WebApi/Properties/PublishProfiles/FolderProfile.pubxml.user b/API/Wood.Admin.WebApi/Properties/PublishProfiles/FolderProfile.pubxml.user index de48d45..77af3f8 100644 --- a/API/Wood.Admin.WebApi/Properties/PublishProfiles/FolderProfile.pubxml.user +++ b/API/Wood.Admin.WebApi/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -2,8 +2,8 @@ - <_PublishTargetUrl>D:\QRAPI20250528\API\Wood.Admin.WebApi\bin\Release\net8.0\publish\ - True|2025-06-27T06:51:18.0006510Z||;True|2025-06-27T14:46:36.7189818+08:00||;True|2025-06-25T10:54:54.0406425+08:00||;True|2025-06-24T15:53:07.6141315+08:00||;True|2025-06-24T15:48:22.4116425+08:00||;True|2025-06-24T15:47:33.3794364+08:00||;True|2025-06-24T15:21:28.5600646+08:00||;True|2025-06-23T17:18:30.1990173+08:00||;True|2025-06-23T17:12:33.6485743+08:00||;True|2025-06-19T17:18:07.6086155+08:00||; + <_PublishTargetUrl>C:\www\API\Wood.Admin.WebApi\bin\Release\net8.0\publish\ + True|2025-06-28T02:37:00.4525422Z||;True|2025-06-27T14:51:18.0006510+08:00||;True|2025-06-27T14:46:36.7189818+08:00||;True|2025-06-25T10:54:54.0406425+08:00||;True|2025-06-24T15:53:07.6141315+08:00||;True|2025-06-24T15:48:22.4116425+08:00||;True|2025-06-24T15:47:33.3794364+08:00||;True|2025-06-24T15:21:28.5600646+08:00||;True|2025-06-23T17:18:30.1990173+08:00||;True|2025-06-23T17:12:33.6485743+08:00||;True|2025-06-19T17:18:07.6086155+08:00||; \ No newline at end of file diff --git a/API/Wood.Admin.WebApi/Wood.Admin.WebApi.csproj.user b/API/Wood.Admin.WebApi/Wood.Admin.WebApi.csproj.user index 7f9c74b..892df22 100644 --- a/API/Wood.Admin.WebApi/Wood.Admin.WebApi.csproj.user +++ b/API/Wood.Admin.WebApi/Wood.Admin.WebApi.csproj.user @@ -1,6 +1,6 @@  - D:\QRAPI20250528\API\Wood.Admin.WebApi\Properties\PublishProfiles\FolderProfile.pubxml + C:\www\API\Wood.Admin.WebApi\Properties\PublishProfiles\FolderProfile.pubxml \ No newline at end of file diff --git a/API/Wood.Admin.WebApi/appsettings.json b/API/Wood.Admin.WebApi/appsettings.json index abea926..ec19627 100644 --- a/API/Wood.Admin.WebApi/appsettings.json +++ b/API/Wood.Admin.WebApi/appsettings.json @@ -20,7 +20,7 @@ "DBEnableDiffLog": true, //是否开启差异化日志 "LogDays": 90, //系统日志保存的天数 "RunAutoJob": true, //是否执行自动job - "CustomerDb": "Server=192.168.1.228; Database=TaskManager2; User ID = sa; Password=ChangkeTec@2021; TrustServerCertificate = True" + "CustomerDb": "Server=127.0.0.1; Database=TaskManager2; User ID = sa; Password=1; TrustServerCertificate = True" }, "JwtConfig": { "SecretKey": "3c1cac3f546eda35168c3aa3cn91780fbe703f0996c6d123ea96dc85c70bbc0a", // 密钥,string 类型,必须是复杂密钥,长度大于16 diff --git a/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs b/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs index 15130b6..1d8167d 100644 --- a/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs +++ b/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs @@ -182,6 +182,7 @@ namespace TaskManager.Controllers entity.InjectFrom(itm); entity.CreationTime = DateTime.Now; entity.RequestDate = date; + entity.TaskId = taskId; pageList.Add(entity); allData.Add(itm); } diff --git a/API/WoodAdmin.db-shm b/API/WoodAdmin.db-shm new file mode 100644 index 0000000..fe9ac28 Binary files /dev/null and b/API/WoodAdmin.db-shm differ diff --git a/API/WoodAdmin.db-wal b/API/WoodAdmin.db-wal new file mode 100644 index 0000000..e69de29 diff --git a/API/WoodAdmin.zip b/API/WoodAdmin.zip new file mode 100644 index 0000000..292dc88 Binary files /dev/null and b/API/WoodAdmin.zip differ