using Microsoft.EntityFrameworkCore.Migrations;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace Minecraft_Realms_Emulator.Migrations
{
///
public partial class Initial : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Worlds",
columns: table => new
{
Id = table.Column(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
RemoteSubscriptionId = table.Column(type: "text", nullable: true),
Owner = table.Column(type: "text", nullable: true),
OwnerUUID = table.Column(type: "text", nullable: true),
Name = table.Column(type: "text", nullable: true),
Motd = table.Column(type: "text", nullable: true),
State = table.Column(type: "text", nullable: false),
DaysLeft = table.Column(type: "integer", nullable: false),
Expired = table.Column(type: "boolean", nullable: false),
ExpiredTrial = table.Column(type: "boolean", nullable: false),
WorldType = table.Column(type: "text", nullable: false),
Players = table.Column(type: "text[]", nullable: false),
MaxPlayers = table.Column(type: "integer", nullable: false),
MinigameName = table.Column(type: "text", nullable: true),
MinigameId = table.Column(type: "integer", nullable: true),
MinigameImage = table.Column(type: "text", nullable: true),
ActiveSlot = table.Column(type: "integer", nullable: false),
Slots = table.Column(type: "text[]", nullable: false),
Member = table.Column(type: "boolean", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Worlds", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Worlds");
}
}
}