20 lines
480 B
C#
20 lines
480 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using PARR.Constants;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace PARR.DAL.Models
|
|
{
|
|
[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; }
|
|
}
|
|
}
|