using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SVSim.Database.Migrations
{
///
public partial class PracticeOpponents : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "PracticeOpponents",
columns: table => new
{
Id = table.Column(type: "integer", nullable: false),
PracticeId = table.Column(type: "integer", nullable: false),
TextId = table.Column(type: "text", nullable: false),
ClassId = table.Column(type: "integer", nullable: false),
CharaId = table.Column(type: "integer", nullable: false),
DegreeId = table.Column(type: "integer", nullable: false),
AiDeckLevel = table.Column(type: "integer", nullable: false),
AiLogicLevel = table.Column(type: "integer", nullable: false),
AiMaxLife = table.Column(type: "integer", nullable: false),
Battle3dFieldId = table.Column(type: "text", nullable: false),
IsMaintenance = table.Column(type: "boolean", nullable: false),
IsCampaignPractice = 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_PracticeOpponents", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PracticeOpponents");
}
}
}