using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using RadicadeServer.DB; namespace RadicadeServer.Migrations; [DbContext(typeof(RecDBContext))] [Migration("20261008120000_AddWeeklyChallenges")] public class AddWeeklyChallenges : Migration { protected override void Up(MigrationBuilder migrationBuilder) => migrationBuilder.CreateTable( name: "WeeklyChallenges", columns: table => new { PlayerId = table.Column(type: "bigint", nullable: false), ChallengeMapId = table.Column(type: "int", nullable: false), MapJson = table.Column(type: "nvarchar(max)", nullable: false), RewardGiftDropId = table.Column(type: "bigint", nullable: true) }, constraints: table => table.PrimaryKey("PK_WeeklyChallenges", x => new { x.PlayerId, x.ChallengeMapId })); protected override void Down(MigrationBuilder migrationBuilder) => migrationBuilder.DropTable("WeeklyChallenges"); }