From b94de7a2ad88e30209c1dbfc9db0ae599ad9a4ee Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com>
Date: Wed, 11 Jun 2025 14:40:03 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=A1=A8=E7=B4=A2=E5=BC=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
API/TaskManager.Entity/Entity.cs | 12 +
.../20250611063901_z2025061100001.Designer.cs | 5444 +++++++++++++++++
.../20250611063901_z2025061100001.cs | 741 +++
.../Migrations/JobDbContextModelSnapshot.cs | 150 +-
.../Controllers/CustomLogService.cs | 21 +
5 files changed, 6344 insertions(+), 24 deletions(-)
create mode 100644 API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.Designer.cs
create mode 100644 API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.cs
create mode 100644 API/Wood.Service/Controllers/CustomLogService.cs
diff --git a/API/TaskManager.Entity/Entity.cs b/API/TaskManager.Entity/Entity.cs
index 48b667e..f8253e8 100644
--- a/API/TaskManager.Entity/Entity.cs
+++ b/API/TaskManager.Entity/Entity.cs
@@ -200,6 +200,10 @@ namespace TaskManager.Entity
public string? Remark { get; set; }
}
+
+
+
+
public class BaseEntity
{
public BaseEntity()
@@ -242,6 +246,10 @@ namespace TaskManager.Entity
[Index(nameof(Id), IsUnique = true)]
+ [Index(nameof(TaskId), IsUnique = false)]
+ [Index(nameof(WriteState), IsUnique = false)]
+ [Index(nameof(ReadState), IsUnique = false)]
+
public class CherryReadBaseEntity:BaseEntity
{
@@ -261,6 +269,10 @@ namespace TaskManager.Entity
}
[Index(nameof(Id), IsUnique = true)]
+ [Index(nameof(TaskId), IsUnique = false)]
+ [Index(nameof(WriteState), IsUnique = false)]
+ [Index(nameof(ReadState), IsUnique = false)]
+
public class CherryConReadBaseEntity : BaseEntity
{
diff --git a/API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.Designer.cs
new file mode 100644
index 0000000..9bb3161
--- /dev/null
+++ b/API/TaskManager.EntityFramework/Migrations/20250611063901_z2025061100001.Designer.cs
@@ -0,0 +1,5444 @@
+//
+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