Browse Source

123123123

master
赵新宇 2 weeks ago
parent
commit
2572514fa9
  1. 2
      API/CherryTaskManager/appsettings.json
  2. 116
      API/TaskManager.EntityFramework/JobDbContext.cs
  3. 455
      API/TaskManager.EntityFramework/Migrations/20250528092555_init.Designer.cs
  4. 171
      API/TaskManager.EntityFramework/Migrations/20250528092555_init.cs
  5. 451
      API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs
  6. 4
      API/TaskManager.EntityFramework/TaskManager.EntityFramework.csproj
  7. 2
      API/Wood.Admin.WebApi/appsettings.json

2
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"
},

116
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");
}
/// <summary>
/// 来料检验数据
@ -255,63 +255,63 @@ namespace TaskManager.EntityFramework
////工位一次合格率
//modelBuilder.Entity<SUPPLIER_PRO_STATION_FIRST_PASSYIELD>(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<SUPPLIER_PRO_STATION_FIRST_PASSYIELD>(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);
});
}

455
API/CherryTaskManager/Migrations/20250526065431_Init.Designer.cs → API/TaskManager.EntityFramework/Migrations/20250528092555_init.Designer.cs

File diff suppressed because it is too large

171
API/CherryTaskManager/Migrations/20250526065431_Init.cs → API/TaskManager.EntityFramework/Migrations/20250528092555_init.cs

@ -3,10 +3,10 @@ using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CherryTaskManager.Migrations
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class Init : Migration
public partial class init : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
@ -20,7 +20,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -76,7 +77,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -113,7 +115,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -137,7 +140,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -150,7 +154,6 @@ namespace CherryTaskManager.Migrations
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Id = table.Column<int>(type: "int", nullable: false),
DeliveryNumber = table.Column<string>(type: "nvarchar(max)", nullable: false),
SerialNumber = table.Column<string>(type: "nvarchar(max)", nullable: false),
SerialSrate = table.Column<string>(type: "nvarchar(max)", nullable: false),
@ -172,7 +175,10 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
@ -188,7 +194,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -204,7 +211,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -217,7 +225,6 @@ namespace CherryTaskManager.Migrations
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Id = table.Column<int>(type: "int", nullable: false),
PlantId = table.Column<string>(type: "nvarchar(max)", nullable: false),
PlantName = table.Column<string>(type: "nvarchar(max)", nullable: false),
MaterialCode = table.Column<string>(type: "nvarchar(max)", nullable: false),
@ -234,7 +241,10 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
@ -247,7 +257,6 @@ namespace CherryTaskManager.Migrations
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Id = table.Column<int>(type: "int", nullable: false),
ReleaseEdition = table.Column<string>(type: "nvarchar(max)", nullable: false),
MaterialCode = table.Column<string>(type: "nvarchar(max)", nullable: false),
MaterialDescription = table.Column<string>(type: "nvarchar(max)", nullable: false),
@ -295,7 +304,10 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
@ -308,7 +320,6 @@ namespace CherryTaskManager.Migrations
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Id = table.Column<int>(type: "int", nullable: false),
ReleaseEdition = table.Column<string>(type: "nvarchar(max)", nullable: false),
MaterialCode = table.Column<string>(type: "nvarchar(max)", nullable: false),
MaterialDescription = table.Column<string>(type: "nvarchar(max)", nullable: false),
@ -337,7 +348,10 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
@ -350,7 +364,6 @@ namespace CherryTaskManager.Migrations
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Id = table.Column<int>(type: "int", nullable: false),
PlantId = table.Column<string>(type: "nvarchar(max)", nullable: false),
PlantName = table.Column<string>(type: "nvarchar(max)", nullable: false),
DemandSrate = table.Column<string>(type: "nvarchar(max)", nullable: false),
@ -379,7 +392,10 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
@ -392,7 +408,6 @@ namespace CherryTaskManager.Migrations
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Id = table.Column<int>(type: "int", nullable: false),
PurchaseOrder = table.Column<string>(type: "nvarchar(max)", nullable: false),
SerialNumber = table.Column<string>(type: "nvarchar(max)", nullable: false),
PlantId = table.Column<string>(type: "nvarchar(max)", nullable: false),
@ -421,7 +436,10 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
@ -437,7 +455,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -453,7 +472,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -466,7 +486,6 @@ namespace CherryTaskManager.Migrations
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Id = table.Column<int>(type: "int", nullable: false),
Models = table.Column<string>(type: "nvarchar(max)", nullable: false),
Vin = table.Column<string>(type: "nvarchar(max)", nullable: false),
ProductionLineId = table.Column<string>(type: "nvarchar(max)", nullable: false),
@ -490,7 +509,10 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
@ -506,7 +528,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -522,7 +545,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -538,7 +562,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -554,7 +579,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -567,7 +593,6 @@ namespace CherryTaskManager.Migrations
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Id = table.Column<int>(type: "int", nullable: false),
Models = table.Column<string>(type: "nvarchar(max)", nullable: false),
Vin = table.Column<string>(type: "nvarchar(max)", nullable: false),
ProductionLineId = table.Column<string>(type: "nvarchar(max)", nullable: false),
@ -585,7 +610,10 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
@ -601,7 +629,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -617,7 +646,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -633,7 +663,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -649,7 +680,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -683,12 +715,14 @@ namespace CherryTaskManager.Migrations
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
Plant = table.Column<string>(type: "nvarchar(max)", nullable: false),
Assembly = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true),
CreateByUser = table.Column<string>(type: "nvarchar(max)", nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
@ -704,7 +738,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -720,7 +755,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -736,7 +772,8 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -749,10 +786,35 @@ namespace CherryTaskManager.Migrations
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
PlantName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
WorkshopId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
WorkshopName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
ProductionLineName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
StationName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
CheryProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
VendorProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
ProductBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
WorkOrderNumber = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
DefectiveNumber = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
AcceptableNumber = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
OncePassRateRealValue = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
OncePassRateTagValue = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
WorkShift = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
StatisticalTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
DateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
@ -765,7 +827,6 @@ namespace CherryTaskManager.Migrations
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Id = table.Column<int>(type: "int", nullable: false),
Models = table.Column<string>(type: "nvarchar(max)", nullable: false),
Vin = table.Column<string>(type: "nvarchar(max)", nullable: false),
ProductionLineId = table.Column<string>(type: "nvarchar(max)", nullable: false),
@ -784,7 +845,10 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
@ -797,7 +861,6 @@ namespace CherryTaskManager.Migrations
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Id = table.Column<int>(type: "int", nullable: false),
ReturnNumber = table.Column<string>(type: "nvarchar(max)", nullable: false),
SerialNumber = table.Column<string>(type: "nvarchar(max)", nullable: false),
SerialSrate = table.Column<string>(type: "nvarchar(max)", nullable: false),
@ -822,7 +885,10 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
@ -835,7 +901,6 @@ namespace CherryTaskManager.Migrations
{
UId = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Id = table.Column<int>(type: "int", nullable: false),
ScheduleAgreement = table.Column<string>(type: "nvarchar(max)", nullable: false),
SerialNumber = table.Column<string>(type: "nvarchar(max)", nullable: false),
MaterialCode = table.Column<string>(type: "nvarchar(max)", nullable: false),
@ -853,7 +918,10 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
@ -882,7 +950,10 @@ namespace CherryTaskManager.Migrations
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false)
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
Id = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
@ -902,7 +973,11 @@ namespace CherryTaskManager.Migrations
TableName = table.Column<string>(type: "nvarchar(max)", nullable: false),
TaskName = table.Column<string>(type: "nvarchar(max)", nullable: false),
Url = table.Column<string>(type: "nvarchar(max)", nullable: false),
IsAuto = table.Column<bool>(type: "bit", nullable: false)
IsAuto = table.Column<bool>(type: "bit", nullable: false),
WriteState = table.Column<bool>(type: "bit", nullable: false),
ReadState = table.Column<bool>(type: "bit", nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{

451
API/CherryTaskManager/Migrations/JobDbContextModelSnapshot.cs → API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs

File diff suppressed because it is too large

4
API/TaskManager.EntityFramework/TaskManager.EntityFramework.csproj

@ -24,4 +24,8 @@
<ProjectReference Include="..\Wood.Util\Wood.Util.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Migrations\" />
</ItemGroup>
</Project>

2
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

Loading…
Cancel
Save