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.
 
 
 
 
 
 

62 lines
4.2 KiB

using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win.Sfs.SettleAccount.Migrations
{
public partial class _202110100002 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Set_SecMatchBase",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Version = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Index = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Factory = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Model = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
PartType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
SettleMentPartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
MaterialPartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
MaterialDesc = 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),
UsedNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
SupplyProportion = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Buyer = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
SettlementPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
DiffPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
SettlementNumber = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
TheoreticalSettlementNumber = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
RealSettlementNumber = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
RealSettlementPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
IsDiffNumber = table.Column<bool>(type: "bit", nullable: false),
DiffAmount = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
Remark = 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),
BranchId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Enabled = table.Column<bool>(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Set_SecMatchBase", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Set_SecMatchBase");
}
}
}