Added additional voice work update logic.

This commit is contained in:
2025-10-11 17:28:39 -04:00
parent db0c3349a2
commit 278b6df650
38 changed files with 56745 additions and 64 deletions

View File

@@ -20,7 +20,7 @@ public class VoiceWork
public bool? IsValid { get; set; }
public DateTime? LastScannedDate { get; set; }
public byte Status { get; set; }
public byte SubtitleLanguage { get; set; }
public byte SubtitleLanguage { get; set; } // TO BE DEPRECATED
public bool HasChobit { get; set; }
public bool IsPurchased { get; set; }
public int? WishlistCount { get; set; }
@@ -36,8 +36,9 @@ public class VoiceWork
//public int? VoiceWorkSearchId { get; set; }
//public VoiceWorkSearch? VoiceWorkSearch { get; set; }
public virtual ICollection<VoiceWorkTag> VoiceWorkTags { get; set; } = [];
public virtual ICollection<VoiceWorkCreator> VoiceWorkCreators { get; set; } = [];
public virtual ICollection<VoiceWorkTag> Tags { get; set; } = [];
public virtual ICollection<VoiceWorkCreator> Creators { get; set; } = [];
public virtual ICollection<EnglishVoiceWork> EnglishVoiceWorks { get; set; } = [];
public virtual ICollection<VoiceWorkSupportedLanguage> SupportedLanguages { get; set; } = [];
public virtual ICollection<VoiceWorkLocalization> Localizations { get; set; } = [];
}

View File

@@ -0,0 +1,10 @@
namespace JSMR.Domain.Entities;
public sealed class VoiceWorkSupportedLanguage
{
public int VoiceWorkSupportedLanguageId { get; set; }
public int VoiceWorkId { get; set; }
public string Language { get; set; } = null!;
public VoiceWork VoiceWork { get; set; } = null!;
}