feat(bp): add ViewerBattlePassProgressEntry + ViewerBattlePassClaimEntry
This commit is contained in:
17
SVSim.Database/Models/ViewerBattlePassClaimEntry.cs
Normal file
17
SVSim.Database/Models/ViewerBattlePassClaimEntry.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using SVSim.Database.Common;
|
||||
using SVSim.Database.Enums;
|
||||
|
||||
namespace SVSim.Database.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Per-claim record. Presence of a row = is_received: true on the wire reward.
|
||||
/// Unique on (ViewerId, SeasonId, Track, Level).
|
||||
/// </summary>
|
||||
public class ViewerBattlePassClaimEntry : BaseEntity<long>
|
||||
{
|
||||
public long ViewerId { get; set; }
|
||||
public int SeasonId { get; set; }
|
||||
public BattlePassTrack Track { get; set; }
|
||||
public int Level { get; set; }
|
||||
public DateTimeOffset ClaimedAt { get; set; }
|
||||
}
|
||||
18
SVSim.Database/Models/ViewerBattlePassProgressEntry.cs
Normal file
18
SVSim.Database/Models/ViewerBattlePassProgressEntry.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using SVSim.Database.Common;
|
||||
|
||||
namespace SVSim.Database.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Per-viewer-per-season progress: gauge total, premium flag, weekly cap bucket.
|
||||
/// Lazy-created on first /battle_pass/info read. Unique on (ViewerId, SeasonId) per
|
||||
/// memory project_owned_collection_unique_index.
|
||||
/// </summary>
|
||||
public class ViewerBattlePassProgressEntry : BaseEntity<long>
|
||||
{
|
||||
public long ViewerId { get; set; }
|
||||
public int SeasonId { get; set; }
|
||||
public int CurrentPoint { get; set; }
|
||||
public bool IsPremium { get; set; }
|
||||
public int WeeklyPoints { get; set; }
|
||||
public DateTimeOffset? WeeklyPeriodStart { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user