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(type: "uniqueidentifier", nullable: false), Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), Index = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), Model = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), PartType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), SettleMentPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), MaterialPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), MaterialDesc = 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), UsedNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), SupplyProportion = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), Buyer = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), Price = table.Column(type: "decimal(18,2)", nullable: false), SettlementPrice = table.Column(type: "decimal(18,2)", nullable: false), DiffPrice = table.Column(type: "decimal(18,2)", nullable: false), SettlementNumber = table.Column(type: "decimal(18,2)", nullable: false), TheoreticalSettlementNumber = table.Column(type: "decimal(18,2)", nullable: false), RealSettlementNumber = table.Column(type: "decimal(18,2)", nullable: false), RealSettlementPrice = table.Column(type: "decimal(18,2)", nullable: false), IsDiffNumber = table.Column(type: "bit", nullable: false), DiffAmount = table.Column(type: "decimal(18,2)", nullable: false), Remark = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, 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) }, constraints: table => { table.PrimaryKey("PK_Set_SecMatchBase", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Set_SecMatchBase"); } } }