namespace Db.Models;

/// <summary>
/// Represents metadata for a video, such as title, duration, resolution, etc.
/// So we dont need to load the video file to get this information.
/// </summary>
public class VideoMetadata
{
    // Disable warning as Id is required but not set in the constructor.
    // This is to ensure that the Id is set by the database when the entity is added
#pragma warning disable CS8618
    public string Id { get; set; }
#pragma warning restore CS8618

    public required string Title { get; set; }
    public TimeSpan Duration { get; set; }
    public int Width { get; set; }
    public int Height { get; set; }
    public Video? Video { get; set; }
}