mahao
1 year ago
4 changed files with 5098 additions and 4 deletions
File diff suppressed because it is too large
@ -0,0 +1,112 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class _202307241 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DeleteData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298")); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Set_HBPO_SEC_DETAIL", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Category = table.Column<int>(type: "int", nullable: false), |
|||
WmsBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
ShippingDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
MaterialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
MaterialDes = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
PrimitiveLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
ReplaceLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
CustomerOfflineTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
SAQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
SEQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
DiffQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
MateType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
FixPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
SeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
PJISSeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, 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), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Set_HBPO_SEC_DETAIL", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Set_PUB_SEC_DETAIL", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Category = table.Column<int>(type: "int", nullable: false), |
|||
WmsBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
ShippingDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
MaterialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
MaterialDes = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
PrimitiveLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
ReplaceLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
CustomerOfflineTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
SAQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
SEQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
DiffQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
MateType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
FixPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
SeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
PJISSeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, 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), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Set_PUB_SEC_DETAIL", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_JobItem", |
|||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|||
values: new object[] { new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "Set_HBPO_SEC_DETAIL"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Set_PUB_SEC_DETAIL"); |
|||
|
|||
migrationBuilder.DeleteData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f")); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_JobItem", |
|||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|||
values: new object[] { new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue