Files
SVSimServer/SVSim.Database/Migrations/20260524022437_PracticeOpponents.cs
2026-05-23 22:46:11 -04:00

47 lines
2.0 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SVSim.Database.Migrations
{
/// <inheritdoc />
public partial class PracticeOpponents : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "PracticeOpponents",
columns: table => new
{
Id = table.Column<int>(type: "integer", nullable: false),
PracticeId = table.Column<int>(type: "integer", nullable: false),
TextId = table.Column<string>(type: "text", nullable: false),
ClassId = table.Column<int>(type: "integer", nullable: false),
CharaId = table.Column<int>(type: "integer", nullable: false),
DegreeId = table.Column<int>(type: "integer", nullable: false),
AiDeckLevel = table.Column<int>(type: "integer", nullable: false),
AiLogicLevel = table.Column<int>(type: "integer", nullable: false),
AiMaxLife = table.Column<int>(type: "integer", nullable: false),
Battle3dFieldId = table.Column<string>(type: "text", nullable: false),
IsMaintenance = table.Column<bool>(type: "boolean", nullable: false),
IsCampaignPractice = table.Column<bool>(type: "boolean", nullable: false),
DateCreated = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
DateUpdated = table.Column<DateTime>(type: "timestamp with time zone", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_PracticeOpponents", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PracticeOpponents");
}
}
}