2026-01-18 19:20:50 +01:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2026-01-22 20:47:55 +00:00
|
|
|
using RealCV.Domain.Enums;
|
2026-01-18 19:20:50 +01:00
|
|
|
|
2026-01-22 20:47:55 +00:00
|
|
|
namespace RealCV.Domain.Entities;
|
2026-01-18 19:20:50 +01:00
|
|
|
|
|
|
|
|
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!;
|
|
|
|
|
}
|