2024-10-07 15:08:46 +10:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2026-04-13 16:58:30 +10:00
|
|
|
|
using PARR.Domain.Enums;
|
2024-10-07 15:08:46 +10:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
2026-04-30 10:35:31 +10:00
|
|
|
|
namespace PARR.Domain.Entities
|
2024-10-07 15:08:46 +10:00
|
|
|
|
{
|
|
|
|
|
|
[Table("ParrComponents")]
|
|
|
|
|
|
[Index(nameof(Name), IsUnique = true)]
|
|
|
|
|
|
public class ParrComponent
|
|
|
|
|
|
{
|
|
|
|
|
|
[Key]
|
|
|
|
|
|
public ParrComponentsEnum Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string Description { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|