You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5342 lines
196 KiB
5342 lines
196 KiB
// <auto-generated />
|
|
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
|
|
{
|
|
/// <inheritdoc />
|
|
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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("FeedbackResults")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("Measures")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("PlantId")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<decimal?>("QuantityMeet1")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet10")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet11")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet12")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet13")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet14")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet15")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet16")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet17")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet18")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet19")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet2")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet20")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet21")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet22")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet23")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet24")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet25")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet26")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet27")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet28")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet29")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet3")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet30")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet31")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet4")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet5")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet6")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet7")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet8")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet9")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("ReleaseEdition")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<DateTime?>("StartDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("VentureSpecific")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("VentureType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("FeedbackResults")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("Id")
|
|
.HasColumnType("nvarchar(450)");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("Measures")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("PlantId")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<decimal?>("QuantityMeet1")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet10")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet11")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet12")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet2")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet3")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet4")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet5")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet6")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet7")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet8")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("QuantityMeet9")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("ReleaseEdition")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("StartMonth")
|
|
.HasMaxLength(7)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("VentureSpecific")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("VentureType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("FeedbackResults")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Measures")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("PurchaseOrder")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<decimal?>("QuantityMeet")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("SerialNumber")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("VentureSpecific")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<string>("VentureType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("NVARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DateTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("DeviceId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar");
|
|
|
|
b.Property<string>("DeviceName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("FileName")
|
|
.IsRequired()
|
|
.HasMaxLength(300)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("FileUrl")
|
|
.IsRequired()
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("StationId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StationName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductSn")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DateTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("DeviceId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar");
|
|
|
|
b.Property<string>("DeviceName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("FileName")
|
|
.IsRequired()
|
|
.HasMaxLength(300)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("FileUrl")
|
|
.IsRequired()
|
|
.HasMaxLength(1000)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("StationId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StationName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductSn")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("ChineseUnit")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CollectTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DataCollectionPoint")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("EnvIndicatorName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("EquipmentCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("EquipmentName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("LowerLimit")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal?>("NumValue")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("PlantId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("UpperLimit")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("WorkshopId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductSn")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ClassOfName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DefectsCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DefectsDesc")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DefectsLevel")
|
|
.IsRequired()
|
|
.HasMaxLength(1)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("DefectsName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ManufactureNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("Numberofdefect")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("PlantId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductBatchNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("StationId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StationName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StatisticalTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("VendorProductBatch")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductSn")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkShift")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DateTime")
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("Launched")
|
|
.HasMaxLength(6)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("MpnCode")
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("MpnName")
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("OemHardwareRevision")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("OemModel")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("OemProjectName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("OemSoftwareRevision")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantId")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProcurementType")
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<decimal>("Type")
|
|
.HasPrecision(1)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("ValidDays")
|
|
.IsRequired()
|
|
.HasMaxLength(12)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("VendorHardwareRevision")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DateTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("DeviceId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DeviceName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar");
|
|
|
|
b.Property<string>("ManufactureNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductBatchNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("Rate")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal>("RateTagValue")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("StationId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StationName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StatisticalTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkShift")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DeviceId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DeviceName")
|
|
.IsRequired()
|
|
.HasMaxLength(33)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("EndTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("PlantId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("RecId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("StartTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("StationId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StationName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SubType")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SubTypeName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Type")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DeviceCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("MaxProcessingCapacity")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("MoldCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("MoldName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProcessCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProcessName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("ProcessOrder")
|
|
.HasPrecision(16)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<decimal>("Rhythm")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("RhythmUnit")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("TechCode")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("TechName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("TechVersion")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ValidPeriod")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CalibrationDate")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("CalibrationDueDays")
|
|
.IsRequired()
|
|
.HasMaxLength(12)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<decimal>("CavityCount")
|
|
.HasPrecision(16)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CoolingChannelLayout")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("CurrentLocation")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CurrentUsageCount")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DesignLifeUnits")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DesignLifeValue")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DetectionAccuracy")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DetectionRange")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DeviceCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DeviceName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DeviceStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("DeviceType")
|
|
.HasPrecision(1)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("Manufacturer")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("Material")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ModelNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("MoldSize")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("OverhaulCount")
|
|
.HasPrecision(16)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("ProductionDate")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("SerialNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("ToleranceRange")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("UnitType")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WearThreshold")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CalibrationDate")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("CalibrationDueDays")
|
|
.IsRequired()
|
|
.HasMaxLength(12)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<decimal>("CavityCount")
|
|
.HasPrecision(16)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CoolingChannelLayout")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("CurrentLocation")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CurrentUsageCount")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DesignLifeUnits")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DesignLifeValue")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DetectionAccuracy")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DetectionRange")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DeviceCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DeviceName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DeviceStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("DeviceType")
|
|
.HasPrecision(1)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("Manufacturer")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("Material")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ModelNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("MoldSize")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("OverhaulCount")
|
|
.HasPrecision(16)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("ProductionDate")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("SerialNumber")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ToleranceRange")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("UnitType")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WearThreshold")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("BomCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("BomName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("BomVersion")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DataUpdateTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("MaterialUnit")
|
|
.HasMaxLength(8)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("SubMaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SubMaterialName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("SubMaterialQuota")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("SubMaterialType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar");
|
|
|
|
b.Property<string>("SubMaterialUnit")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CreateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("DataCreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DeliveryNumber")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<int>("IsDelete")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialDescription")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PlantId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal?>("QuantityDelivery")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ReceivingCrossings")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<DateTime?>("RoadReceiveTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("RoadShippedTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("SerialNumber")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SerialSrate")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("SupplierReceiveTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("UpdateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CheckInTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("CheckOutTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DataUpdateTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("HaveQuantity")
|
|
.IsRequired()
|
|
.HasMaxLength(1)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("OperatorId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("OperatorName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PositionId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PositionName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("QualificationLevel")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("StationId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StationName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("WorkshopId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CheckInTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("CheckOutTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DataUpdateTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("HaveQuantity")
|
|
.IsRequired()
|
|
.HasMaxLength(1)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("OperatorId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("OperatorName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PositionId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PositionName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("QualificationLevel")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("StationId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StationName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DataUpdateTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("KeyStation")
|
|
.IsRequired()
|
|
.HasMaxLength(1)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("PlantId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("ProductionLineOrder")
|
|
.HasPrecision(16)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("StationId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StationName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("StationOrder")
|
|
.HasPrecision(16)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DataUpdateTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("KeyStation")
|
|
.IsRequired()
|
|
.HasMaxLength(1)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("PlantId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("ProductionLineOrder")
|
|
.HasPrecision(16)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("StationId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StationName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("StationOrder")
|
|
.HasPrecision(16)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CreateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("DataUpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("IsDelete")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialDescription")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PlantId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PlantName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal?>("QuantityCurrent")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("StockState")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("UpdateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CreateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<int>("IsDelete")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("IsUpdate")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialDescription")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PlantId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PlantName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal?>("QuantityDemand1")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand10")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand11")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand12")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand13")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand14")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand15")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand16")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand17")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand18")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand19")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal?>("QuantityDemand2")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand20")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand21")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand22")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand23")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand24")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand25")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand26")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand27")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand28")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand29")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand3")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand30")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand31")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand4")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand5")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand6")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand7")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand8")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal>("QuantityDemand9")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ReleaseEdition")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<DateTime?>("StartDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("UpdateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CreateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "createByUser");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2")
|
|
.HasAnnotation("Relational:JsonPropertyName", "createTime");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<int>("IsDelete")
|
|
.HasColumnType("int")
|
|
.HasAnnotation("Relational:JsonPropertyName", "isDelete");
|
|
|
|
b.Property<string>("IsUpdate")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "isUpdate");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "materialCode");
|
|
|
|
b.Property<string>("MaterialDescription")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "materialDescription");
|
|
|
|
b.Property<string>("PlantId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "plantId");
|
|
|
|
b.Property<string>("PlantName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "plantName");
|
|
|
|
b.Property<decimal?>("QuantityDemand1")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand1");
|
|
|
|
b.Property<decimal?>("QuantityDemand10")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand10");
|
|
|
|
b.Property<decimal?>("QuantityDemand11")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand11");
|
|
|
|
b.Property<decimal?>("QuantityDemand12")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand12");
|
|
|
|
b.Property<decimal?>("QuantityDemand2")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand2");
|
|
|
|
b.Property<decimal?>("QuantityDemand3")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand3");
|
|
|
|
b.Property<decimal?>("QuantityDemand4")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand4");
|
|
|
|
b.Property<decimal?>("QuantityDemand5")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand5");
|
|
|
|
b.Property<decimal?>("QuantityDemand6")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand6");
|
|
|
|
b.Property<decimal?>("QuantityDemand7")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand7");
|
|
|
|
b.Property<decimal?>("QuantityDemand8")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand8");
|
|
|
|
b.Property<decimal?>("QuantityDemand9")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand9");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ReleaseEdition")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "releaseEdition");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("StartMonth")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "startMonth");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("UpdateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updateByUser");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updateTime");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<DateTime?>("ConfirmTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<decimal?>("CreatQuantity")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("CreateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("DateRequired")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DemandSrate")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("DemandType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<int>("IsDelete")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialDescription")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal?>("OnTimePercentage")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("PlantId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PlantName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal?>("QuantityDelivery")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal?>("QuantityDemand")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal?>("QuantityInTransit")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal?>("QuantityReceive")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<decimal?>("SummaryCreatQuantity")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal?>("SummaryQuantityDelivery")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal?>("SummaryQuantityInTransit")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal?>("SummaryQuantityReceive")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("SummarySign")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("UpdateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CreateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<decimal?>("DateGap")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal?>("InventoryGap")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<int>("IsDelete")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialDescription")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PlantId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal?>("QuantityCurrent")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal?>("QuantityInTransit")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal?>("QuantityPlanned")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal?>("QuantityPlannedDelivery")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<DateTime?>("ReckonDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("UpdateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("Batch")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Country")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("CreateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("DeliveryDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DeliveryPlace")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<int>("IsDelete")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ItemType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialDescription")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialUnit")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Note")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("PlantId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PlantName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PurchaseOrder")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Purchaser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal?>("QuantityDelivery")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<decimal?>("QuantityDemand")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("SerialNumber")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Supplier")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("TradeTerms")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("UpdateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("VoucherDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CarrierCode")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("Cc")
|
|
.IsRequired()
|
|
.HasMaxLength(1)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("Characteristic")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheckMode")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheckResult")
|
|
.IsRequired()
|
|
.HasMaxLength(8)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductSn")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CollectTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<decimal>("DecimalValue")
|
|
.HasPrecision(26, 15)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("DetectionMode")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DeviceCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DeviceName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("EmpCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("EmpName")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("FttQty")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("GatherSpot")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("IntputQty")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("LimitUpdateTime")
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<decimal>("LowerLimit")
|
|
.HasPrecision(26, 15)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("ManufactureNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("Parameter")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductBatchNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<decimal?>("SamplingRate")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("Sc")
|
|
.IsRequired()
|
|
.HasMaxLength(1)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("Spc")
|
|
.IsRequired()
|
|
.HasMaxLength(1)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("StandardValue")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StationId")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StationName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("UnitCn")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("UnitEn")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("UpperLimit")
|
|
.HasPrecision(26, 15)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("VendorFieldCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorFieldDesc")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorFieldName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductBatch")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductSn")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkShift")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("AssemblyMaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("CreateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<int>("IsDelete")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialDescription")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ModelCategory")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Models")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MotorMaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("OnLineDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("OnLineTime")
|
|
.HasMaxLength(8)
|
|
.HasColumnType("nvarchar(8)");
|
|
|
|
b.Property<string>("Plant")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<DateTime?>("SortDate")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("SortTime")
|
|
.HasMaxLength(8)
|
|
.HasColumnType("nvarchar(8)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("UpdateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Vin")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductSn")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ChildHardwareRevision")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ChildPackageInfo")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ChildSoftwareRevision")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ChildSource")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CollectTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DateTime")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("EmpCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("EmpName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("FinalQualityStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(8)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("InstrumentQualityStatus")
|
|
.HasMaxLength(8)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ManualQualityStatus")
|
|
.HasMaxLength(8)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ManufactureNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("MaterialInputTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("MaterialOutputTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("ParentHardwareRevision")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ParentSoftwareRevision")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductBatchNo")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("StationId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StationName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SubBatchNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SubProdName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SubProdNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("SubProdNum")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("SubProdSn")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SubSupplierCode")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SubSupplierName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("VendorFieldName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorFieldNum")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductBatch")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductSn")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkShift")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<decimal>("AcceptableNumber")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DateTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<decimal>("DefectiveNumber")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("ManufactureNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("OncePassRateRealValue")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal>("OncePassRateTagValue")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("PlantId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductBatchNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("StatisticalTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("WorkOrderNumber")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("WorkShift")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CreateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<int>("IsDelete")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialDescription")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Models")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("OnLineTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ProductionType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("UpdateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Vin")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CheckNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheckResult")
|
|
.IsRequired()
|
|
.HasMaxLength(2)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("CheckTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("ComponentCode")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ComponentName")
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DeadLine")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DeviceCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("DeviceName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("EmpCode")
|
|
.IsRequired()
|
|
.HasMaxLength(16)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("EmpName")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("FeatureLower")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("FeatureName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("FeatureUnit")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("FeatureUpper")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("FeatureValue")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("LimitUpdateTime")
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<decimal?>("SamplingRate")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("StandardValue")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SubBatchNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("SubBatchNum")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("SubBatchSn")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SubSupplierAddress")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SubSupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SubSupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierSubCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierSubName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("VendorFieldCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorFieldDesc")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("Assembly")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "assembly");
|
|
|
|
b.Property<string>("CreateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "createByUser");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2")
|
|
.HasAnnotation("Relational:JsonPropertyName", "createTime");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<int>("IsDelete")
|
|
.HasColumnType("int")
|
|
.HasAnnotation("Relational:JsonPropertyName", "isDelete");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "materialCode");
|
|
|
|
b.Property<string>("Models")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "models");
|
|
|
|
b.Property<string>("Omterior")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Pattern")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "pattern");
|
|
|
|
b.Property<string>("Plant")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "plant");
|
|
|
|
b.Property<decimal?>("Quantity1")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantity1");
|
|
|
|
b.Property<decimal?>("Quantity2")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantity2");
|
|
|
|
b.Property<decimal?>("Quantity3")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantity3");
|
|
|
|
b.Property<decimal?>("Quantity4")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantity4");
|
|
|
|
b.Property<decimal?>("Quantity5")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantity5");
|
|
|
|
b.Property<decimal?>("Quantity6")
|
|
.HasColumnType("decimal(18,2)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "quantity6");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("ReleaseEdition")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "releaseEdition");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("SalseDepartment")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("StartMonth")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "startMonth");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "type");
|
|
|
|
b.Property<string>("UpdateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updateByUser");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2")
|
|
.HasAnnotation("Relational:JsonPropertyName", "updateTime");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int")
|
|
.HasAnnotation("Relational:JsonPropertyName", "version");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("ActualBeginTime")
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("ActualEndTime")
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<decimal?>("ManufactureInputNum")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("ManufactureNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("ManufactureNum")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal>("ManufactureOutputNum")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("PlanBeginTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("PlanEndTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("PlanNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlanStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(1)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("PlantId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductBatchNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<decimal>("AcceptableNumber")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("CheryProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("CheryProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DateTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<decimal>("DefectiveNumber")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("ManufactureNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("OncePassRateRealValue")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal>("OncePassRateTagValue")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("PlantId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("PlantName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductBatchNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("StationId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StationName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("StatisticalTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("VendorProductName")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("VendorProductNo")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("WorkOrderNumber")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("WorkShift")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopId")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("WorkshopName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CreateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("FinalOnLineTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("FinalWorkshop")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("IsDelete")
|
|
.IsRequired()
|
|
.HasMaxLength(5)
|
|
.HasColumnType("nvarchar(5)");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialDescription")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Models")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("OnLineTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("ProductionLineId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ProductionLineName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("UpdateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Vin")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CreateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("DemandPickupTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Feedback")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<int>("IsDelete")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Judge")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("LotNumber")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialDescription")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PickUpCrossings")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PickUpLocation")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Plant")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal>("QuantityDelivery")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("ReturnNumber")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ReturnReason")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("ReturnType")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SerialNumber")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SerialSrate")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("UpdateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("CreateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<DateTime?>("DateReceived")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<int>("IsDelete")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("MaterialDescription")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PlantId")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("PurchasingGroup")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<decimal?>("QuantityDemand")
|
|
.HasColumnType("decimal(18,2)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("ScheduleAgreement")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("SerialNumber")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("UpdateByUser")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("Version")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("DataUpdateTime")
|
|
.IsRequired()
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<string>("Id")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("InventoryStatus")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("MaterialCode")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("MaterialDescription")
|
|
.IsRequired()
|
|
.HasMaxLength(100)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("MaterialType")
|
|
.IsRequired()
|
|
.HasMaxLength(20)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("ProductionCycle")
|
|
.IsRequired()
|
|
.HasMaxLength(10)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<decimal>("QuantityCurrent")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<decimal>("QuantityPlan")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bit")
|
|
.HasDefaultValue(false);
|
|
|
|
b.Property<string>("Remark")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("NVarchar");
|
|
|
|
b.Property<string>("RequestDate")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<decimal>("SafetyStock")
|
|
.HasPrecision(16, 5)
|
|
.HasColumnType("DECIMAL");
|
|
|
|
b.Property<string>("SupplierBatch")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierCode")
|
|
.IsRequired()
|
|
.HasMaxLength(32)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplierName")
|
|
.IsRequired()
|
|
.HasMaxLength(64)
|
|
.HasColumnType("VARCHAR");
|
|
|
|
b.Property<string>("SupplieryxqDate")
|
|
.HasMaxLength(19)
|
|
.HasColumnType("CHAR");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<bool>("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<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Creator")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Subscriber")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("TableName")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("TaskName")
|
|
.IsRequired()
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<bool>("WriteState")
|
|
.HasColumnType("bit");
|
|
|
|
b.HasKey("UId");
|
|
|
|
b.ToTable("TaskAllocation");
|
|
});
|
|
|
|
modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b =>
|
|
{
|
|
b.Property<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<string>("Api")
|
|
.HasMaxLength(400)
|
|
.HasColumnType("nvarchar(400)");
|
|
|
|
b.Property<string>("Client")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
b.Property<string>("Corn")
|
|
.HasMaxLength(400)
|
|
.HasColumnType("nvarchar(400)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<bool>("IsAuto")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Module")
|
|
.HasMaxLength(400)
|
|
.HasColumnType("nvarchar(400)");
|
|
|
|
b.Property<int>("PageSize")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("TableName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(100)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("TaskName")
|
|
.HasMaxLength(200)
|
|
.HasColumnType("nvarchar(200)");
|
|
|
|
b.Property<string>("Url")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("nvarchar(500)");
|
|
|
|
b.Property<bool>("WriteState")
|
|
.HasColumnType("bit");
|
|
|
|
b.HasKey("UId");
|
|
|
|
b.ToTable("TaskConifgure");
|
|
});
|
|
|
|
modelBuilder.Entity("TaskManager.Entity.TaskLog", b =>
|
|
{
|
|
b.Property<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<DateTime?>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Info")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Path")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("TaskName")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("Type")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("Version")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<bool>("WriteState")
|
|
.HasColumnType("bit");
|
|
|
|
b.HasKey("UId");
|
|
|
|
b.ToTable("TaskLogs");
|
|
});
|
|
|
|
modelBuilder.Entity("TaskManager.Entity.TaskSub", b =>
|
|
{
|
|
b.Property<long>("UId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("bigint");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
|
|
|
|
b.Property<DateTime>("CreateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("CreateUser")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<int>("DataCount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Domain")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<int>("FailedCount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("FailedInfo")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<bool>("ReadState")
|
|
.HasColumnType("bit");
|
|
|
|
b.Property<string>("Remark")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Site")
|
|
.IsRequired()
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<string>("Subscriber")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<int>("SyncedPageCount")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("TableName")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<Guid>("TaskId")
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
b.Property<string>("TaskName")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<DateTime?>("UpdateTime")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("UpdateUser")
|
|
.HasMaxLength(30)
|
|
.HasColumnType("nvarchar(30)");
|
|
|
|
b.Property<bool>("WriteState")
|
|
.HasColumnType("bit");
|
|
|
|
b.HasKey("UId");
|
|
|
|
b.ToTable("TaskSub");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|
|
|