refactor(bootstrap): migrate default decks to seed file
Extracts /deck/info's default_deck_list into seeds/default-decks.json via the new extract-default-decks.ps1 PowerShell script and imports through DefaultDeckImporter. The importer carries the same orphan- card-id warning the old GlobalsImporter path emitted; production cards yield 0 orphans. WarnOrphans stays inside GlobalsImporter for now — SpotCards/ReprintedCards/UnlimitedRestrictions/LoadingExclusionCards still use it until Task 9. Part of the bootstrap seed refactor (Task 6).
This commit is contained in:
13
SVSim.Bootstrap/Models/Seed/DefaultDeckSeed.cs
Normal file
13
SVSim.Bootstrap/Models/Seed/DefaultDeckSeed.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SVSim.Bootstrap.Models.Seed;
|
||||
|
||||
public sealed class DefaultDeckSeed
|
||||
{
|
||||
[JsonPropertyName("id")] public int Id { get; set; }
|
||||
[JsonPropertyName("class_id")] public int ClassId { get; set; }
|
||||
[JsonPropertyName("sleeve_id")] public long SleeveId { get; set; }
|
||||
[JsonPropertyName("leader_skin_id")] public int LeaderSkinId { get; set; }
|
||||
[JsonPropertyName("deck_name")] public string DeckName { get; set; } = "";
|
||||
[JsonPropertyName("card_id_array")] public List<long> CardIdArray { get; set; } = new();
|
||||
}
|
||||
Reference in New Issue
Block a user