Getting ready to seed more data

This commit is contained in:
gamer147
2026-05-23 15:47:23 -04:00
parent 631e42289a
commit 5f44ee0c7e
74 changed files with 499 additions and 50 deletions

View File

@@ -1,19 +1,25 @@
using MessagePack;
using SVSim.Database.Models;
using System.Text.Json.Serialization;
namespace SVSim.EmulatedEntrypoint.Models.Dtos;
[MessagePackObject]
public class UserLeaderSkin
{
[JsonPropertyName("leader_skin_id")]
[Key("leader_skin_id")]
public int Id { get; set; }
[JsonPropertyName("leader_skin_name")]
[Key("leader_skin_name")]
public string Name { get; set; } = string.Empty;
[JsonPropertyName("class_id")]
[Key("class_id")]
public int ClassId { get; set; }
[JsonPropertyName("emote_id")]
[Key("emote_id")]
public int EmoteId { get; set; }
[JsonPropertyName("is_owned")]
[Key("is_owned")]
public bool IsOwned { get; set; }
@@ -21,7 +27,7 @@ public class UserLeaderSkin
{
this.Id = leaderSkin.Id;
this.Name = leaderSkin.Name;
// Class is nullable BaseDataSeeder maps CSV class_chara_id=0 to null. Fall back to
// Class is nullable 窶・BaseDataSeeder maps CSV class_chara_id=0 to null. Fall back to
// the FK column (also nullable) and finally 0 for class-agnostic skins.
this.ClassId = leaderSkin.Class?.Id ?? leaderSkin.ClassId ?? 0;
this.EmoteId = leaderSkin.EmoteId;