20 lines
488 B
C#
20 lines
488 B
C#
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; }
|
|
}
|
|
}
|