From 2572514fa9c4cf28e762fa0478f3de76b6d12232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Wed, 28 May 2025 17:26:47 +0800 Subject: [PATCH] 123123123 --- API/CherryTaskManager/appsettings.json | 2 +- .../JobDbContext.cs | 116 ++--- .../20250528092555_init.Designer.cs} | 455 ++++++++++++++---- .../Migrations/20250528092555_init.cs} | 171 +++++-- .../Migrations/JobDbContextModelSnapshot.cs | 451 +++++++++++++---- .../TaskManager.EntityFramework.csproj | 4 + API/Wood.Admin.WebApi/appsettings.json | 2 +- 7 files changed, 921 insertions(+), 280 deletions(-) rename API/{CherryTaskManager/Migrations/20250526065431_Init.Designer.cs => TaskManager.EntityFramework/Migrations/20250528092555_init.Designer.cs} (83%) rename API/{CherryTaskManager/Migrations/20250526065431_Init.cs => TaskManager.EntityFramework/Migrations/20250528092555_init.cs} (86%) rename API/{CherryTaskManager => TaskManager.EntityFramework}/Migrations/JobDbContextModelSnapshot.cs (83%) diff --git a/API/CherryTaskManager/appsettings.json b/API/CherryTaskManager/appsettings.json index a5aa839..19fb55a 100644 --- a/API/CherryTaskManager/appsettings.json +++ b/API/CherryTaskManager/appsettings.json @@ -4,7 +4,7 @@ }, "ConnectionStrings": { - "Default": "Server=192.168.1.228;Database=TaskManager;User ID=sa;Password=ChangkeTec@2021;TrustServerCertificate=True" + "Default": "Server=192.168.1.228;Database=TaskManager2;User ID=sa;Password=ChangkeTec@2021;TrustServerCertificate=True" }, diff --git a/API/TaskManager.EntityFramework/JobDbContext.cs b/API/TaskManager.EntityFramework/JobDbContext.cs index e9ce169..d3b032a 100644 --- a/API/TaskManager.EntityFramework/JobDbContext.cs +++ b/API/TaskManager.EntityFramework/JobDbContext.cs @@ -63,7 +63,7 @@ namespace TaskManager.EntityFramework // // 配置SQL Server连接 // optionsBuilder.UseSqlServer("Server=192.168.1.228;Database=TaskManager;User ID=sa;Password=ChangkeTec@2021;TrustServerCertificate=True"); //} - optionsBuilder.UseSqlServer(GlobalContext.SystemConfig.CustomerDb); + optionsBuilder.UseSqlServer("Server = 192.168.1.228; Database = TaskManager2; User ID = sa; Password = ChangkeTec@2021; TrustServerCertificate = True"); } /// /// 来料检验数据 @@ -255,63 +255,63 @@ namespace TaskManager.EntityFramework - ////工位一次合格率 - //modelBuilder.Entity(b => - //{ - // b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD"); - // //供应商代码 - // b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32); - // //供应商名称 - // b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64); - // //工厂代码 - // b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32); - // //工厂名称 - // b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64); - // //车间代码 - // b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32); - // //车间名称 - // b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64); - // //产线代码 - // b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32); - // //产线名称 - // b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(100); - // //工位代码 - // b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32); - // //工位名称 - // b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(64); - // //奇瑞零件号 - // b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32); - // //奇瑞零件名称 - // b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(100); - // //供应商总成零件号 - // b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32); - // //供应商总成零件名称 - // b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(100); - // //生产批次号 - // b.Property(e => e.ProductBatchNo).HasColumnType("VARCHAR").HasMaxLength(32); - // //生产工单号,(跟排产工单号关联) - // b.Property(e => e.ManufactureNo).HasColumnType("VARCHAR").HasMaxLength(32); - // //批次计划数量 - // b.Property(e => e.WorkOrderNumber).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); - // //不合格数 - // b.Property(e => e.DefectiveNumber).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); - // //合格数 - // b.Property(e => e.AcceptableNumber).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); - // //一次合格率实际值,使用小数表示,如0.9601表示合格率为96.01%整数位最多10位,小数位最多3位 - // b.Property(e => e.OncePassRateRealValue).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); - // //一次合格率目标值,使用小数表示,如0.96表示合格率目标为96.00%。整数位最多10位,小数位最多3位 - // b.Property(e => e.OncePassRateTagValue).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); - // //班次,班次如何区分需备注(白班,晚班,中班) - // b.Property(e => e.WorkShift).HasColumnType("VARCHAR").HasMaxLength(10); - // //生产日期,格式(yyyy-MM-ddHH:mm:ss) - // b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19); - // //值统计时间,格式(yyyy-MM-ddHH:mm:ss) - // b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19); - // b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); - // b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500); - // b.HasKey(e => e.UId); - - //}); + //工位一次合格率 + modelBuilder.Entity(b => + { + b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD"); + //供应商代码 + b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32); + //供应商名称 + b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64); + //工厂代码 + b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32); + //工厂名称 + b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64); + //车间代码 + b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32); + //车间名称 + b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64); + //产线代码 + b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32); + //产线名称 + b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(100); + //工位代码 + b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32); + //工位名称 + b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(64); + //奇瑞零件号 + b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32); + //奇瑞零件名称 + b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(100); + //供应商总成零件号 + b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32); + //供应商总成零件名称 + b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(100); + //生产批次号 + b.Property(e => e.ProductBatchNo).HasColumnType("VARCHAR").HasMaxLength(32); + //生产工单号,(跟排产工单号关联) + b.Property(e => e.ManufactureNo).HasColumnType("VARCHAR").HasMaxLength(32); + //批次计划数量 + b.Property(e => e.WorkOrderNumber).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); + //不合格数 + b.Property(e => e.DefectiveNumber).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); + //合格数 + b.Property(e => e.AcceptableNumber).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); + //一次合格率实际值,使用小数表示,如0.9601表示合格率为96.01%整数位最多10位,小数位最多3位 + b.Property(e => e.OncePassRateRealValue).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); + //一次合格率目标值,使用小数表示,如0.96表示合格率目标为96.00%。整数位最多10位,小数位最多3位 + b.Property(e => e.OncePassRateTagValue).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5); + //班次,班次如何区分需备注(白班,晚班,中班) + b.Property(e => e.WorkShift).HasColumnType("VARCHAR").HasMaxLength(10); + //生产日期,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19); + //值统计时间,格式(yyyy-MM-ddHH:mm:ss) + b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19); + b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired(); + b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500); + b.HasKey(e => e.UId); + + }); } diff --git a/API/CherryTaskManager/Migrations/20250526065431_Init.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250528092555_init.Designer.cs similarity index 83% rename from API/CherryTaskManager/Migrations/20250526065431_Init.Designer.cs rename to API/TaskManager.EntityFramework/Migrations/20250528092555_init.Designer.cs index 00b5e39..2f77ab4 100644 --- a/API/CherryTaskManager/Migrations/20250526065431_Init.Designer.cs +++ b/API/TaskManager.EntityFramework/Migrations/20250528092555_init.Designer.cs @@ -1,6 +1,5 @@ // using System; -using CherryTaskManager; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; @@ -10,23 +9,168 @@ using TaskManager.EntityFramework; #nullable disable -namespace CherryTaskManager.Migrations +namespace TaskManager.EntityFramework.Migrations { [DbContext(typeof(JobDbContext))] - [Migration("20250526065431_Init")] - partial class Init + [Migration("20250528092555_init")] + partial class init { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "9.0.5") + .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_BOM", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AcceptableNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DefectiveNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OncePassRateRealValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("OncePassRateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkOrderNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -44,6 +188,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -52,7 +199,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_BOM"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_CON_DATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_DATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -191,6 +338,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("VentureSpecific") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -207,7 +357,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_CON_DATE"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_CON_MMRP", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_MMRP", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -289,6 +439,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("VentureSpecific") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -305,7 +458,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_CON_MMRP"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_CON_PO", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_PO", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -346,6 +499,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("VentureSpecific") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -362,7 +518,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_CON_PO"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_DEL_STATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -388,8 +544,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -420,6 +576,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("RoadReceiveTime") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -440,6 +600,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -458,7 +621,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_DEL_STATE"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_EMPLOYEE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -476,6 +639,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -484,7 +650,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_EMPLOYEE"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_INFO", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -502,6 +668,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -510,7 +679,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_INFO"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_INV_DATA", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -532,8 +701,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -564,10 +733,17 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("StockState") .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -586,7 +762,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_INV_DATA"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_MRP_DATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -605,8 +781,8 @@ namespace CherryTaskManager.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -735,10 +911,17 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("StartDate") .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -758,7 +941,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_MRP_DATE"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_MRP_MONTH", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -776,8 +959,8 @@ namespace CherryTaskManager.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .IsRequired() @@ -850,10 +1033,17 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("StartMonth") .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -872,7 +1062,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_MRP_MONTH"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_MRP_STATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -909,8 +1099,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -953,6 +1143,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("SummaryCreatQuantity") .HasColumnType("int"); @@ -969,6 +1163,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -987,7 +1184,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_MRP_STATE"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PO", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1022,8 +1219,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -1077,6 +1274,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("SerialNumber") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1085,6 +1286,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("TradeTerms") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1112,7 +1316,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PO"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_ATTACHMENT_DATA", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_ATTACHMENT_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1130,6 +1334,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1138,7 +1345,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_CPS", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1156,6 +1363,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1164,7 +1374,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_CPS"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_CSCHEDUL", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1186,8 +1396,8 @@ namespace CherryTaskManager.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -1239,6 +1449,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("SortDate") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1247,6 +1461,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1269,7 +1486,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_CSCHEDUL"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_DATA", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1287,6 +1504,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1295,7 +1515,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_DATA"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_ENVIRONMENT", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_ENVIRONMENT", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1313,6 +1533,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1321,7 +1544,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_ENVIRONMENT"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_FIRST_PASSYIELD", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1339,6 +1562,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1347,7 +1573,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_FLAW", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FLAW", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1365,6 +1591,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1373,7 +1602,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_FLAW"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_HSCHEDUL", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1391,8 +1620,8 @@ namespace CherryTaskManager.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -1432,6 +1661,13 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1454,7 +1690,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_HSCHEDUL"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_MATERIAL_DATA", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1472,6 +1708,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1480,7 +1719,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_MATERIAL_DATA"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_MATERIAL_STOCK", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1498,6 +1737,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1506,7 +1748,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1524,6 +1766,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1532,7 +1777,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_OEE_TIME_DETAILS", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_OEE_TIME_DETAILS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1550,6 +1795,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1558,7 +1806,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_PLANING", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1635,6 +1883,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("SalseDepartment") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1643,6 +1895,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("Type") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1665,7 +1920,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_PLANING"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_PROCESS", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PROCESS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1683,6 +1938,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1691,7 +1949,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_PROCESS"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1709,6 +1967,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1717,7 +1978,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_SCHEDULING", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1735,41 +1996,18 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING"); - }); - - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); b.Property("WriteState") .HasColumnType("bit"); b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD"); + b.ToTable("SUPPLIER_PRO_SCHEDULING"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_TSCHEDUL", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1795,8 +2033,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -1832,6 +2070,13 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1854,7 +2099,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_TSCHEDUL"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_RETURN", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1880,8 +2125,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -1924,6 +2169,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("ReturnNumber") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1944,6 +2193,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1962,7 +2214,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_RETURN"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_SA_WEEK", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1984,8 +2236,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -2016,6 +2268,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("ScheduleAgreement") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -2024,6 +2280,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -2042,7 +2301,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_SA_WEEK"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_SINV_DATA", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2057,6 +2316,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); + b.Property("InventoryStatus") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -2090,6 +2352,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("SafetyStock") .HasColumnType("int"); @@ -2109,6 +2375,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -2117,7 +2386,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_SINV_DATA"); }); - modelBuilder.Entity("TaskManager.Controllers.TaskConifgure", b => + modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2133,6 +2402,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("CreationTime") + .HasColumnType("datetime2"); + b.Property("IsAuto") .HasColumnType("bit"); @@ -2140,6 +2412,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("ReadState") + .HasColumnType("bit"); + b.Property("Remark") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -2148,6 +2423,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("TaskName") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -2156,12 +2434,15 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("WriteState") + .HasColumnType("bit"); + b.HasKey("UId"); b.ToTable("TaskConifgure"); }); - modelBuilder.Entity("TaskManager.Controllers.TaskLog", b => + modelBuilder.Entity("TaskManager.Entity.TaskLog", b => { b.Property("UId") .ValueGeneratedOnAdd() diff --git a/API/CherryTaskManager/Migrations/20250526065431_Init.cs b/API/TaskManager.EntityFramework/Migrations/20250528092555_init.cs similarity index 86% rename from API/CherryTaskManager/Migrations/20250526065431_Init.cs rename to API/TaskManager.EntityFramework/Migrations/20250528092555_init.cs index 9a04bea..089c133 100644 --- a/API/CherryTaskManager/Migrations/20250526065431_Init.cs +++ b/API/TaskManager.EntityFramework/Migrations/20250528092555_init.cs @@ -3,10 +3,10 @@ using Microsoft.EntityFrameworkCore.Migrations; #nullable disable -namespace CherryTaskManager.Migrations +namespace TaskManager.EntityFramework.Migrations { /// - public partial class Init : Migration + public partial class init : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) @@ -20,7 +20,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -76,7 +77,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -113,7 +115,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -137,7 +140,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -150,7 +154,6 @@ namespace CherryTaskManager.Migrations { UId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), - Id = table.Column(type: "int", nullable: false), DeliveryNumber = table.Column(type: "nvarchar(max)", nullable: false), SerialNumber = table.Column(type: "nvarchar(max)", nullable: false), SerialSrate = table.Column(type: "nvarchar(max)", nullable: false), @@ -172,7 +175,10 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(max)", nullable: false), + Id = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { @@ -188,7 +194,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -204,7 +211,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -217,7 +225,6 @@ namespace CherryTaskManager.Migrations { UId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), - Id = table.Column(type: "int", nullable: false), PlantId = table.Column(type: "nvarchar(max)", nullable: false), PlantName = table.Column(type: "nvarchar(max)", nullable: false), MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), @@ -234,7 +241,10 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(max)", nullable: false), + Id = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { @@ -247,7 +257,6 @@ namespace CherryTaskManager.Migrations { UId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), - Id = table.Column(type: "int", nullable: false), ReleaseEdition = table.Column(type: "nvarchar(max)", nullable: false), MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), @@ -295,7 +304,10 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(max)", nullable: false), + Id = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { @@ -308,7 +320,6 @@ namespace CherryTaskManager.Migrations { UId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), - Id = table.Column(type: "int", nullable: false), ReleaseEdition = table.Column(type: "nvarchar(max)", nullable: false), MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), MaterialDescription = table.Column(type: "nvarchar(max)", nullable: false), @@ -337,7 +348,10 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(max)", nullable: false), + Id = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { @@ -350,7 +364,6 @@ namespace CherryTaskManager.Migrations { UId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), - Id = table.Column(type: "int", nullable: false), PlantId = table.Column(type: "nvarchar(max)", nullable: false), PlantName = table.Column(type: "nvarchar(max)", nullable: false), DemandSrate = table.Column(type: "nvarchar(max)", nullable: false), @@ -379,7 +392,10 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(max)", nullable: false), + Id = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { @@ -392,7 +408,6 @@ namespace CherryTaskManager.Migrations { UId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), - Id = table.Column(type: "int", nullable: false), PurchaseOrder = table.Column(type: "nvarchar(max)", nullable: false), SerialNumber = table.Column(type: "nvarchar(max)", nullable: false), PlantId = table.Column(type: "nvarchar(max)", nullable: false), @@ -421,7 +436,10 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(max)", nullable: false), + Id = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { @@ -437,7 +455,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -453,7 +472,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -466,7 +486,6 @@ namespace CherryTaskManager.Migrations { UId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), - Id = table.Column(type: "int", nullable: false), Models = table.Column(type: "nvarchar(max)", nullable: false), Vin = table.Column(type: "nvarchar(max)", nullable: false), ProductionLineId = table.Column(type: "nvarchar(max)", nullable: false), @@ -490,7 +509,10 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(max)", nullable: false), + Id = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { @@ -506,7 +528,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -522,7 +545,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -538,7 +562,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -554,7 +579,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -567,7 +593,6 @@ namespace CherryTaskManager.Migrations { UId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), - Id = table.Column(type: "int", nullable: false), Models = table.Column(type: "nvarchar(max)", nullable: false), Vin = table.Column(type: "nvarchar(max)", nullable: false), ProductionLineId = table.Column(type: "nvarchar(max)", nullable: false), @@ -585,7 +610,10 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(max)", nullable: false), + Id = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { @@ -601,7 +629,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -617,7 +646,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -633,7 +663,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -649,7 +680,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -683,12 +715,14 @@ namespace CherryTaskManager.Migrations CreateTime = table.Column(type: "datetime2", nullable: true), Plant = table.Column(type: "nvarchar(max)", nullable: false), Assembly = table.Column(type: "nvarchar(max)", nullable: false), - Id = table.Column(type: "nvarchar(max)", nullable: true), CreateByUser = table.Column(type: "nvarchar(max)", nullable: false), WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(max)", nullable: false), + Id = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { @@ -704,7 +738,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -720,7 +755,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -736,7 +772,8 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -749,10 +786,35 @@ namespace CherryTaskManager.Migrations { UId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), + SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + PlantId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + PlantName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + WorkshopId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkshopName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + ProductionLineId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ProductionLineName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + StationId = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + StationName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false), + CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false), + ProductBatchNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + ManufactureNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false), + WorkOrderNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + DefectiveNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + AcceptableNumber = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateRealValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + OncePassRateTagValue = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), + WorkShift = table.Column(type: "VARCHAR(10)", maxLength: 10, nullable: false), + StatisticalTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), + DateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false), WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { @@ -765,7 +827,6 @@ namespace CherryTaskManager.Migrations { UId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), - Id = table.Column(type: "int", nullable: false), Models = table.Column(type: "nvarchar(max)", nullable: false), Vin = table.Column(type: "nvarchar(max)", nullable: false), ProductionLineId = table.Column(type: "nvarchar(max)", nullable: false), @@ -784,7 +845,10 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(max)", nullable: false), + Id = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { @@ -797,7 +861,6 @@ namespace CherryTaskManager.Migrations { UId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), - Id = table.Column(type: "int", nullable: false), ReturnNumber = table.Column(type: "nvarchar(max)", nullable: false), SerialNumber = table.Column(type: "nvarchar(max)", nullable: false), SerialSrate = table.Column(type: "nvarchar(max)", nullable: false), @@ -822,7 +885,10 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(max)", nullable: false), + Id = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { @@ -835,7 +901,6 @@ namespace CherryTaskManager.Migrations { UId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), - Id = table.Column(type: "int", nullable: false), ScheduleAgreement = table.Column(type: "nvarchar(max)", nullable: false), SerialNumber = table.Column(type: "nvarchar(max)", nullable: false), MaterialCode = table.Column(type: "nvarchar(max)", nullable: false), @@ -853,7 +918,10 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(max)", nullable: false), + Id = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { @@ -882,7 +950,10 @@ namespace CherryTaskManager.Migrations WriteState = table.Column(type: "bit", nullable: false), ReadState = table.Column(type: "bit", nullable: false), CreationTime = table.Column(type: "datetime2", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: false) + Remark = table.Column(type: "nvarchar(max)", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false), + RequestDate = table.Column(type: "nvarchar(max)", nullable: false), + Id = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { @@ -902,7 +973,11 @@ namespace CherryTaskManager.Migrations TableName = table.Column(type: "nvarchar(max)", nullable: false), TaskName = table.Column(type: "nvarchar(max)", nullable: false), Url = table.Column(type: "nvarchar(max)", nullable: false), - IsAuto = table.Column(type: "bit", nullable: false) + IsAuto = table.Column(type: "bit", nullable: false), + WriteState = table.Column(type: "bit", nullable: false), + ReadState = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + TaskId = table.Column(type: "uniqueidentifier", nullable: false) }, constraints: table => { diff --git a/API/CherryTaskManager/Migrations/JobDbContextModelSnapshot.cs b/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs similarity index 83% rename from API/CherryTaskManager/Migrations/JobDbContextModelSnapshot.cs rename to API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs index 5c1c319..97fd747 100644 --- a/API/CherryTaskManager/Migrations/JobDbContextModelSnapshot.cs +++ b/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs @@ -1,6 +1,5 @@ // using System; -using CherryTaskManager; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; @@ -9,7 +8,7 @@ using TaskManager.EntityFramework; #nullable disable -namespace CherryTaskManager.Migrations +namespace TaskManager.EntityFramework.Migrations { [DbContext(typeof(JobDbContext))] partial class JobDbContextModelSnapshot : ModelSnapshot @@ -18,12 +17,157 @@ namespace CherryTaskManager.Migrations { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "9.0.5") + .HasAnnotation("ProductVersion", "8.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_BOM", b => + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AcceptableNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("DefectiveNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OncePassRateRealValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("OncePassRateTagValue") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .IsRequired() + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("StatisticalTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkOrderNumber") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("WorkShift") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -41,6 +185,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -49,7 +196,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_BOM"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_CON_DATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_DATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -188,6 +335,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("VentureSpecific") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -204,7 +354,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_CON_DATE"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_CON_MMRP", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_MMRP", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -286,6 +436,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("VentureSpecific") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -302,7 +455,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_CON_MMRP"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_CON_PO", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_PO", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -343,6 +496,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("VentureSpecific") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -359,7 +515,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_CON_PO"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_DEL_STATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -385,8 +541,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -417,6 +573,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("RoadReceiveTime") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -437,6 +597,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -455,7 +618,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_DEL_STATE"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_EMPLOYEE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -473,6 +636,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -481,7 +647,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_EMPLOYEE"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_INFO", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -499,6 +665,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -507,7 +676,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_INFO"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_INV_DATA", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -529,8 +698,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -561,10 +730,17 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("StockState") .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -583,7 +759,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_INV_DATA"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_MRP_DATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -602,8 +778,8 @@ namespace CherryTaskManager.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -732,10 +908,17 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("StartDate") .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -755,7 +938,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_MRP_DATE"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_MRP_MONTH", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -773,8 +956,8 @@ namespace CherryTaskManager.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .IsRequired() @@ -847,10 +1030,17 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("StartMonth") .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -869,7 +1059,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_MRP_MONTH"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_MRP_STATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -906,8 +1096,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -950,6 +1140,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("SummaryCreatQuantity") .HasColumnType("int"); @@ -966,6 +1160,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -984,7 +1181,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_MRP_STATE"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PO", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1019,8 +1216,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -1074,6 +1271,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("SerialNumber") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1082,6 +1283,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("TradeTerms") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1109,7 +1313,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PO"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_ATTACHMENT_DATA", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_ATTACHMENT_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1127,6 +1331,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1135,7 +1342,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_CPS", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1153,6 +1360,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1161,7 +1371,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_CPS"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_CSCHEDUL", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1183,8 +1393,8 @@ namespace CherryTaskManager.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -1236,6 +1446,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("SortDate") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1244,6 +1458,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1266,7 +1483,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_CSCHEDUL"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_DATA", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1284,6 +1501,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1292,7 +1512,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_DATA"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_ENVIRONMENT", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_ENVIRONMENT", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1310,6 +1530,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1318,7 +1541,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_ENVIRONMENT"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_FIRST_PASSYIELD", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FIRST_PASSYIELD", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1336,6 +1559,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1344,7 +1570,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_FLAW", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_FLAW", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1362,6 +1588,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1370,7 +1599,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_FLAW"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_HSCHEDUL", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1388,8 +1617,8 @@ namespace CherryTaskManager.Migrations b.Property("CreationTime") .HasColumnType("datetime2"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -1429,6 +1658,13 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1451,7 +1687,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_HSCHEDUL"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_MATERIAL_DATA", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1469,6 +1705,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1477,7 +1716,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_MATERIAL_DATA"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_MATERIAL_STOCK", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1495,6 +1734,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1503,7 +1745,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1521,6 +1763,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1529,7 +1774,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_OEE_TIME_DETAILS", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_OEE_TIME_DETAILS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1547,6 +1792,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1555,7 +1803,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_PLANING", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1632,6 +1880,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("SalseDepartment") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1640,6 +1892,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("Type") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1662,7 +1917,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_PLANING"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_PROCESS", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PROCESS", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1680,6 +1935,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1688,7 +1946,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_PROCESS"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1706,6 +1964,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -1714,7 +1975,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_SCHEDULING", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1732,41 +1993,18 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("WriteState") - .HasColumnType("bit"); - - b.HasKey("UId"); - - b.ToTable("SUPPLIER_PRO_SCHEDULING"); - }); - - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b => - { - b.Property("UId") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); - - b.Property("CreationTime") - .HasColumnType("datetime2"); - - b.Property("ReadState") - .HasColumnType("bit"); - - b.Property("Remark") - .IsRequired() - .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); b.Property("WriteState") .HasColumnType("bit"); b.HasKey("UId"); - b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD"); + b.ToTable("SUPPLIER_PRO_SCHEDULING"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_PRO_TSCHEDUL", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_TSCHEDUL", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1792,8 +2030,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -1829,6 +2067,13 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1851,7 +2096,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_PRO_TSCHEDUL"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_RETURN", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1877,8 +2122,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -1921,6 +2166,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("ReturnNumber") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1941,6 +2190,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -1959,7 +2211,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_RETURN"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_SA_WEEK", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -1981,8 +2233,8 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); - b.Property("Id") - .HasColumnType("int"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); b.Property("IsDelete") .HasColumnType("int"); @@ -2013,6 +2265,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("ScheduleAgreement") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -2021,6 +2277,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("UpdateByUser") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -2039,7 +2298,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_SA_WEEK"); }); - modelBuilder.Entity("TaskManager.Controllers.SUPPLIER_SINV_DATA", b => + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2054,6 +2313,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("Id") + .HasColumnType("nvarchar(max)"); + b.Property("InventoryStatus") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -2087,6 +2349,10 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("RequestDate") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("SafetyStock") .HasColumnType("int"); @@ -2106,6 +2372,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("WriteState") .HasColumnType("bit"); @@ -2114,7 +2383,7 @@ namespace CherryTaskManager.Migrations b.ToTable("SUPPLIER_SINV_DATA"); }); - modelBuilder.Entity("TaskManager.Controllers.TaskConifgure", b => + modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => { b.Property("UId") .ValueGeneratedOnAdd() @@ -2130,6 +2399,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("CreationTime") + .HasColumnType("datetime2"); + b.Property("IsAuto") .HasColumnType("bit"); @@ -2137,6 +2409,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("ReadState") + .HasColumnType("bit"); + b.Property("Remark") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -2145,6 +2420,9 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + b.Property("TaskName") .IsRequired() .HasColumnType("nvarchar(max)"); @@ -2153,12 +2431,15 @@ namespace CherryTaskManager.Migrations .IsRequired() .HasColumnType("nvarchar(max)"); + b.Property("WriteState") + .HasColumnType("bit"); + b.HasKey("UId"); b.ToTable("TaskConifgure"); }); - modelBuilder.Entity("TaskManager.Controllers.TaskLog", b => + modelBuilder.Entity("TaskManager.Entity.TaskLog", b => { b.Property("UId") .ValueGeneratedOnAdd() diff --git a/API/TaskManager.EntityFramework/TaskManager.EntityFramework.csproj b/API/TaskManager.EntityFramework/TaskManager.EntityFramework.csproj index 1710eda..00e9783 100644 --- a/API/TaskManager.EntityFramework/TaskManager.EntityFramework.csproj +++ b/API/TaskManager.EntityFramework/TaskManager.EntityFramework.csproj @@ -24,4 +24,8 @@ + + + + diff --git a/API/Wood.Admin.WebApi/appsettings.json b/API/Wood.Admin.WebApi/appsettings.json index 31b9f30..85671ec 100644 --- a/API/Wood.Admin.WebApi/appsettings.json +++ b/API/Wood.Admin.WebApi/appsettings.json @@ -20,7 +20,7 @@ "DBEnableDiffLog": true, //是否开启差异化日志 "LogDays": 90, //系统日志保存的天数 "RunAutoJob": true, //是否执行自动job - "CustomerDb": "Server = 192.168.1.228; Database = TaskManager1; User ID = sa; Password = ChangkeTec@2021; TrustServerCertificate = True" + "CustomerDb": "Server=192.168.1.228; Database=TaskManager1; User ID = sa; Password=ChangkeTec@2021; TrustServerCertificate = True" }, "JwtConfig": { "SecretKey": "3c1cac3f546eda35168c3aa3cn91780fbe703f0996c6d123ea96dc85c70bbc0a", // 密钥,string 类型,必须是复杂密钥,长度大于16