feat(dal): заготовка для хранения истории
This commit is contained in:
19
PARR.DAL/Models/ParrComponent.cs
Normal file
19
PARR.DAL/Models/ParrComponent.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user