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(type: "uniqueidentifier", nullable: false), Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), ApplicableFunction = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), SettlementPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), SettlementPartDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), ErpSparePartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), ErpSparePartName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), PartType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), QADCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), SupplierCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), SupplierName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), ProductLine = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), PerCarNum = table.Column(type: "decimal(18,2)", maxLength: 50, nullable: false), Price = table.Column(type: "decimal(18,2)", maxLength: 50, nullable: false), SupplyProportion = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), QuantityPrice = table.Column(type: "decimal(18,2)", maxLength: 50, nullable: false), ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), CreationTime = table.Column(type: "datetime2", nullable: false), CreatorId = table.Column(type: "uniqueidentifier", nullable: true), LastModificationTime = table.Column(type: "datetime2", nullable: true), LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), DeleterId = table.Column(type: "uniqueidentifier", nullable: true), DeletionTime = table.Column(type: "datetime2", nullable: true), BranchId = table.Column(type: "uniqueidentifier", nullable: false), Enabled = table.Column(type: "bit", nullable: false), Remark = table.Column(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"); } } }