feat(viewer): add FreePackClaims owned collection for daily-free quota tracking

This commit is contained in:
gamer147
2026-06-08 21:34:20 -04:00
parent d762c5766f
commit 7d7cf699f8
6 changed files with 4306 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
using Microsoft.EntityFrameworkCore;
namespace SVSim.Database.Models;
/// <summary>
/// One row per (viewer, free_gacha_campaign_id). Counts claims and remembers when the last one
/// landed so the controller can gate the daily quota. Owned collection on <see cref="Viewer"/>.
/// </summary>
[Owned]
public class ViewerFreePackClaim
{
public int FreeGachaCampaignId { get; set; }
public int ClaimCount { get; set; }
public DateTime LastClaimedAt { get; set; }
}