using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace RadicadeServer.Migrations { public partial class AddRoomBans : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "RoomBans", columns: table => new { BanId = table.Column(type: "bigint", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), roomId = table.Column(type: "bigint", nullable: false), actorId = table.Column(type: "bigint", nullable: false), bannedPlayerId = table.Column(type: "bigint", nullable: false), bannedByName = table.Column(type: "nvarchar(max)", nullable: false), reason = table.Column(type: "nvarchar(max)", nullable: false), bannedAt = table.Column(type: "datetime2", nullable: false), expiresAt = table.Column(type: "datetime2", nullable: true) }, constraints: table => { table.PrimaryKey("PK_RoomBans", x => x.BanId); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "RoomBans"); } } }