using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SVSim.Database.Migrations { /// public partial class AddItemPurchaseCatalog : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "ItemPurchaseCatalog", columns: table => new { Id = table.Column(type: "integer", nullable: false), RequireItemType = table.Column(type: "integer", nullable: false), RequireItemId = table.Column(type: "bigint", nullable: false), RequireItemNum = table.Column(type: "integer", nullable: false), PurchaseItemType = table.Column(type: "integer", nullable: false), PurchaseItemId = table.Column(type: "bigint", nullable: false), PurchaseItemNum = table.Column(type: "integer", nullable: false), PurchaseName = table.Column(type: "text", nullable: false), IsMonthlyReset = table.Column(type: "boolean", nullable: false), PurchaseLimit = table.Column(type: "integer", nullable: false), IsEnabled = table.Column(type: "boolean", nullable: false), DateCreated = table.Column(type: "timestamp with time zone", nullable: false), DateUpdated = table.Column(type: "timestamp with time zone", nullable: true) }, constraints: table => { table.PrimaryKey("PK_ItemPurchaseCatalog", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "ItemPurchaseCatalog"); } } }