Added configurations for entity builders. Also added VoiceWorkLocaalization entity.
This commit is contained in:
@@ -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; } = [];
|
||||
}
|
||||
@@ -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; } = [];
|
||||
}
|
||||
@@ -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; } = [];
|
||||
}
|
||||
13
JSMR.Domain/Entities/VoiceWorkLocalization.cs
Normal file
13
JSMR.Domain/Entities/VoiceWorkLocalization.cs
Normal 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!;
|
||||
}
|
||||
Reference in New Issue
Block a user