[CHANGE] Reworked entities and contexts

This commit is contained in:
max
2025-08-18 00:46:40 +02:00
parent a62eeb727a
commit f784000393
18 changed files with 23 additions and 78 deletions

View File

@@ -0,0 +1,29 @@
using System.ComponentModel.DataAnnotations;
namespace Manager.Data.Entities.LibraryContext;
public class MediaFormatEntity
{
[MaxLength(DataConstants.DbContext.DefaultDbStringSize)]
public required string MediaId { get; set; }
public required int Itag { get; set; }
[MaxLength(DataConstants.DbContext.DefaultDbStringSize)]
public string? Quality { get; set; }
public bool IsAdaptive { get; set; }
[MaxLength(DataConstants.DbContext.DefaultDbStringSize)]
public string? MimeType { get; set; }
public long Bitrate { get; set; }
public long AverageBitrate { get; set; }
public long LastModifiedUnixEpoch { get; set; }
public long ContentLengthBytes { get; set; }
public long ApproxDurationMs { get; set; }
public int? Width { get; set; }
public int? Height { get; set; }
public double? Framerate { get; set; }
[MaxLength(DataConstants.DbContext.DefaultDbStringSize)]
public string? QualityLabel { get; set; }
public int? AudioChannels { get; set; }
[MaxLength(DataConstants.DbContext.DefaultDbStringSize)]
public string? AudioSampleRate { get; set; }
public double? LoudnessDb { get; set; }
}