32 lines
709 B
C#
32 lines
709 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
|
using TrueCV.Domain.Enums;
|
||
|
|
|
||
|
|
namespace TrueCV.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!;
|
||
|
|
}
|