// SVSim.Database/Models/ArenaTwoPickReward.cs using Microsoft.EntityFrameworkCore; using SVSim.Database.Enums; namespace SVSim.Database.Models; /// /// One row of the Take Two run-end reward table. Multiple rows per /// (e.g. 1 ticket + N rupies = 2 rows). Seeded by ArenaTwoPickRewardImporter from /// SVSim.Bootstrap/Data/seeds/arena-two-pick-rewards.json. /// [Index(nameof(WinCount))] [Index(nameof(WinCount), nameof(RewardGroup), nameof(RewardType), nameof(RewardId), nameof(RewardNum), IsUnique = true)] public class ArenaTwoPickReward { public long Id { get; set; } /// 0..MaxWins. Run ends at LossCount==2 or WinCount==MAX(WinCount). public int WinCount { get; set; } /// /// Groups rows into independent pick buckets. At finish/retire time one row is /// weighted-picked per group. Default 0 keeps legacy rows in a single group. /// public int RewardGroup { get; set; } /// /// Relative probability weight for this row within its . /// Weight == 0 rows are excluded from picking. Default 1. /// public int Weight { get; set; } = 1; /// on the wire (e.g. Item=4, Rupy=9). public UserGoodsType RewardType { get; set; } /// Item id for Item; 0 for currencies. public long RewardId { get; set; } /// Count (e.g. ticket quantity or rupy amount). 0 = "no reward" outcome. public int RewardNum { get; set; } }