using Microsoft.EntityFrameworkCore;
using PARR.Domain.Enums;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PARR.Domain.Entities
{
    [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; }
    }
}
