//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using TaskManager.EntityFramework;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
[DbContext(typeof(JobDbContext))]
partial class JobDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(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