using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using RealCV.Domain.Enums;

namespace RealCV.Domain.Entities;

public class CVFlag
{
    [Key]
    public Guid Id { get; set; }

    public Guid CVCheckId { get; set; }

    public FlagCategory Category { get; set; }

    public FlagSeverity Severity { get; set; }

    [Required]
    [MaxLength(256)]
    public string Title { get; set; } = string.Empty;

    [Required]
    [MaxLength(2048)]
    public string Description { get; set; } = string.Empty;

    public int ScoreImpact { get; set; }

    // Navigation property
    [ForeignKey(nameof(CVCheckId))]
    public CVCheck CVCheck { get; set; } = null!;
}
