You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
3.6 KiB
55 lines
3.6 KiB
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace Win.Sfs.SettleAccount.Migrations
|
|
{
|
|
public partial class _2021093001 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "Set_SettlementPakAndSpareParts",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
Period = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ApplicableFunction = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SettlementPartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
|
|
SettlementPartDesc = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ErpSparePartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ErpSparePartName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PartType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
QADCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SupplierCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SupplierName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
ProductLine = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PerCarNum = table.Column<decimal>(type: "decimal(18,2)", maxLength: 50, nullable: false),
|
|
Price = table.Column<decimal>(type: "decimal(18,2)", maxLength: 50, nullable: false),
|
|
SupplyProportion = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
QuantityPrice = table.Column<decimal>(type: "decimal(18,2)", maxLength: 50, 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),
|
|
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),
|
|
BranchId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
Enabled = table.Column<bool>(type: "bit", nullable: false),
|
|
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_Set_SettlementPakAndSpareParts", x => x.Id);
|
|
});
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "Set_SettlementPakAndSpareParts");
|
|
}
|
|
}
|
|
}
|
|
|