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; } }