Added configurations for entity builders. Also added VoiceWorkLocaalization entity.

This commit is contained in:
2025-08-27 00:16:10 -04:00
parent d2201d6f9b
commit 22b8513e34
16 changed files with 299 additions and 0 deletions

View File

@@ -8,4 +8,6 @@ public class Circle
public bool Blacklisted { get; set; }
public bool Favorite { get; set; }
public bool Spam { get; set; }
public virtual ICollection<VoiceWork> VoiceWorks { get; set; } = [];
}

View File

@@ -9,4 +9,6 @@ public class Series
public required string Name { get; set; }
public required string Identifier { get; set; }
public virtual ICollection<VoiceWork> VoiceWorks { get; set; } = [];
}

View File

@@ -39,4 +39,5 @@ public class VoiceWork
public virtual ICollection<VoiceWorkTag> VoiceWorkTags { get; set; } = [];
public virtual ICollection<VoiceWorkCreator> VoiceWorkCreators { get; set; } = [];
public virtual ICollection<EnglishVoiceWork> EnglishVoiceWorks { get; set; } = [];
public virtual ICollection<VoiceWorkLocalization> Localizations { get; set; } = [];
}

View File

@@ -0,0 +1,13 @@
namespace JSMR.Domain.Entities;
public sealed class VoiceWorkLocalization
{
public int VoiceWorkLocalizationId { get; set; }
public int VoiceWorkId { get; set; }
public string Language { get; set; } = null!; // "ja-JP", "en", etc.
public string? ProductName { get; set; }
public string? Description { get; set; }
public bool IsOfficial { get; set; }
public VoiceWork VoiceWork { get; set; } = null!;
}