feat(viewer): add LastLoginBonusClaimedAt + LoginBonusStreak columns

Drops the unused daily_login_bonuses table in the same migration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-13 15:42:40 -04:00
parent f707fb2ffb
commit 107ee106a3
4 changed files with 4854 additions and 23 deletions

View File

@@ -33,6 +33,18 @@ public class Viewer : BaseEntity<long>
public DateTime LastLogin { get; set; }
/// <summary>
/// UTC instant of the most recent daily-login-bonus claim. Null = never claimed.
/// Compared against JST 02:00 day boundary via JstPeriod.DayKey to decide eligibility.
/// </summary>
public DateTime? LastLoginBonusClaimedAt { get; set; }
/// <summary>
/// 1-based position in the Normal login-bonus cycle. 0 = never claimed (first claim
/// will write 1). Wraps back to 1 after reaching cycle length (LoginBonusConfig.Normal.Count).
/// </summary>
public int LoginBonusStreak { get; set; }
/// <summary>BGType enum: 0=Deck, 1=CustomBG, 2=RandomBG. Default 0 = follow equipped deck's leader skin.</summary>
public int MyPageBgSelectType { get; set; }