feat(viewer): add MyPageBgSelectType + MyPageBgId scalars + MyPageBgRotation owned collection
Adds BGType persistence (0=Deck/1=CustomBG/2=RandomBG) to Viewer via two scalar columns and an owned collection keyed (ViewerId, Slot). Two persistence tests confirm round-trip and zero-defaults on fresh viewers. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -33,6 +33,12 @@ public class Viewer : BaseEntity<long>
|
||||
|
||||
public DateTime LastLogin { 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; }
|
||||
|
||||
/// <summary>The single chosen MyPageBG cosmetic id, used when SelectType=CustomBG. 0 = none.</summary>
|
||||
public int MyPageBgId { get; set; }
|
||||
|
||||
#region Owned
|
||||
|
||||
public ViewerInfo Info { get; set; } = new ViewerInfo();
|
||||
@@ -67,6 +73,8 @@ public class Viewer : BaseEntity<long>
|
||||
|
||||
public List<ViewerFreePackClaim> FreePackClaims { get; set; } = new List<ViewerFreePackClaim>();
|
||||
|
||||
public List<MyPageBgRotationEntry> MyPageBgRotation { get; set; } = new List<MyPageBgRotationEntry>();
|
||||
|
||||
public List<ViewerGachaPointBalance> GachaPointBalances { get; set; } = new List<ViewerGachaPointBalance>();
|
||||
|
||||
public List<ViewerGachaPointReceived> GachaPointReceived { get; set; } = new List<ViewerGachaPointReceived>();
|
||||
|
||||
Reference in New Issue
Block a user