using Microsoft.EntityFrameworkCore.Migrations; namespace ChaosBot.Migrations { public partial class LodestoneCharacter : Migration { private const string Table = "LodestoneCharacter"; protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: Table, columns: table => new { LodestoneId = table.Column(nullable: false), DiscordUserId = table.Column(nullable: false), DiscordGuildId = table.Column(nullable: false), Name = table.Column(nullable: false), Avatar = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_CharacterAndGuild", x => new {x.DiscordGuildId, x.LodestoneId}); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable(Table); } } }