feat(db): AddArenaTwoPick migration (rewards + viewer-run tables)

Register ArenaTwoPickRewards and ViewerArenaTwoPickRuns DbSets in SVSimDbContext and generate the AddArenaTwoPick migration with both CreateTable calls, all four jsonb columns on the run table, and the correct indexes (WinCount scalar + unique WinCount/RewardType/RewardId on rewards; unique ViewerId on runs).
This commit is contained in:
gamer147
2026-05-31 10:20:37 -04:00
parent 1dbc5fa831
commit 5faa5e2445
4 changed files with 4237 additions and 0 deletions

View File

@@ -101,6 +101,9 @@ public class SVSimDbContext : DbContext
public DbSet<ViewerClaimedTutorialGift> ViewerClaimedTutorialGifts => Set<ViewerClaimedTutorialGift>();
public DbSet<ArenaTwoPickReward> ArenaTwoPickRewards { get; set; } = null!;
public DbSet<ViewerArenaTwoPickRun> ViewerArenaTwoPickRuns { get; set; } = null!;
#endregion
public override async Task<int> SaveChangesAsync(CancellationToken cancellationToken = default)