using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace BHServer.Migrations
{
///
public partial class Initial : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "AssaultTroop",
columns: table => new
{
Id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
ATId = table.Column(type: "integer", nullable: false),
Name = table.Column(type: "text", nullable: false),
Faction = table.Column(type: "integer", nullable: false),
Type = table.Column(type: "integer", nullable: false),
Province = table.Column(type: "integer", nullable: false),
Orders = table.Column(type: "text", nullable: false),
Owner = table.Column(type: "integer", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_AssaultTroop", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Province",
columns: table => new
{
Id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
ProvinceId = table.Column(type: "integer", nullable: false),
Name = table.Column(type: "text", nullable: false),
Faction = table.Column(type: "integer", nullable: false),
Multiplier = table.Column(type: "integer", nullable: false),
ATs = table.Column(type: "text", nullable: false),
State = table.Column(type: "integer", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Province", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "AssaultTroop");
migrationBuilder.DropTable(
name: "Province");
}
}
}