using System.ComponentModel.DataAnnotations;

namespace DramaLing.Api.Models.Entities;

public class FlashcardExampleImage
{
    public Guid FlashcardId { get; set; }
    public Guid ExampleImageId { get; set; }

    public int DisplayOrder { get; set; } = 1;
    public bool IsPrimary { get; set; } = false;

    [Range(0.0, 1.0)]
    public decimal? ContextRelevance { get; set; }

    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;

    // Navigation Properties
    public virtual Flashcard Flashcard { get; set; } = null!;
    public virtual ExampleImage ExampleImage { get; set; } = null!;
}