feat(dal): Applications добавлен уникальный ключ на поле Name

This commit is contained in:
Mikhail Kuznetsov
2024-02-05 16:02:15 +10:00
parent 3d20db4284
commit 745183fc71
4 changed files with 2926 additions and 2 deletions

View File

@@ -1,10 +1,12 @@
using PARR.DAL.Models.Base;
using Microsoft.EntityFrameworkCore;
using PARR.DAL.Models.Base;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PARR.DAL.Models
{
[Table("Applications")]
[Index(nameof(Name), IsUnique = true)]
public class Application : IBase
{
[Key]