79 changed files with 2470 additions and 56027 deletions
@ -1,5 +1,5 @@ |
|||||
{ |
{ |
||||
"ConnectionStrings": { |
"ConnectionStrings": { |
||||
"TYRP": "Server=dev.ccwin-in.com,13319;Database=TYRP;Uid=ccwin-in;Pwd=Microsoft@2022;" |
"TYRP": "Server=dev.ccwin-in.com,21195;Database=TYRP;Uid=sa;Pwd=aA123456!;" |
||||
} |
} |
||||
} |
} |
||||
|
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,74 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class _202210250002 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "SystemType", |
|
||||
table: "DataExchange_ArchivedOutgoingFromWms"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "SystemType", |
|
||||
table: "IncomingToWms", |
|
||||
newName: "SourceSystem"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "SystemType", |
|
||||
table: "DataExchange_OutgoingFromWms", |
|
||||
newName: "DestinationSystem"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "SystemType", |
|
||||
table: "ArchivedIncomingToWms", |
|
||||
newName: "SourceSystem"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "SourceSystem", |
|
||||
table: "DataExchange_OutgoingFromWms", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "SourceSystem", |
|
||||
table: "DataExchange_ArchivedOutgoingFromWms", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "SourceSystem", |
|
||||
table: "DataExchange_OutgoingFromWms"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "SourceSystem", |
|
||||
table: "DataExchange_ArchivedOutgoingFromWms"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "SourceSystem", |
|
||||
table: "IncomingToWms", |
|
||||
newName: "SystemType"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "DestinationSystem", |
|
||||
table: "DataExchange_OutgoingFromWms", |
|
||||
newName: "SystemType"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "SourceSystem", |
|
||||
table: "ArchivedIncomingToWms", |
|
||||
newName: "SystemType"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "SystemType", |
|
||||
table: "DataExchange_ArchivedOutgoingFromWms", |
|
||||
type: "nvarchar(64)", |
|
||||
maxLength: 64, |
|
||||
nullable: false, |
|
||||
defaultValue: ""); |
|
||||
} |
|
||||
} |
|
@ -1,56 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class _202210280001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "TableType", |
|
||||
table: "OutgoingToExternal", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "TableType", |
|
||||
table: "DataExchange_IncomingFromExternal", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "TableType", |
|
||||
table: "DataExchange_ArchivedIncomingFromExternal", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "TableType", |
|
||||
table: "ArchivedOutgoingToExternal", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "TableType", |
|
||||
table: "OutgoingToExternal"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "TableType", |
|
||||
table: "DataExchange_IncomingFromExternal"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "TableType", |
|
||||
table: "DataExchange_ArchivedIncomingFromExternal"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "TableType", |
|
||||
table: "ArchivedOutgoingToExternal"); |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,664 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class Init : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_AsnMstr", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
AsnNbr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
RpNbr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
PoNbr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
VendorCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Status = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Contacts = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Phone = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
TruckNbr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Whse = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Dock = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
ShipDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
DueDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
TimeWindow = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_AsnMstr", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_Bom", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Parent = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Component = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PerQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Ref2 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
StartDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
EndDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
Type = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Op = table.Column<int>(type: "int", nullable: false), |
|
||||
ScrapPct = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
SeqNumber = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
OptionGroup = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Process = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_Bom", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_Cust", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Code = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Addr1 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Addr2 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Addr3 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Country = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
City = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Phone = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Fax = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
PstId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Contacts = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Curr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Active = table.Column<bool>(type: "bit", nullable: false), |
|
||||
Type = table.Column<int>(type: "int", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_Cust", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_CustPart", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
CustCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
PartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CustPartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CustPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
CustPackUm = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_CustPart", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_IncomingData", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Number = table.Column<long>(type: "bigint", nullable: false) |
|
||||
.Annotation("SqlServer:Identity", "1, 1"), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
Company = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
DataType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
EffectiveDate = table.Column<DateTime>(type: "datetime2(7)", nullable: false), |
|
||||
Status = table.Column<int>(type: "int", nullable: false), |
|
||||
DataContent = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
DestinationSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
ReadTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
Reader = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
||||
SourceSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
WriteTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
Writer = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
RetryTimes = table.Column<int>(type: "int", nullable: false) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_IncomingData", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_IncomingDataHistory", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Number = table.Column<long>(type: "bigint", nullable: false), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
Company = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
DataType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
EffectiveDate = table.Column<DateTime>(type: "datetime2(7)", nullable: false), |
|
||||
Status = table.Column<int>(type: "int", nullable: false), |
|
||||
DataContent = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
DestinationSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
ReadTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
Reader = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
||||
SourceSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
WriteTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
Writer = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
RetryTimes = table.Column<int>(type: "int", nullable: false) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_IncomingDataHistory", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_Inventory", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Part = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Lot = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Um = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Loc = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SuppConsignQty = table.Column<decimal>(type: "decimal(18,2)", nullable: true), |
|
||||
CustConsignQty = table.Column<decimal>(type: "decimal(18,2)", nullable: true), |
|
||||
Status = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Reference = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_Inventory", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_Loc", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Whse = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Code = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Desc = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true), |
|
||||
Type = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_Loc", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_OutgoingData", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Number = table.Column<long>(type: "bigint", nullable: false) |
|
||||
.Annotation("SqlServer:Identity", "1, 1"), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
Company = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
DataType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
EffectiveDate = table.Column<DateTime>(type: "datetime2(7)", nullable: false), |
|
||||
Status = table.Column<int>(type: "int", nullable: false), |
|
||||
DataContent = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
DestinationSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
ReadTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
Reader = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
||||
SourceSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
WriteTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
Writer = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
RetryTimes = table.Column<int>(type: "int", nullable: false) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_OutgoingData", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_OutgoingDataHistory", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Number = table.Column<long>(type: "bigint", nullable: false), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
Company = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
DataType = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
EffectiveDate = table.Column<DateTime>(type: "datetime2(7)", nullable: false), |
|
||||
Status = table.Column<int>(type: "int", nullable: false), |
|
||||
DataContent = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
DestinationSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
ReadTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
Reader = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
||||
SourceSystem = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), |
|
||||
WriteTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
Writer = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
RetryTimes = table.Column<int>(type: "int", nullable: false) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_OutgoingDataHistory", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_Part", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Code = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Desc1 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Desc2 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Status = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
CanMake = table.Column<bool>(type: "bit", nullable: false), |
|
||||
CanBuy = table.Column<bool>(type: "bit", nullable: false), |
|
||||
Um = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
AbcClass = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
ProdKind = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
PartType = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
PartCatalog = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
PartGroup = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Color = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Config = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Project = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Version = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Eco = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
StdPackUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
StdPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
ExtPackUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
ExtPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_Part", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_PoMstr", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
PoNbr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
VendorCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
ModType = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Status = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Consignment = table.Column<bool>(type: "bit", nullable: false), |
|
||||
OrderDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
DueDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
TaxRate = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Contacts = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Buyer = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Contract = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Project = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_PoMstr", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_ProdLine", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Code = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Desc = table.Column<string>(type: "nvarchar(1024)", maxLength: 1024, nullable: true), |
|
||||
Part = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Rate = table.Column<int>(type: "int", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_ProdLine", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_SodDet", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
SoNbr = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SoLine = table.Column<int>(type: "int", nullable: false), |
|
||||
CustCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
PartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Um = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
StdPackQty = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Loc = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Project = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ShipTo = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_SodDet", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_Vend", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Code = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Addr1 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Addr2 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Addr3 = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Country = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
City = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Phone = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Fax = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
PstId = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Contacts = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Bank = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Curr = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
TaxRate = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Active = table.Column<bool>(type: "bit", nullable: false), |
|
||||
Type = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_Vend", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_VendPart", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
VendorCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
PartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
VendPartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
VendPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
VendPackUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_VendPart", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_AsnDet", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
AsnNbr = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PoNbr = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PoLine = table.Column<int>(type: "int", nullable: false), |
|
||||
PartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Lot = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
ProductionDate = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
WareClass = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
WareCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
StdPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
PoUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
LocUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
UmConv = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
PartType = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Supplierlot = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Status = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
LabelCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
EntireBarCode = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true), |
|
||||
PalletLabelCode = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
AsnMstrId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_AsnDet", x => x.Id); |
|
||||
table.ForeignKey( |
|
||||
name: "FK_DataExchange_AsnDet_DataExchange_AsnMstr_AsnMstrId", |
|
||||
column: x => x.AsnMstrId, |
|
||||
principalTable: "DataExchange_AsnMstr", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Restrict); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_PoDet", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
PoNbr = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PoLine = table.Column<int>(type: "int", nullable: false), |
|
||||
PartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Status = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Um = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
OrderQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
RcQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
StdPackUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
StdPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: true), |
|
||||
VendPackUm = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
VendPackQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
UmConv = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Consignment = table.Column<bool>(type: "bit", nullable: false), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
PoMstrId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_PoDet", x => x.Id); |
|
||||
table.ForeignKey( |
|
||||
name: "FK_DataExchange_PoDet_DataExchange_PoMstr_PoMstrId", |
|
||||
column: x => x.PoMstrId, |
|
||||
principalTable: "DataExchange_PoMstr", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Restrict); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_DataExchange_AsnDet_AsnMstrId", |
|
||||
table: "DataExchange_AsnDet", |
|
||||
column: "AsnMstrId"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_DataExchange_PoDet_PoMstrId", |
|
||||
table: "DataExchange_PoDet", |
|
||||
column: "PoMstrId"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_AsnDet"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_Bom"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_Cust"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_CustPart"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_IncomingData"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_IncomingDataHistory"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_Inventory"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_Loc"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_OutgoingData"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_OutgoingDataHistory"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_Part"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_PoDet"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_ProdLine"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_SodDet"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_Vend"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_VendPart"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_AsnMstr"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_PoMstr"); |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,76 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class L7Part20220704 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "InfoType", |
|
||||
table: "DataExchange_MesProductL7PartsNote"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "ProjectNo", |
|
||||
table: "DataExchange_MesProductL7PartsNote", |
|
||||
newName: "Program"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "L7PartCode", |
|
||||
table: "DataExchange_MesProductL7PartsNote", |
|
||||
newName: "L7Part"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "CreateDate", |
|
||||
table: "DataExchange_MesProductL7PartsNote", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_MesProductL7PartsNote", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "State", |
|
||||
table: "DataExchange_MesProductL7PartsNote", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CreateDate", |
|
||||
table: "DataExchange_MesProductL7PartsNote"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_MesProductL7PartsNote"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "State", |
|
||||
table: "DataExchange_MesProductL7PartsNote"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "Program", |
|
||||
table: "DataExchange_MesProductL7PartsNote", |
|
||||
newName: "ProjectNo"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "L7Part", |
|
||||
table: "DataExchange_MesProductL7PartsNote", |
|
||||
newName: "L7PartCode"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "InfoType", |
|
||||
table: "DataExchange_MesProductL7PartsNote", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,22 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class MesProductL7PartsNote20220826 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Year", |
|
||||
table: "DataExchange_MesProductL7PartsNote", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Year", |
|
||||
table: "DataExchange_MesProductL7PartsNote"); |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,330 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class MessageReceive20220817 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "VendPackQty", |
|
||||
table: "DataExchange_VendPart", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "TaxRate", |
|
||||
table: "DataExchange_Vend", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_SodDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "TaxRate", |
|
||||
table: "DataExchange_PoMstr", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "VendPackQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "UmConv", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "StdPackQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "RcQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "OrderQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "StdPackQty", |
|
||||
table: "DataExchange_Part", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "ExtPackQty", |
|
||||
table: "DataExchange_Part", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsPhantom", |
|
||||
table: "DataExchange_Part", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "SuppConsignQty", |
|
||||
table: "DataExchange_Inventory", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_Inventory", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "CustConsignQty", |
|
||||
table: "DataExchange_Inventory", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "CustPackQty", |
|
||||
table: "DataExchange_CustPart", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "PerQty", |
|
||||
table: "DataExchange_Bom", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "UmConv", |
|
||||
table: "DataExchange_AsnDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "StdPackQty", |
|
||||
table: "DataExchange_AsnDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_AsnDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "VendPackQty", |
|
||||
table: "DataExchange_VendPart", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "TaxRate", |
|
||||
table: "DataExchange_Vend", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_SodDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "TaxRate", |
|
||||
table: "DataExchange_PoMstr", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "VendPackQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "UmConv", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "StdPackQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "RcQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "OrderQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "StdPackQty", |
|
||||
table: "DataExchange_Part", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "ExtPackQty", |
|
||||
table: "DataExchange_Part", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "SuppConsignQty", |
|
||||
table: "DataExchange_Inventory", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_Inventory", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "CustConsignQty", |
|
||||
table: "DataExchange_Inventory", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "CustPackQty", |
|
||||
table: "DataExchange_CustPart", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "PerQty", |
|
||||
table: "DataExchange_Bom", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "UmConv", |
|
||||
table: "DataExchange_AsnDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "StdPackQty", |
|
||||
table: "DataExchange_AsnDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_AsnDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,37 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class MessageReceive2022081702 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_MessageReceive", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
MessageFileName = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
MessageContent = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ReceiveStatus = table.Column<int>(type: "int", nullable: false), |
|
||||
ReceiveTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
LastUpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
ErrorCount = table.Column<int>(type: "int", nullable: true), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Type = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_MessageReceive", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_MessageReceive"); |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,333 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class Part20220815 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "VendPackQty", |
|
||||
table: "DataExchange_VendPart", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "TaxRate", |
|
||||
table: "DataExchange_Vend", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_SodDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "TaxRate", |
|
||||
table: "DataExchange_PoMstr", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "VendPackQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "UmConv", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "StdPackQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "RcQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "OrderQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "StdPackQty", |
|
||||
table: "DataExchange_Part", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "ExtPackQty", |
|
||||
table: "DataExchange_Part", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsPhantom", |
|
||||
table: "DataExchange_Part", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "SuppConsignQty", |
|
||||
table: "DataExchange_Inventory", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_Inventory", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "CustConsignQty", |
|
||||
table: "DataExchange_Inventory", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "CustPackQty", |
|
||||
table: "DataExchange_CustPart", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "PerQty", |
|
||||
table: "DataExchange_Bom", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "UmConv", |
|
||||
table: "DataExchange_AsnDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "StdPackQty", |
|
||||
table: "DataExchange_AsnDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_AsnDet", |
|
||||
type: "decimal(18,6)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsPhantom", |
|
||||
table: "DataExchange_Part"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "VendPackQty", |
|
||||
table: "DataExchange_VendPart", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "TaxRate", |
|
||||
table: "DataExchange_Vend", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_SodDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "TaxRate", |
|
||||
table: "DataExchange_PoMstr", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "VendPackQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "UmConv", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "StdPackQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "RcQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "OrderQty", |
|
||||
table: "DataExchange_PoDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "StdPackQty", |
|
||||
table: "DataExchange_Part", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "ExtPackQty", |
|
||||
table: "DataExchange_Part", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "SuppConsignQty", |
|
||||
table: "DataExchange_Inventory", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_Inventory", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "CustConsignQty", |
|
||||
table: "DataExchange_Inventory", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "CustPackQty", |
|
||||
table: "DataExchange_CustPart", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "PerQty", |
|
||||
table: "DataExchange_Bom", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "UmConv", |
|
||||
table: "DataExchange_AsnDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "StdPackQty", |
|
||||
table: "DataExchange_AsnDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_AsnDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)"); |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,33 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class PrhHist_add_Loc_status_20209040932 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "LocationCode", |
|
||||
table: "DataExchange_PrhHist", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "Status", |
|
||||
table: "DataExchange_PrhHist", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "LocationCode", |
|
||||
table: "DataExchange_PrhHist"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Status", |
|
||||
table: "DataExchange_PrhHist"); |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,156 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class ReceiptReturn : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Receipts", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
PoNbr = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
RpNbr = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
AsnNbr = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
RcNbr = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
RcTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
RcWorker = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Whse = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
VendorCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Receipts", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Returns", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
PoNbr = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
AsnNbr = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
RtNbr = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
RtTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
RtWorker = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Whse = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
VendorCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Returns", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "ReceiptDet", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
PoLine = table.Column<int>(type: "int", nullable: false), |
|
||||
PartCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
PackingCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ContainerCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Lot = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
VendorLot = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ProductionDate = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Loc = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Um = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Status = table.Column<int>(type: "int", nullable: false), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ReceiptMstrId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_ReceiptDet", x => x.Id); |
|
||||
table.ForeignKey( |
|
||||
name: "FK_ReceiptDet_Receipts_ReceiptMstrId", |
|
||||
column: x => x.ReceiptMstrId, |
|
||||
principalTable: "Receipts", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Restrict); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "ReturnDet", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
PoLine = table.Column<int>(type: "int", nullable: false), |
|
||||
PartCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
PackingCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ContainerCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Lot = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
VendorLot = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ProductionDate = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Loc = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Um = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Status = table.Column<int>(type: "int", nullable: false), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ReturnMstrId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_ReturnDet", x => x.Id); |
|
||||
table.ForeignKey( |
|
||||
name: "FK_ReturnDet_Returns_ReturnMstrId", |
|
||||
column: x => x.ReturnMstrId, |
|
||||
principalTable: "Returns", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Restrict); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_ReceiptDet_ReceiptMstrId", |
|
||||
table: "ReceiptDet", |
|
||||
column: "ReceiptMstrId"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_ReturnDet_ReturnMstrId", |
|
||||
table: "ReturnDet", |
|
||||
column: "ReturnMstrId"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "ReceiptDet"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "ReturnDet"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Receipts"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Returns"); |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,884 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class ReceiptReturn1 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_ReceiptDet_Receipts_ReceiptMstrId", |
|
||||
table: "ReceiptDet"); |
|
||||
|
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_ReturnDet_Returns_ReturnMstrId", |
|
||||
table: "ReturnDet"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_Returns", |
|
||||
table: "Returns"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_ReturnDet", |
|
||||
table: "ReturnDet"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_Receipts", |
|
||||
table: "Receipts"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_ReceiptDet", |
|
||||
table: "ReceiptDet"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "Returns", |
|
||||
newName: "DataExchange_ReturnMstr"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "ReturnDet", |
|
||||
newName: "DataExchange_ReturnDet"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "Receipts", |
|
||||
newName: "DataExchange_ReceiptMstr"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "ReceiptDet", |
|
||||
newName: "DataExchange_ReceiptDet"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_ReturnDet_ReturnMstrId", |
|
||||
table: "DataExchange_ReturnDet", |
|
||||
newName: "IX_DataExchange_ReturnDet_ReturnMstrId"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_ReceiptDet_ReceiptMstrId", |
|
||||
table: "DataExchange_ReceiptDet", |
|
||||
newName: "IX_DataExchange_ReceiptDet_ReceiptMstrId"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Whse", |
|
||||
table: "DataExchange_ReturnMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "VendorCode", |
|
||||
table: "DataExchange_ReturnMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Site", |
|
||||
table: "DataExchange_ReturnMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "RtWorker", |
|
||||
table: "DataExchange_ReturnMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "RtNbr", |
|
||||
table: "DataExchange_ReturnMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PoNbr", |
|
||||
table: "DataExchange_ReturnMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Company", |
|
||||
table: "DataExchange_ReturnMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "AsnNbr", |
|
||||
table: "DataExchange_ReturnMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "VendorLot", |
|
||||
table: "DataExchange_ReturnDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Um", |
|
||||
table: "DataExchange_ReturnDet", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_ReturnDet", |
|
||||
type: "decimal(18,6)", |
|
||||
precision: 18, |
|
||||
scale: 6, |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ProductionDate", |
|
||||
table: "DataExchange_ReturnDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "DataExchange_ReturnDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PackingCode", |
|
||||
table: "DataExchange_ReturnDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Lot", |
|
||||
table: "DataExchange_ReturnDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Loc", |
|
||||
table: "DataExchange_ReturnDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ContainerCode", |
|
||||
table: "DataExchange_ReturnDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Whse", |
|
||||
table: "DataExchange_ReceiptMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "VendorCode", |
|
||||
table: "DataExchange_ReceiptMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Site", |
|
||||
table: "DataExchange_ReceiptMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "RpNbr", |
|
||||
table: "DataExchange_ReceiptMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "RcWorker", |
|
||||
table: "DataExchange_ReceiptMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "RcNbr", |
|
||||
table: "DataExchange_ReceiptMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PoNbr", |
|
||||
table: "DataExchange_ReceiptMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Company", |
|
||||
table: "DataExchange_ReceiptMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "AsnNbr", |
|
||||
table: "DataExchange_ReceiptMstr", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "VendorLot", |
|
||||
table: "DataExchange_ReceiptDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Um", |
|
||||
table: "DataExchange_ReceiptDet", |
|
||||
type: "nvarchar(200)", |
|
||||
maxLength: 200, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "DataExchange_ReceiptDet", |
|
||||
type: "decimal(18,6)", |
|
||||
precision: 18, |
|
||||
scale: 6, |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ProductionDate", |
|
||||
table: "DataExchange_ReceiptDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "DataExchange_ReceiptDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PackingCode", |
|
||||
table: "DataExchange_ReceiptDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Lot", |
|
||||
table: "DataExchange_ReceiptDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Loc", |
|
||||
table: "DataExchange_ReceiptDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ContainerCode", |
|
||||
table: "DataExchange_ReceiptDet", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_DataExchange_ReturnMstr", |
|
||||
table: "DataExchange_ReturnMstr", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_DataExchange_ReturnDet", |
|
||||
table: "DataExchange_ReturnDet", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_DataExchange_ReceiptMstr", |
|
||||
table: "DataExchange_ReceiptMstr", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_DataExchange_ReceiptDet", |
|
||||
table: "DataExchange_ReceiptDet", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_DataExchange_ReceiptDet_DataExchange_ReceiptMstr_ReceiptMstrId", |
|
||||
table: "DataExchange_ReceiptDet", |
|
||||
column: "ReceiptMstrId", |
|
||||
principalTable: "DataExchange_ReceiptMstr", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Restrict); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_DataExchange_ReturnDet_DataExchange_ReturnMstr_ReturnMstrId", |
|
||||
table: "DataExchange_ReturnDet", |
|
||||
column: "ReturnMstrId", |
|
||||
principalTable: "DataExchange_ReturnMstr", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Restrict); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_DataExchange_ReceiptDet_DataExchange_ReceiptMstr_ReceiptMstrId", |
|
||||
table: "DataExchange_ReceiptDet"); |
|
||||
|
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_DataExchange_ReturnDet_DataExchange_ReturnMstr_ReturnMstrId", |
|
||||
table: "DataExchange_ReturnDet"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_DataExchange_ReturnMstr", |
|
||||
table: "DataExchange_ReturnMstr"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_DataExchange_ReturnDet", |
|
||||
table: "DataExchange_ReturnDet"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_DataExchange_ReceiptMstr", |
|
||||
table: "DataExchange_ReceiptMstr"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_DataExchange_ReceiptDet", |
|
||||
table: "DataExchange_ReceiptDet"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "DataExchange_ReturnMstr", |
|
||||
newName: "Returns"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "DataExchange_ReturnDet", |
|
||||
newName: "ReturnDet"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "DataExchange_ReceiptMstr", |
|
||||
newName: "Receipts"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "DataExchange_ReceiptDet", |
|
||||
newName: "ReceiptDet"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_DataExchange_ReturnDet_ReturnMstrId", |
|
||||
table: "ReturnDet", |
|
||||
newName: "IX_ReturnDet_ReturnMstrId"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_DataExchange_ReceiptDet_ReceiptMstrId", |
|
||||
table: "ReceiptDet", |
|
||||
newName: "IX_ReceiptDet_ReceiptMstrId"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Whse", |
|
||||
table: "Returns", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "VendorCode", |
|
||||
table: "Returns", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Site", |
|
||||
table: "Returns", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "RtWorker", |
|
||||
table: "Returns", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "RtNbr", |
|
||||
table: "Returns", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PoNbr", |
|
||||
table: "Returns", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Company", |
|
||||
table: "Returns", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "AsnNbr", |
|
||||
table: "Returns", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "VendorLot", |
|
||||
table: "ReturnDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Um", |
|
||||
table: "ReturnDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "ReturnDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)", |
|
||||
oldPrecision: 18, |
|
||||
oldScale: 6); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ProductionDate", |
|
||||
table: "ReturnDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "ReturnDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PackingCode", |
|
||||
table: "ReturnDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Lot", |
|
||||
table: "ReturnDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Loc", |
|
||||
table: "ReturnDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ContainerCode", |
|
||||
table: "ReturnDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Whse", |
|
||||
table: "Receipts", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "VendorCode", |
|
||||
table: "Receipts", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Site", |
|
||||
table: "Receipts", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "RpNbr", |
|
||||
table: "Receipts", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "RcWorker", |
|
||||
table: "Receipts", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "RcNbr", |
|
||||
table: "Receipts", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PoNbr", |
|
||||
table: "Receipts", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Company", |
|
||||
table: "Receipts", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "AsnNbr", |
|
||||
table: "Receipts", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "VendorLot", |
|
||||
table: "ReceiptDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Um", |
|
||||
table: "ReceiptDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(200)", |
|
||||
oldMaxLength: 200, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "ReceiptDet", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,6)", |
|
||||
oldPrecision: 18, |
|
||||
oldScale: 6); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ProductionDate", |
|
||||
table: "ReceiptDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "ReceiptDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PackingCode", |
|
||||
table: "ReceiptDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Lot", |
|
||||
table: "ReceiptDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Loc", |
|
||||
table: "ReceiptDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ContainerCode", |
|
||||
table: "ReceiptDet", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_Returns", |
|
||||
table: "Returns", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_ReturnDet", |
|
||||
table: "ReturnDet", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_Receipts", |
|
||||
table: "Receipts", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_ReceiptDet", |
|
||||
table: "ReceiptDet", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_ReceiptDet_Receipts_ReceiptMstrId", |
|
||||
table: "ReceiptDet", |
|
||||
column: "ReceiptMstrId", |
|
||||
principalTable: "Receipts", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Restrict); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_ReturnDet_Returns_ReturnMstrId", |
|
||||
table: "ReturnDet", |
|
||||
column: "ReturnMstrId", |
|
||||
principalTable: "Returns", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Restrict); |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,43 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class _0608 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "MesProductL7PartsNotes", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
RowID = table.Column<int>(type: "int", nullable: false), |
|
||||
InfoType = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ProductNo = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ProjectNo = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Position = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
FATA = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Configuration = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
L7PartCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_MesProductL7PartsNotes", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "MesProductL7PartsNotes"); |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,16 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class _20220524 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,38 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class mesproductL7part : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_MesProductL7PartsNotes", |
|
||||
table: "MesProductL7PartsNotes"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "MesProductL7PartsNotes", |
|
||||
newName: "DataExchange_MesProductL7PartsNote"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_DataExchange_MesProductL7PartsNote", |
|
||||
table: "DataExchange_MesProductL7PartsNote", |
|
||||
column: "Id"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_DataExchange_MesProductL7PartsNote", |
|
||||
table: "DataExchange_MesProductL7PartsNote"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "DataExchange_MesProductL7PartsNote", |
|
||||
newName: "MesProductL7PartsNotes"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_MesProductL7PartsNotes", |
|
||||
table: "MesProductL7PartsNotes", |
|
||||
column: "Id"); |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,66 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win_in.Sfs.Wms.DataExchange.Migrations; |
|
||||
|
|
||||
public partial class prhhist20220905 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "DataExchange_PrhHist", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Company = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
ReceiveNumber = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
PoNumber = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
AsnNumber = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ReceiveDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
ReceiveType = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Vendor = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Buyer = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
ShipDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
ShipTo = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
PoSite = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Line = table.Column<int>(type: "int", nullable: false), |
|
||||
Part = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Lot = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
OrderQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|
||||
AsnQty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|
||||
Qty = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|
||||
Um = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
UmConv = table.Column<decimal>(type: "decimal(18,6)", nullable: false), |
|
||||
VendorLot = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Reason = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Request = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Rev = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Rma_type = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Type = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
PackageNumber = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
PalletNumber = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ProductionDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
Whse = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Dock = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", maxLength: 4096, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
TraceId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ErrorCode = table.Column<int>(type: "int", nullable: false), |
|
||||
ErrorMessage = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_DataExchange_PrhHist", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "DataExchange_PrhHist"); |
|
||||
} |
|
||||
} |
|
@ -1,6 +1,8 @@ |
|||||
|
using System.Threading.Tasks; |
||||
|
|
||||
namespace Win_in.Sfs.Basedata.Domain; |
namespace Win_in.Sfs.Basedata.Domain; |
||||
|
|
||||
public interface IInterfaceCalendarRepository : ISfsBaseDataRepositoryBase<InterfaceCalendar> |
public interface IInterfaceCalendarRepository : ISfsBaseDataRepositoryBase<InterfaceCalendar> |
||||
{ |
{ |
||||
|
Task UpsertAsync(InterfaceCalendar entity); |
||||
} |
} |
||||
|
Loading…
Reference in new issue