using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SVSim.Database.Migrations { /// public partial class AddStoryDeck : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "StoryDecks", columns: table => new { Id = table.Column(type: "integer", nullable: false), DeckNo = table.Column(type: "integer", nullable: false), Kind = table.Column(type: "integer", nullable: false), ClassId = table.Column(type: "integer", nullable: false), DeckName = table.Column(type: "text", nullable: false), SleeveId = table.Column(type: "integer", nullable: false), LeaderSkinId = table.Column(type: "integer", nullable: false), IsRecommend = table.Column(type: "integer", nullable: false), OrderNum = table.Column(type: "integer", nullable: false), EntryNo = table.Column(type: "integer", nullable: false), DeckFormat = table.Column(type: "integer", nullable: true), 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_StoryDecks", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "StoryDecks"); } } }