[ADD] New entities for library db

This commit is contained in:
max
2025-08-16 16:46:56 +02:00
parent 3c3f2db4e7
commit f9aaf4267e
9 changed files with 133 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
namespace Manager.Data.Models.LibraryContext;
public class MediaEntity : DateTimeBase
{
public required string Id { get; set; }
public string? Title { get; set; }
public string? Description { get; set; }
public DateTime UploadDateUtc { get; set; }
public required string ChannelId { get; set; }
public List<MediaFormatEntity> Formats { get; set; } = [];
public List<CaptionEntity> Captions { get; set; } = [];
public MediaState State { get; set; } = MediaState.Online;
public bool IsDownloaded { get; set; }
public MediaProcessState ProcessState { get; set; } = MediaProcessState.ToDownload;
}
public enum MediaState
{
Online,
Offline,
Limited,
Removed
}
public enum MediaProcessState
{
ToDownload,
Downloaded,
ToRemove,
Removed,
Failed
}