using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
///
public partial class z1239912930001 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "DynamicTableRecords",
columns: table => new
{
UId = table.Column(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
TableId = table.Column(type: "bigint", nullable: false),
RecordJson = table.Column(type: "nvarchar(max)", nullable: false),
WriteState = table.Column(type: "bit", nullable: false),
ReadState = table.Column(type: "bit", nullable: false),
CreationTime = table.Column(type: "datetime2", nullable: false),
Remark = table.Column(type: "nvarchar(max)", nullable: true),
TaskId = table.Column(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DynamicTableRecords", x => x.UId);
});
migrationBuilder.CreateTable(
name: "DynamicTables",
columns: table => new
{
UId = table.Column(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
TableName = table.Column(type: "nvarchar(max)", nullable: false),
SchemaJson = table.Column(type: "nvarchar(max)", nullable: false),
WriteState = table.Column(type: "bit", nullable: false),
ReadState = table.Column(type: "bit", nullable: false),
CreationTime = table.Column(type: "datetime2", nullable: false),
Remark = table.Column(type: "nvarchar(max)", nullable: true),
TaskId = table.Column(type: "uniqueidentifier", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DynamicTables", x => x.UId);
});
migrationBuilder.CreateTable(
name: "SUPPLIER_BOM",
columns: table => new
{
UId = table.Column(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false),
BomCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
BomName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false),
BomVersion = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false),
VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false),
VendorProductType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
MaterialUnit = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true),
SubMaterialCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SubMaterialName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false),
SubMaterialType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
SubMaterialUnit = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SubMaterialQuota = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false),
WriteState = table.Column(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column(type: "bit", nullable: false, defaultValue: true),
CreationTime = table.Column(type: "datetime2", nullable: false),
Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true),
Id = table.Column(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(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SupplierName = table.Column(type: "VARCHAR(64)", maxLength: 64, nullable: false),
BomCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
BomName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false),
BomVersion = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
CheryProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
CheryProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false),
VendorProductNo = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
VendorProductName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false),
VendorProductType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
MaterialUnit = table.Column(type: "VARCHAR(8)", maxLength: 8, nullable: true),
SubMaterialCode = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SubMaterialName = table.Column(type: "VARCHAR(100)", maxLength: 100, nullable: false),
SubMaterialType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
SubMaterialUnit = table.Column(type: "VARCHAR(32)", maxLength: 32, nullable: false),
SubMaterialQuota = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false),
DataUpdateTime = table.Column(type: "CHAR(19)", maxLength: 19, nullable: false),
WriteState = table.Column(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column(type: "bit", nullable: false, defaultValue: true),
CreationTime = table.Column(type: "datetime2", nullable: false),
Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true),
Id = table.Column(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(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
ReleaseEdition = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
MaterialCode = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
PlantId = table.Column(type: "NVARCHAR(64)", maxLength: 64, nullable: true),
FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
StartDate = table.Column(type: "datetime2", nullable: true),
QuantityMeet1 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet2 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet3 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet4 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet5 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet6 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet7 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet8 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet9 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet10 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet11 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet12 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet13 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet14 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet15 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet16 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet17 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet18 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet19 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet20 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet21 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet22 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet23 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet24 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet25 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet26 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet27 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet28 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet29 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet30 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet31 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
WriteState = table.Column(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column(type: "bit", nullable: false, defaultValue: true),
CreationTime = table.Column(type: "datetime2", nullable: false),
Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true),
Id = table.Column(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(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
ReleaseEdition = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
MaterialCode = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
PlantId = table.Column(type: "NVARCHAR(64)", maxLength: 64, nullable: true),
FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
StartDate = table.Column(type: "datetime2", nullable: true),
QuantityMeet1 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet2 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet3 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet4 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet5 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet6 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet7 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet8 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet9 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet10 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet11 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet12 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet13 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet14 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet15 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet16 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet17 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet18 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet19 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet20 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet21 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet22 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet23 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet24 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet25 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet26 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet27 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet28 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet29 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet30 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet31 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
WriteState = table.Column(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column(type: "bit", nullable: false, defaultValue: true),
CreationTime = table.Column(type: "datetime2", nullable: false),
Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true),
Id = table.Column(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(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Id = table.Column(type: "nvarchar(max)", nullable: true),
SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
ReleaseEdition = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
MaterialCode = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
PlantId = table.Column(type: "NVARCHAR(64)", maxLength: 64, nullable: true),
FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
StartMonth = table.Column(type: "NVARCHAR(7)", maxLength: 7, nullable: true),
QuantityMeet1 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet2 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet3 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet4 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet5 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet6 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet7 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet8 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet9 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet10 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet11 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet12 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
WriteState = table.Column(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column(type: "bit", nullable: false, defaultValue: true),
CreationTime = table.Column(type: "datetime2", nullable: false),
Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column(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(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Id = table.Column(type: "nvarchar(max)", nullable: true),
SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
ReleaseEdition = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
MaterialCode = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
PlantId = table.Column(type: "NVARCHAR(64)", maxLength: 64, nullable: true),
FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
StartMonth = table.Column(type: "NVARCHAR(7)", maxLength: 7, nullable: true),
QuantityMeet1 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet2 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet3 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet4 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet5 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet6 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet7 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet8 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet9 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet10 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet11 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
QuantityMeet12 = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
WriteState = table.Column(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column(type: "bit", nullable: false, defaultValue: true),
CreationTime = table.Column(type: "datetime2", nullable: false),
Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column(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(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
PurchaseOrder = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
SerialNumber = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
QuantityMeet = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
WriteState = table.Column(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column(type: "bit", nullable: false, defaultValue: true),
CreationTime = table.Column(type: "datetime2", nullable: false),
Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true),
Id = table.Column(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(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
SupplierCode = table.Column(type: "NVARCHAR(32)", maxLength: 32, nullable: true),
PurchaseOrder = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
SerialNumber = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
QuantityMeet = table.Column(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true),
FeedbackResults = table.Column(type: "NVARCHAR(10)", maxLength: 10, nullable: true),
VentureType = table.Column(type: "NVARCHAR(50)", maxLength: 50, nullable: true),
VentureSpecific = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
Measures = table.Column(type: "NVARCHAR(255)", maxLength: 255, nullable: true),
WriteState = table.Column(type: "bit", nullable: false, defaultValue: false),
ReadState = table.Column(type: "bit", nullable: false, defaultValue: true),
CreationTime = table.Column(type: "datetime2", nullable: false),
Remark = table.Column(type: "NVarchar(500)", maxLength: 500, nullable: true),
TaskId = table.Column(type: "uniqueidentifier", nullable: false),
RequestDate = table.Column(type: "nvarchar(30)", maxLength: 30, nullable: true),
Id = table.Column(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(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
DeliveryNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
SerialNumber = table.Column