You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4060 lines
291 KiB
4060 lines
291 KiB
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace TaskManager.EntityFramework.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class z1239912930001 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "DynamicTableRecords",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
TableId = table.Column<long>(type: "bigint", nullable: false),
|
|
RecordJson = 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_DynamicTableRecords", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "DynamicTables",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
TableName = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
|
SchemaJson = 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_DynamicTables", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_BOM",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
BomCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
BomName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
BomVersion = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, 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),
|
|
VendorProductType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialUnit = table.Column<string>(type: "VARCHAR(8)", maxLength: 8, nullable: true),
|
|
SubMaterialCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubMaterialName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
SubMaterialType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SubMaterialUnit = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubMaterialQuota = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
DataUpdateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_BOM", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_BOM_LOGS",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
BomCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
BomName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
BomVersion = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, 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),
|
|
VendorProductType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialUnit = table.Column<string>(type: "VARCHAR(8)", maxLength: 8, nullable: true),
|
|
SubMaterialCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubMaterialName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
SubMaterialType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SubMaterialUnit = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubMaterialQuota = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
DataUpdateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_BOM_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_CON_DATE",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
SupplierCode = table.Column<string>(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
|
|
ReleaseEdition = table.Column<string>(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
|
|
PlantId = table.Column<string>(type: "NVARCHAR(64)", maxLength: 64, nullable: true),
|
|
FeedbackResults = table.Column<string>(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
|
|
VentureType = table.Column<string>(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
|
|
VentureSpecific = table.Column<string>(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
|
|
Measures = table.Column<string>(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
|
|
StartDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
QuantityMeet1 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet2 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet3 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet4 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet5 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet6 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet7 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet8 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet9 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet10 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet11 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet12 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet13 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet14 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet15 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet16 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet17 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet18 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet19 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet20 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet21 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet22 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet23 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet24 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet25 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet26 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet27 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet28 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet29 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet30 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet31 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_CON_DATE", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_CON_DATE_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
SupplierCode = table.Column<string>(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
|
|
ReleaseEdition = table.Column<string>(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
|
|
PlantId = table.Column<string>(type: "NVARCHAR(64)", maxLength: 64, nullable: true),
|
|
FeedbackResults = table.Column<string>(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
|
|
VentureType = table.Column<string>(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
|
|
VentureSpecific = table.Column<string>(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
|
|
Measures = table.Column<string>(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
|
|
StartDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
QuantityMeet1 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet2 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet3 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet4 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet5 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet6 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet7 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet8 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet9 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet10 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet11 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet12 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet13 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet14 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet15 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet16 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet17 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet18 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet19 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet20 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet21 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet22 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet23 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet24 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet25 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet26 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet27 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet28 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet29 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet30 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet31 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_CON_DATE_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_CON_MMRP",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Id = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
SupplierCode = table.Column<string>(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
|
|
ReleaseEdition = table.Column<string>(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
|
|
PlantId = table.Column<string>(type: "NVARCHAR(64)", maxLength: 64, nullable: true),
|
|
FeedbackResults = table.Column<string>(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
|
|
VentureType = table.Column<string>(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
|
|
VentureSpecific = table.Column<string>(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
|
|
Measures = table.Column<string>(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
|
|
StartMonth = table.Column<string>(type: "NVARCHAR(7)", maxLength: 7, nullable: true),
|
|
QuantityMeet1 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet2 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet3 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet4 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet5 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet6 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet7 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet8 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet9 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet10 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet11 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet12 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_CON_MMRP", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_CON_MMRP_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Id = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
SupplierCode = table.Column<string>(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
|
|
ReleaseEdition = table.Column<string>(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
|
|
PlantId = table.Column<string>(type: "NVARCHAR(64)", maxLength: 64, nullable: true),
|
|
FeedbackResults = table.Column<string>(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
|
|
VentureType = table.Column<string>(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
|
|
VentureSpecific = table.Column<string>(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
|
|
Measures = table.Column<string>(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
|
|
StartMonth = table.Column<string>(type: "NVARCHAR(7)", maxLength: 7, nullable: true),
|
|
QuantityMeet1 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet2 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet3 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet4 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet5 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet6 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet7 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet8 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet9 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet10 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet11 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
QuantityMeet12 = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_CON_MMRP_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_CON_PO",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
SupplierCode = table.Column<string>(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
|
|
PurchaseOrder = table.Column<string>(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
|
|
SerialNumber = table.Column<string>(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
|
|
QuantityMeet = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
FeedbackResults = table.Column<string>(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
|
|
VentureType = table.Column<string>(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
|
|
VentureSpecific = table.Column<string>(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
|
|
Measures = table.Column<string>(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_CON_PO", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_CON_PO_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
SupplierCode = table.Column<string>(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
|
|
PurchaseOrder = table.Column<string>(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
|
|
SerialNumber = table.Column<string>(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
|
|
QuantityMeet = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
FeedbackResults = table.Column<string>(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
|
|
VentureType = table.Column<string>(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
|
|
VentureSpecific = table.Column<string>(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
|
|
Measures = table.Column<string>(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_CON_PO_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_DEL_STATE",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
DeliveryNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SerialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SerialSrate = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ReceivingCrossings = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
QuantityDelivery = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
DataCreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
SupplierReceiveTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
RoadShippedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
RoadReceiveTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_DEL_STATE", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_DEL_STATE_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
DeliveryNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SerialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SerialSrate = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ReceivingCrossings = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
QuantityDelivery = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
DataCreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
SupplierReceiveTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
RoadShippedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
RoadReceiveTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_DEL_STATE_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_EMPLOYEE",
|
|
columns: table => new
|
|
{
|
|
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(64)", maxLength: 64, 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(64)", maxLength: 64, nullable: false),
|
|
ProductionLineName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
OperatorId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
OperatorName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
HaveQuantity = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
DataUpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
PositionId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
PositionName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
QualificationLevel = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
CheckInTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
CheckOutTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_EMPLOYEE", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_EMPLOYEE_DT",
|
|
columns: table => new
|
|
{
|
|
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(64)", maxLength: 64, 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(64)", maxLength: 64, nullable: false),
|
|
ProductionLineName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
OperatorId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
OperatorName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
HaveQuantity = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
DataUpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
PositionId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
PositionName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
QualificationLevel = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
CheckInTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
CheckOutTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_EMPLOYEE_DT", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_EMPLOYEE_LOGS",
|
|
columns: table => new
|
|
{
|
|
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(64)", maxLength: 64, 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(64)", maxLength: 64, nullable: false),
|
|
ProductionLineName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
OperatorId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
OperatorName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
HaveQuantity = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
DataUpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
PositionId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
PositionName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
QualificationLevel = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
CheckInTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
CheckOutTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_EMPLOYEE_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_INFO",
|
|
columns: table => new
|
|
{
|
|
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(64)", maxLength: 64, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
KeyStation = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
DataUpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
ProductionLineOrder = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
StationOrder = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_INFO", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_INFO_DT",
|
|
columns: table => new
|
|
{
|
|
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(64)", maxLength: 64, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
KeyStation = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
DataUpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
ProductionLineOrder = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
StationOrder = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_INFO_DT", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_INFO_LOGS",
|
|
columns: table => new
|
|
{
|
|
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(64)", maxLength: 64, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
KeyStation = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
DataUpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
ProductionLineOrder = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
StationOrder = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_INFO_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_INV_DATA",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
QuantityCurrent = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
StockState = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
DataUpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
IsDelete = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_INV_DATA", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_INV_DATA_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
QuantityCurrent = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
StockState = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
DataUpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
IsDelete = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_INV_DATA_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_MRP_DATE",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
ReleaseEdition = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
StartDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
QuantityDemand1 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand2 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand3 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand4 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand5 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand6 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand7 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand8 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand9 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand10 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand11 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand12 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand13 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand14 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand15 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand16 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand17 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand18 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand19 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand20 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand21 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand22 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand23 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand24 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand25 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand26 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand27 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand28 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand29 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand30 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand31 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
IsUpdate = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_MRP_DATE", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_MRP_DATE_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
ReleaseEdition = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
StartDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
QuantityDemand1 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand2 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand3 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand4 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand5 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand6 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand7 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand8 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand9 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand10 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand11 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand12 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand13 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand14 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand15 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand16 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand17 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand18 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand19 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand20 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand21 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand22 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand23 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand24 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand25 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand26 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand27 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand28 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand29 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand30 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
QuantityDemand31 = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
IsUpdate = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_MRP_DATE_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_MRP_MONTH",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
ReleaseEdition = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
StartMonth = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
QuantityDemand1 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand2 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand3 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand4 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand5 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand6 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand7 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand8 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand9 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand10 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand11 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand12 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
IsUpdate = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_MRP_MONTH", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_MRP_MONTH_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
ReleaseEdition = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
StartMonth = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
QuantityDemand1 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand2 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand3 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand4 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand5 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand6 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand7 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand8 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand9 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand10 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand11 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDemand12 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
IsUpdate = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_MRP_MONTH_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_MRP_STATE",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
DemandSrate = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
DemandType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
SummarySign = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
DateRequired = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
QuantityDemand = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
ConfirmTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CreatQuantity = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDelivery = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityReceive = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityInTransit = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
OnTimePercentage = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
SummaryCreatQuantity = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
SummaryQuantityDelivery = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
SummaryQuantityReceive = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
SummaryQuantityInTransit = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_MRP_STATE", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_MRP_STATE_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
DemandSrate = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
DemandType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
SummarySign = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
DateRequired = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
QuantityDemand = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
ConfirmTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CreatQuantity = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityDelivery = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityReceive = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityInTransit = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
OnTimePercentage = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
SummaryCreatQuantity = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
SummaryQuantityDelivery = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
SummaryQuantityReceive = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
SummaryQuantityInTransit = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_MRP_STATE_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_MRP_WARNING",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
QuantityCurrent = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
ReckonDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
QuantityPlanned = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityPlannedDelivery = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
QuantityInTransit = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
DateGap = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
InventoryGap = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_MRP_WARNING", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PO",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
PurchaseOrder = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SerialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
VoucherDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
Purchaser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Supplier = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
QuantityDemand = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
MaterialUnit = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
DeliveryDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
DeliveryPlace = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
QuantityDelivery = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Note = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
ItemType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
TradeTerms = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Country = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Batch = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PO", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PO_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
PurchaseOrder = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SerialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
VoucherDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
Purchaser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Supplier = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
QuantityDemand = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
MaterialUnit = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
DeliveryDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
DeliveryPlace = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
QuantityDelivery = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Note = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
ItemType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
TradeTerms = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Country = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Batch = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PO_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_ATTACHMENT_DATA",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
Type = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
FileName = table.Column<string>(type: "VARCHAR(300)", maxLength: 300, nullable: false),
|
|
FileUrl = table.Column<string>(type: "VARCHAR(1000)", maxLength: 1000, nullable: false),
|
|
DateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
ProductionLineName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DeviceId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = 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(64)", maxLength: 64, nullable: false),
|
|
VendorProductSn = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: true),
|
|
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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_ATTACHMENT_DATA_DT",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
Type = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
FileName = table.Column<string>(type: "VARCHAR(300)", maxLength: 300, nullable: false),
|
|
FileUrl = table.Column<string>(type: "VARCHAR(1000)", maxLength: 1000, nullable: false),
|
|
DateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
ProductionLineName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DeviceId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = 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(64)", maxLength: 64, nullable: false),
|
|
VendorProductSn = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA_DT", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
Type = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
FileName = table.Column<string>(type: "VARCHAR(300)", maxLength: 300, nullable: false),
|
|
FileUrl = table.Column<string>(type: "VARCHAR(1000)", maxLength: 1000, nullable: false),
|
|
DateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
ProductionLineName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DeviceId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = 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(64)", maxLength: 64, nullable: false),
|
|
VendorProductSn = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_CPS",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
VendorProductSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductBatch = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
CheryProductSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProductBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
PlantId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, 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(64)", maxLength: 64, nullable: false),
|
|
ProductionLineName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
EmpCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
EmpName = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
|
|
VendorFieldName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorFieldCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
GatherSpot = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
SamplingRate = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
LimitUpdateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true),
|
|
VendorFieldDesc = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: true),
|
|
CarrierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
IntputQty = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
FttQty = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
Parameter = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
Characteristic = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
Cc = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
Sc = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
Spc = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
StandardValue = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
UpperLimit = table.Column<decimal>(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false),
|
|
LowerLimit = table.Column<decimal>(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false),
|
|
DecimalValue = table.Column<decimal>(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false),
|
|
UnitCn = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: true),
|
|
UnitEn = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
CheckResult = table.Column<string>(type: "VARCHAR(8)", maxLength: 8, nullable: false),
|
|
DetectionMode = table.Column<string>(type: "VARCHAR(20)", maxLength: 20, nullable: true),
|
|
WorkShift = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
|
|
CollectTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
CheckMode = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
|
|
DeviceCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_CPS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_CPS_LOGS",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
VendorProductSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductBatch = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
CheryProductSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProductBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
PlantId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, 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(64)", maxLength: 64, nullable: false),
|
|
ProductionLineName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
EmpCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
EmpName = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
|
|
VendorFieldName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorFieldCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
GatherSpot = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
SamplingRate = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
LimitUpdateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true),
|
|
VendorFieldDesc = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: true),
|
|
CarrierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
IntputQty = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
FttQty = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
Parameter = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
Characteristic = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
Cc = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
Sc = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
Spc = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
StandardValue = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
UpperLimit = table.Column<decimal>(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false),
|
|
LowerLimit = table.Column<decimal>(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false),
|
|
DecimalValue = table.Column<decimal>(type: "DECIMAL(26,15)", precision: 26, scale: 15, nullable: false),
|
|
UnitCn = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: true),
|
|
UnitEn = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
CheckResult = table.Column<string>(type: "VARCHAR(8)", maxLength: 8, nullable: false),
|
|
DetectionMode = table.Column<string>(type: "VARCHAR(20)", maxLength: 20, nullable: true),
|
|
WorkShift = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
|
|
CollectTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
CheckMode = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
|
|
DeviceCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_CPS_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_CSCHEDUL",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Models = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Vin = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
SortDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
SortTime = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: true),
|
|
OnLineDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
OnLineTime = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: true),
|
|
ModelCategory = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
AssemblyMaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MotorMaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Plant = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_CSCHEDUL", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_CSCHEDUL_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Models = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Vin = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
SortDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
SortTime = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: true),
|
|
OnLineDate = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
OnLineTime = table.Column<string>(type: "nvarchar(8)", maxLength: 8, nullable: true),
|
|
ModelCategory = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
AssemblyMaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MotorMaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Plant = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_CSCHEDUL_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_DATA",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
EmpCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
EmpName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductBatch = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
SubProdNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubProdName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
SubBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ChildPackageInfo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
SubProdNum = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
SubProdSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ChildSource = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
SubSupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
SubSupplierName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: true),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
CheryProductSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ProductBatchNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
WorkShift = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
|
|
MaterialInputTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
MaterialOutputTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
VendorFieldNum = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorFieldName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
InstrumentQualityStatus = table.Column<string>(type: "VARCHAR(8)", maxLength: 8, nullable: true),
|
|
ManualQualityStatus = table.Column<string>(type: "VARCHAR(8)", maxLength: 8, nullable: true),
|
|
FinalQualityStatus = table.Column<string>(type: "VARCHAR(8)", maxLength: 8, nullable: false),
|
|
CollectTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
DateTime = table.Column<string>(type: "CHAR(16)", maxLength: 16, nullable: false),
|
|
ParentHardwareRevision = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
ParentSoftwareRevision = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
ChildHardwareRevision = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
ChildSoftwareRevision = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_DATA", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_DATA_LOGS",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
EmpCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
EmpName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductBatch = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
SubProdNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubProdName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
SubBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ChildPackageInfo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
SubProdNum = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
SubProdSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ChildSource = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
SubSupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
SubSupplierName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: true),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
CheryProductSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ProductBatchNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
WorkShift = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
|
|
MaterialInputTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
MaterialOutputTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
VendorFieldNum = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorFieldName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
InstrumentQualityStatus = table.Column<string>(type: "VARCHAR(8)", maxLength: 8, nullable: true),
|
|
ManualQualityStatus = table.Column<string>(type: "VARCHAR(8)", maxLength: 8, nullable: true),
|
|
FinalQualityStatus = table.Column<string>(type: "VARCHAR(8)", maxLength: 8, nullable: false),
|
|
CollectTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
DateTime = table.Column<string>(type: "CHAR(16)", maxLength: 16, nullable: false),
|
|
ParentHardwareRevision = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
ParentSoftwareRevision = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
ChildHardwareRevision = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
ChildSoftwareRevision = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_DATA_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_ENVIRONMENT",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
EnvIndicatorName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
NumValue = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
UpperLimit = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
LowerLimit = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
ChineseUnit = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
EquipmentCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
EquipmentName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
DataCollectionPoint = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
CollectTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_ENVIRONMENT_LOGS",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
EnvIndicatorName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
NumValue = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
UpperLimit = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
LowerLimit = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
ChineseUnit = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
EquipmentCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
EquipmentName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
DataCollectionPoint = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
CollectTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, 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: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
WorkshopName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ProductBatchNo = 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, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_FIRST_PASSYIELD", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, 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: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
WorkshopName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ProductBatchNo = 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, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_FIRST_PASSYIELD_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_FLAW",
|
|
columns: table => new
|
|
{
|
|
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(64)", maxLength: 64, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DefectsCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DefectsName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
ClassOfName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
VendorProductBatch = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductSn = 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),
|
|
CheryProductSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProductBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
WorkShift = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
|
|
Numberofdefect = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
DefectsDesc = table.Column<string>(type: "VARCHAR(255)", maxLength: 255, nullable: false),
|
|
DefectsLevel = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
StatisticalTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_FLAW", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_FLAW_LOGS",
|
|
columns: table => new
|
|
{
|
|
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(64)", maxLength: 64, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DefectsCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DefectsName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
ClassOfName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
VendorProductBatch = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductSn = 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),
|
|
CheryProductSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProductBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
WorkShift = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
|
|
Numberofdefect = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
DefectsDesc = table.Column<string>(type: "VARCHAR(255)", maxLength: 255, nullable: false),
|
|
DefectsLevel = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
StatisticalTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_FLAW_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_HSCHEDUL",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Models = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Vin = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
ProductionType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
OnLineTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_HSCHEDUL", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_HSCHEDUL_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Models = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Vin = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
ProductionType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
OnLineTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_HSCHEDUL_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_MATERIAL_DATA",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
Type = table.Column<string>(type: "VARCHAR(50)", maxLength: 50, nullable: false),
|
|
VendorHardwareRevision = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
OemHardwareRevision = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
OemSoftwareRevision = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
OemModel = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
OemProjectName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
Launched = table.Column<string>(type: "VARCHAR(6)", maxLength: 6, nullable: true),
|
|
DateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true),
|
|
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
PlantName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
ProcurementType = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: true),
|
|
MpnCode = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: true),
|
|
MpnName = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: true),
|
|
ValidDays = table.Column<string>(type: "VARCHAR(12)", maxLength: 12, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_MATERIAL_DATA_LOGS",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
Type = table.Column<decimal>(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false),
|
|
VendorHardwareRevision = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
OemHardwareRevision = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
OemSoftwareRevision = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
OemModel = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
OemProjectName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
Launched = table.Column<string>(type: "VARCHAR(6)", maxLength: 6, nullable: true),
|
|
DateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true),
|
|
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
PlantName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
ProcurementType = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: true),
|
|
MpnCode = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: true),
|
|
MpnName = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: true),
|
|
ValidDays = table.Column<string>(type: "CHAR(12)", maxLength: 12, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
SupplierSubCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SupplierSubName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
SubSupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubSupplierName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
SubSupplierAddress = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
ComponentCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
ComponentName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
SubBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubBatchNum = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
SubBatchSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
EmpCode = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
EmpName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
FeatureName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
FeatureUnit = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
StandardValue = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
FeatureUpper = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
FeatureLower = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
FeatureValue = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
CheckNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheckResult = table.Column<string>(type: "CHAR(2)", maxLength: 2, nullable: false),
|
|
CheckTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
SamplingRate = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
LimitUpdateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true),
|
|
VendorFieldDesc = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
VendorFieldCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeadLine = table.Column<string>(type: "VARCHAR(30)", maxLength: 30, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_STOCK", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
SupplierSubCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SupplierSubName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
SubSupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubSupplierName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
SubSupplierAddress = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
ComponentCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
ComponentName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true),
|
|
SubBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubBatchNum = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
SubBatchSn = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
EmpCode = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
EmpName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
FeatureName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
FeatureUnit = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
StandardValue = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
FeatureUpper = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
FeatureLower = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
FeatureValue = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
CheckNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheckResult = table.Column<string>(type: "CHAR(2)", maxLength: 2, nullable: false),
|
|
CheckTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
SamplingRate = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
LimitUpdateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true),
|
|
VendorFieldDesc = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
VendorFieldCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeadLine = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_STOCK_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE",
|
|
columns: table => new
|
|
{
|
|
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(64)", maxLength: 64, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DeviceId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProductBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
Rate = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
RateTagValue = 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, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS",
|
|
columns: table => new
|
|
{
|
|
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(64)", maxLength: 64, nullable: false),
|
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DeviceId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProductBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
Rate = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
RateTagValue = 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, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_OEE_TIME_DETAILS",
|
|
columns: table => new
|
|
{
|
|
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(32)", maxLength: 32, nullable: false),
|
|
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
PlantName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
WorkshopId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
WorkshopName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ProductionLineName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "VARCHAR(33)", maxLength: 33, nullable: false),
|
|
RecId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
Type = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubType = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubTypeName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StartTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
EndTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS",
|
|
columns: table => new
|
|
{
|
|
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(32)", maxLength: 32, nullable: false),
|
|
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
PlantName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
WorkshopId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
WorkshopName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ProductionLineName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "VARCHAR(33)", maxLength: 33, nullable: false),
|
|
RecId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
Type = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubType = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SubTypeName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
StartTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
EndTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_PLANING",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
ReleaseEdition = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Models = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Assembly = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Pattern = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
StartMonth = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Quantity1 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Quantity2 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Quantity3 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Quantity4 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Quantity5 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Quantity6 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Plant = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", nullable: false),
|
|
Omterior = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SalseDepartment = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_PLANING", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_PLANING_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
ReleaseEdition = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Models = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Type = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Assembly = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Pattern = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
StartMonth = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Quantity1 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Quantity2 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Quantity3 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Quantity4 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Quantity5 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Quantity6 = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
Plant = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", nullable: false),
|
|
Omterior = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SalseDepartment = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_PLANING_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_PROCESS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
SupplierCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
TechCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
TechName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ValidPeriod = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
TechVersion = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
MoldCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
MoldName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
MaxProcessingCapacity = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProcessCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProcessName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProcessOrder = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
DeviceCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
Rhythm = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
RhythmUnit = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DeviceType = table.Column<decimal>(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false),
|
|
DeviceCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
Manufacturer = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ModelNumber = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
SerialNumber = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProductionDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Material = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CurrentLocation = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DeviceStatus = table.Column<string>(type: "VARCHAR(30)", maxLength: 30, nullable: false),
|
|
CavityCount = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
MoldSize = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DesignLifeUnits = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DesignLifeValue = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CurrentUsageCount = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
OverhaulCount = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
CoolingChannelLayout = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DetectionAccuracy = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
CalibrationDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
CalibrationDueDays = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ToleranceRange = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
WearThreshold = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DetectionRange = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
UnitType = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DeviceType = table.Column<decimal>(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false),
|
|
DeviceCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
Manufacturer = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ModelNumber = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
SerialNumber = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProductionDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Material = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CurrentLocation = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DeviceStatus = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
CavityCount = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
MoldSize = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DesignLifeUnits = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
DesignLifeValue = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
CurrentUsageCount = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
OverhaulCount = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
CoolingChannelLayout = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DetectionAccuracy = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
CalibrationDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
CalibrationDueDays = table.Column<string>(type: "VARCHAR(12)", maxLength: 12, nullable: false),
|
|
ToleranceRange = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
WearThreshold = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DetectionRange = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
UnitType = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DeviceType = table.Column<decimal>(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false),
|
|
DeviceCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DeviceName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
Manufacturer = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ModelNumber = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
SerialNumber = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProductionDate = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Material = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CurrentLocation = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DeviceStatus = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
CavityCount = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
MoldSize = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DesignLifeUnits = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
DesignLifeValue = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
CurrentUsageCount = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
OverhaulCount = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
CoolingChannelLayout = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
DetectionAccuracy = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
CalibrationDate = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
|
CalibrationDueDays = table.Column<string>(type: "VARCHAR(12)", maxLength: 12, nullable: false),
|
|
ToleranceRange = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
WearThreshold = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
DetectionRange = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
UnitType = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_PROCESS_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
SupplierCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
TechCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
TechName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ValidPeriod = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
TechVersion = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
MoldCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
MoldName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
MaxProcessingCapacity = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProcessCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProcessName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
ProcessOrder = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false),
|
|
DeviceCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false),
|
|
Rhythm = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
RhythmUnit = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_SCHEDULING",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
PlanNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ProductBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ManufactureNum = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
ManufactureInputNum = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
ManufactureOutputNum = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
PlanStatus = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
PlanBeginTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
PlanEndTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
ActualBeginTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true),
|
|
ActualEndTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_SCHEDULING", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_SCHEDULING_LOGS",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
VendorProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
CheryProductName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
PlanNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ProductBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
ManufactureNum = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
ManufactureInputNum = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
|
|
ManufactureOutputNum = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
PlanStatus = table.Column<string>(type: "CHAR(1)", maxLength: 1, nullable: false),
|
|
PlanBeginTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
PlanEndTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
ActualBeginTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true),
|
|
ActualEndTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_SCHEDULING_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD",
|
|
columns: table => new
|
|
{
|
|
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(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_STATION_FIRST_PASSYIELD", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS",
|
|
columns: table => new
|
|
{
|
|
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(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_TSCHEDUL",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Models = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Vin = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
OnLineTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
FinalWorkshop = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
FinalOnLineTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<string>(type: "nvarchar(5)", maxLength: 5, nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_TSCHEDUL", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_PRO_TSCHEDUL_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Models = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Vin = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductionLineName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
OnLineTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
FinalWorkshop = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
FinalOnLineTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
IsDelete = table.Column<string>(type: "nvarchar(5)", maxLength: 5, nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_PRO_TSCHEDUL_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_RETURN",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
ReturnNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SerialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SerialSrate = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PickUpLocation = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
DemandPickupTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
PickUpCrossings = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Feedback = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Plant = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
QuantityDelivery = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
ReturnType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
LotNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Judge = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ReturnReason = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_RETURN", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_RETURN_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
ReturnNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SerialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SerialSrate = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PickUpLocation = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
DemandPickupTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
PickUpCrossings = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Feedback = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Plant = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
QuantityDelivery = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
|
ReturnType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
LotNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Judge = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ReturnReason = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_RETURN_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_SA_WEEK",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
ScheduleAgreement = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SerialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
PurchasingGroup = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
QuantityDemand = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
DateReceived = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_SA_WEEK", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_SA_WEEK_LOGS",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
ScheduleAgreement = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SerialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
MaterialDescription = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
PurchasingGroup = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PlantId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
QuantityDemand = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
DateReceived = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CreateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
UpdateByUser = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
IsDelete = table.Column<int>(type: "int", nullable: false),
|
|
Version = table.Column<int>(type: "int", 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_SA_WEEK_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_SINV_DATA",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
MaterialCode = table.Column<string>(type: "VARCHAR(50)", maxLength: 50, nullable: false),
|
|
MaterialDescription = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
MaterialType = table.Column<string>(type: "VARCHAR(20)", maxLength: 20, nullable: false),
|
|
QuantityCurrent = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
QuantityPlan = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
InventoryStatus = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SafetyStock = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
ProductionCycle = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
|
|
DataUpdateTime = table.Column<string>(type: "VarChar(30)", maxLength: 30, nullable: false),
|
|
SupplierBatch = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
SupplieryxqDate = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_SINV_DATA", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "SUPPLIER_SINV_DATA_LOGS",
|
|
columns: table => new
|
|
{
|
|
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),
|
|
MaterialCode = table.Column<string>(type: "VARCHAR(50)", maxLength: 50, nullable: false),
|
|
MaterialDescription = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false),
|
|
MaterialType = table.Column<string>(type: "VARCHAR(20)", maxLength: 20, nullable: false),
|
|
QuantityCurrent = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
QuantityPlan = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
InventoryStatus = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false),
|
|
SafetyStock = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
|
|
ProductionCycle = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false),
|
|
DataUpdateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false),
|
|
SupplierBatch = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true),
|
|
SupplieryxqDate = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true),
|
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
RequestDate = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Id = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_SUPPLIER_SINV_DATA_LOGS", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "TaskAllocation",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
TaskName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
|
TableName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
|
Creator = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
|
Subscriber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, 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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_TaskAllocation", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "TaskConifgure",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Api = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: true),
|
|
Corn = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: true),
|
|
Module = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: true),
|
|
Client = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
TableName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
TaskName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
|
Url = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
IsAuto = table.Column<bool>(type: "bit", nullable: false),
|
|
PageSize = table.Column<int>(type: "int", 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 =>
|
|
{
|
|
table.PrimaryKey("PK_TaskConifgure", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "TaskLogs",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Path = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Version = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Info = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
Type = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
TaskName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
Module = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
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: true),
|
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_TaskLogs", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "TaskSub",
|
|
columns: table => new
|
|
{
|
|
UId = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
TableName = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
TaskName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
DataCount = table.Column<int>(type: "int", nullable: false),
|
|
Subscriber = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
FailedCount = table.Column<int>(type: "int", nullable: false),
|
|
FailedInfo = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
Domain = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
Site = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: false),
|
|
CreateUser = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
UpdateUser = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
SyncedPageCount = table.Column<int>(type: "int", 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 =>
|
|
{
|
|
table.PrimaryKey("PK_TaskSub", x => x.UId);
|
|
});
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_BOM_RequestDate",
|
|
table: "SUPPLIER_BOM",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_CON_DATE_RequestDate",
|
|
table: "SUPPLIER_CON_DATE",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_CON_MMRP_RequestDate",
|
|
table: "SUPPLIER_CON_MMRP",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_CON_PO_RequestDate",
|
|
table: "SUPPLIER_CON_PO",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_DEL_STATE_Id",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_DEL_STATE_ReadState",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_DEL_STATE_RequestDate",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_DEL_STATE_TaskId",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_DEL_STATE_WriteState",
|
|
table: "SUPPLIER_DEL_STATE",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_DEL_STATE_LOGS_Id",
|
|
table: "SUPPLIER_DEL_STATE_LOGS",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_DEL_STATE_LOGS_ReadState",
|
|
table: "SUPPLIER_DEL_STATE_LOGS",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_DEL_STATE_LOGS_RequestDate",
|
|
table: "SUPPLIER_DEL_STATE_LOGS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_DEL_STATE_LOGS_TaskId",
|
|
table: "SUPPLIER_DEL_STATE_LOGS",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_DEL_STATE_LOGS_WriteState",
|
|
table: "SUPPLIER_DEL_STATE_LOGS",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_EMPLOYEE_RequestDate",
|
|
table: "SUPPLIER_EMPLOYEE",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_INFO_RequestDate",
|
|
table: "SUPPLIER_INFO",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_INV_DATA_Id",
|
|
table: "SUPPLIER_INV_DATA",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_INV_DATA_ReadState",
|
|
table: "SUPPLIER_INV_DATA",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_INV_DATA_RequestDate",
|
|
table: "SUPPLIER_INV_DATA",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_INV_DATA_TaskId",
|
|
table: "SUPPLIER_INV_DATA",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_INV_DATA_WriteState",
|
|
table: "SUPPLIER_INV_DATA",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_INV_DATA_LOGS_Id",
|
|
table: "SUPPLIER_INV_DATA_LOGS",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_INV_DATA_LOGS_ReadState",
|
|
table: "SUPPLIER_INV_DATA_LOGS",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_INV_DATA_LOGS_RequestDate",
|
|
table: "SUPPLIER_INV_DATA_LOGS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_INV_DATA_LOGS_TaskId",
|
|
table: "SUPPLIER_INV_DATA_LOGS",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_INV_DATA_LOGS_WriteState",
|
|
table: "SUPPLIER_INV_DATA_LOGS",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_DATE_Id",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_DATE_ReadState",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_DATE_RequestDate",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_DATE_TaskId",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_DATE_WriteState",
|
|
table: "SUPPLIER_MRP_DATE",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_DATE_LOGS_Id",
|
|
table: "SUPPLIER_MRP_DATE_LOGS",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_DATE_LOGS_ReadState",
|
|
table: "SUPPLIER_MRP_DATE_LOGS",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_DATE_LOGS_RequestDate",
|
|
table: "SUPPLIER_MRP_DATE_LOGS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_DATE_LOGS_TaskId",
|
|
table: "SUPPLIER_MRP_DATE_LOGS",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_DATE_LOGS_WriteState",
|
|
table: "SUPPLIER_MRP_DATE_LOGS",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_MONTH_Id",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_MONTH_ReadState",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_MONTH_RequestDate",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_MONTH_TaskId",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_MONTH_WriteState",
|
|
table: "SUPPLIER_MRP_MONTH",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_MONTH_LOGS_Id",
|
|
table: "SUPPLIER_MRP_MONTH_LOGS",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_MONTH_LOGS_ReadState",
|
|
table: "SUPPLIER_MRP_MONTH_LOGS",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_MONTH_LOGS_RequestDate",
|
|
table: "SUPPLIER_MRP_MONTH_LOGS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_MONTH_LOGS_TaskId",
|
|
table: "SUPPLIER_MRP_MONTH_LOGS",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_MONTH_LOGS_WriteState",
|
|
table: "SUPPLIER_MRP_MONTH_LOGS",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_STATE_Id",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_STATE_ReadState",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_STATE_RequestDate",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_STATE_TaskId",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_STATE_WriteState",
|
|
table: "SUPPLIER_MRP_STATE",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_STATE_LOGS_Id",
|
|
table: "SUPPLIER_MRP_STATE_LOGS",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_STATE_LOGS_ReadState",
|
|
table: "SUPPLIER_MRP_STATE_LOGS",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_STATE_LOGS_RequestDate",
|
|
table: "SUPPLIER_MRP_STATE_LOGS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_STATE_LOGS_TaskId",
|
|
table: "SUPPLIER_MRP_STATE_LOGS",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_STATE_LOGS_WriteState",
|
|
table: "SUPPLIER_MRP_STATE_LOGS",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_WARNING_Id",
|
|
table: "SUPPLIER_MRP_WARNING",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_WARNING_ReadState",
|
|
table: "SUPPLIER_MRP_WARNING",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_WARNING_RequestDate",
|
|
table: "SUPPLIER_MRP_WARNING",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_WARNING_TaskId",
|
|
table: "SUPPLIER_MRP_WARNING",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_MRP_WARNING_WriteState",
|
|
table: "SUPPLIER_MRP_WARNING",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PO_Id",
|
|
table: "SUPPLIER_PO",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PO_ReadState",
|
|
table: "SUPPLIER_PO",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PO_RequestDate",
|
|
table: "SUPPLIER_PO",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PO_TaskId",
|
|
table: "SUPPLIER_PO",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PO_WriteState",
|
|
table: "SUPPLIER_PO",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PO_LOGS_Id",
|
|
table: "SUPPLIER_PO_LOGS",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PO_LOGS_ReadState",
|
|
table: "SUPPLIER_PO_LOGS",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PO_LOGS_RequestDate",
|
|
table: "SUPPLIER_PO_LOGS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PO_LOGS_TaskId",
|
|
table: "SUPPLIER_PO_LOGS",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PO_LOGS_WriteState",
|
|
table: "SUPPLIER_PO_LOGS",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_ATTACHMENT_DATA_RequestDate",
|
|
table: "SUPPLIER_PRO_ATTACHMENT_DATA",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_CPS_RequestDate",
|
|
table: "SUPPLIER_PRO_CPS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_CSCHEDUL_Id",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_CSCHEDUL_ReadState",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_CSCHEDUL_RequestDate",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_CSCHEDUL_TaskId",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_CSCHEDUL_WriteState",
|
|
table: "SUPPLIER_PRO_CSCHEDUL",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_Id",
|
|
table: "SUPPLIER_PRO_CSCHEDUL_LOGS",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_ReadState",
|
|
table: "SUPPLIER_PRO_CSCHEDUL_LOGS",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_RequestDate",
|
|
table: "SUPPLIER_PRO_CSCHEDUL_LOGS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_TaskId",
|
|
table: "SUPPLIER_PRO_CSCHEDUL_LOGS",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_CSCHEDUL_LOGS_WriteState",
|
|
table: "SUPPLIER_PRO_CSCHEDUL_LOGS",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_DATA_RequestDate",
|
|
table: "SUPPLIER_PRO_DATA",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_ENVIRONMENT_RequestDate",
|
|
table: "SUPPLIER_PRO_ENVIRONMENT",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_FIRST_PASSYIELD_RequestDate",
|
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_FLAW_RequestDate",
|
|
table: "SUPPLIER_PRO_FLAW",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_HSCHEDUL_Id",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_HSCHEDUL_ReadState",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_HSCHEDUL_RequestDate",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_HSCHEDUL_TaskId",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_HSCHEDUL_WriteState",
|
|
table: "SUPPLIER_PRO_HSCHEDUL",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_Id",
|
|
table: "SUPPLIER_PRO_HSCHEDUL_LOGS",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_ReadState",
|
|
table: "SUPPLIER_PRO_HSCHEDUL_LOGS",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_RequestDate",
|
|
table: "SUPPLIER_PRO_HSCHEDUL_LOGS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_TaskId",
|
|
table: "SUPPLIER_PRO_HSCHEDUL_LOGS",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_HSCHEDUL_LOGS_WriteState",
|
|
table: "SUPPLIER_PRO_HSCHEDUL_LOGS",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_MATERIAL_DATA_RequestDate",
|
|
table: "SUPPLIER_PRO_MATERIAL_DATA",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_MATERIAL_STOCK_RequestDate",
|
|
table: "SUPPLIER_PRO_MATERIAL_STOCK",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_RequestDate",
|
|
table: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_OEE_TIME_DETAILS_RequestDate",
|
|
table: "SUPPLIER_PRO_OEE_TIME_DETAILS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_PLANING_Id",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_PLANING_ReadState",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_PLANING_RequestDate",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_PLANING_TaskId",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_PLANING_WriteState",
|
|
table: "SUPPLIER_PRO_PLANING",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_PLANING_LOGS_Id",
|
|
table: "SUPPLIER_PRO_PLANING_LOGS",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_PLANING_LOGS_ReadState",
|
|
table: "SUPPLIER_PRO_PLANING_LOGS",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_PLANING_LOGS_RequestDate",
|
|
table: "SUPPLIER_PRO_PLANING_LOGS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_PLANING_LOGS_TaskId",
|
|
table: "SUPPLIER_PRO_PLANING_LOGS",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_PLANING_LOGS_WriteState",
|
|
table: "SUPPLIER_PRO_PLANING_LOGS",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_PROCESS_RequestDate",
|
|
table: "SUPPLIER_PRO_PROCESS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_PROCESS_EQUIPMENT_RequestDate",
|
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_SCHEDULING_RequestDate",
|
|
table: "SUPPLIER_PRO_SCHEDULING",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_STATION_FIRST_PASSYIELD_RequestDate",
|
|
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_TSCHEDUL_Id",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_TSCHEDUL_ReadState",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_TSCHEDUL_RequestDate",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_TSCHEDUL_TaskId",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_TSCHEDUL_WriteState",
|
|
table: "SUPPLIER_PRO_TSCHEDUL",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_Id",
|
|
table: "SUPPLIER_PRO_TSCHEDUL_LOGS",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_ReadState",
|
|
table: "SUPPLIER_PRO_TSCHEDUL_LOGS",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_RequestDate",
|
|
table: "SUPPLIER_PRO_TSCHEDUL_LOGS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_TaskId",
|
|
table: "SUPPLIER_PRO_TSCHEDUL_LOGS",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_PRO_TSCHEDUL_LOGS_WriteState",
|
|
table: "SUPPLIER_PRO_TSCHEDUL_LOGS",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_RETURN_Id",
|
|
table: "SUPPLIER_RETURN",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_RETURN_ReadState",
|
|
table: "SUPPLIER_RETURN",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_RETURN_RequestDate",
|
|
table: "SUPPLIER_RETURN",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_RETURN_TaskId",
|
|
table: "SUPPLIER_RETURN",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_RETURN_WriteState",
|
|
table: "SUPPLIER_RETURN",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_RETURN_LOGS_Id",
|
|
table: "SUPPLIER_RETURN_LOGS",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_RETURN_LOGS_ReadState",
|
|
table: "SUPPLIER_RETURN_LOGS",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_RETURN_LOGS_RequestDate",
|
|
table: "SUPPLIER_RETURN_LOGS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_RETURN_LOGS_TaskId",
|
|
table: "SUPPLIER_RETURN_LOGS",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_RETURN_LOGS_WriteState",
|
|
table: "SUPPLIER_RETURN_LOGS",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_SA_WEEK_Id",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_SA_WEEK_ReadState",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_SA_WEEK_RequestDate",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_SA_WEEK_TaskId",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_SA_WEEK_WriteState",
|
|
table: "SUPPLIER_SA_WEEK",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_SA_WEEK_LOGS_Id",
|
|
table: "SUPPLIER_SA_WEEK_LOGS",
|
|
column: "Id");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_SA_WEEK_LOGS_ReadState",
|
|
table: "SUPPLIER_SA_WEEK_LOGS",
|
|
column: "ReadState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_SA_WEEK_LOGS_RequestDate",
|
|
table: "SUPPLIER_SA_WEEK_LOGS",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_SA_WEEK_LOGS_TaskId",
|
|
table: "SUPPLIER_SA_WEEK_LOGS",
|
|
column: "TaskId");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_SA_WEEK_LOGS_WriteState",
|
|
table: "SUPPLIER_SA_WEEK_LOGS",
|
|
column: "WriteState");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_SUPPLIER_SINV_DATA_RequestDate",
|
|
table: "SUPPLIER_SINV_DATA",
|
|
column: "RequestDate");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_TaskLogs_Module",
|
|
table: "TaskLogs",
|
|
column: "Module");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "DynamicTableRecords");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "DynamicTables");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_BOM");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_BOM_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_CON_DATE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_CON_DATE_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_CON_MMRP");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_CON_MMRP_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_CON_PO");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_CON_PO_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_DEL_STATE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_DEL_STATE_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_EMPLOYEE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_EMPLOYEE_DT");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_EMPLOYEE_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_INFO");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_INFO_DT");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_INFO_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_INV_DATA");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_INV_DATA_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_MRP_DATE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_MRP_DATE_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_MRP_MONTH");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_MRP_MONTH_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_MRP_STATE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_MRP_STATE_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_MRP_WARNING");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PO");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PO_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_ATTACHMENT_DATA");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_ATTACHMENT_DATA_DT");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_ATTACHMENT_DATA_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_CPS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_CPS_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_CSCHEDUL");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_CSCHEDUL_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_DATA");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_DATA_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_ENVIRONMENT");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_ENVIRONMENT_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_FIRST_PASSYIELD_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_FLAW");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_FLAW_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_HSCHEDUL");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_HSCHEDUL_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_MATERIAL_DATA");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_MATERIAL_DATA_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_MATERIAL_STOCK");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_OEE_TIME_DETAILS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_OEE_TIME_DETAILS_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_PLANING");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_PLANING_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_PROCESS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_PROCESS_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_SCHEDULING");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_SCHEDULING_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_TSCHEDUL");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_PRO_TSCHEDUL_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_RETURN");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_RETURN_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_SA_WEEK");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_SA_WEEK_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_SINV_DATA");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "SUPPLIER_SINV_DATA_LOGS");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "TaskAllocation");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "TaskConifgure");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "TaskLogs");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "TaskSub");
|
|
}
|
|
}
|
|
}
|
|
|