feat(bp): season + reward importers, idempotent + authoritative-per-season
This commit is contained in:
15
SVSim.Bootstrap/Models/Seed/BattlePassRewardSeed.cs
Normal file
15
SVSim.Bootstrap/Models/Seed/BattlePassRewardSeed.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.Bootstrap.Models.Seed;
|
||||
|
||||
/// <summary>Mirrors a single entry in <c>seeds/battle-pass-rewards.json</c>.</summary>
|
||||
public sealed class BattlePassRewardSeed
|
||||
{
|
||||
[JsonPropertyName("season_id")] public int SeasonId { get; set; }
|
||||
[JsonPropertyName("track")] public string Track { get; set; } = ""; // "normal" / "premium"
|
||||
[JsonPropertyName("level")] public int Level { get; set; }
|
||||
[JsonPropertyName("reward_type")] public int RewardType { get; set; }
|
||||
[JsonPropertyName("reward_detail_id")] public long RewardDetailId { get; set; }
|
||||
[JsonPropertyName("reward_number")] public int RewardNumber { get; set; }
|
||||
[JsonPropertyName("is_appeal_exclusion")] public bool IsAppealExclusion { get; set; }
|
||||
}
|
||||
16
SVSim.Bootstrap/Models/Seed/BattlePassSeasonSeed.cs
Normal file
16
SVSim.Bootstrap/Models/Seed/BattlePassSeasonSeed.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.Bootstrap.Models.Seed;
|
||||
|
||||
/// <summary>Mirrors a single entry in <c>seeds/battle-pass-seasons.json</c>.</summary>
|
||||
public sealed class BattlePassSeasonSeed
|
||||
{
|
||||
[JsonPropertyName("id")] public int Id { get; set; }
|
||||
[JsonPropertyName("name")] public string Name { get; set; } = "";
|
||||
[JsonPropertyName("max_level")] public int MaxLevel { get; set; }
|
||||
[JsonPropertyName("start_date")] public string StartDate { get; set; } = "";
|
||||
[JsonPropertyName("end_date")] public string EndDate { get; set; } = "";
|
||||
[JsonPropertyName("can_purchase")] public bool CanPurchase { get; set; }
|
||||
[JsonPropertyName("price_crystal")] public int PriceCrystal { get; set; }
|
||||
[JsonPropertyName("description")] public string Description { get; set; } = "";
|
||||
}
|
||||
Reference in New Issue
Block a user