feat(dal): в таблице Hosts поле Ek сделано уникальным

This commit is contained in:
Mikhail Trubnikov
2024-06-05 08:15:12 +10:00
parent 4bb70e965f
commit 6d8fed793e
4 changed files with 2781 additions and 3 deletions

View File

@@ -6,7 +6,8 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace PARR.DAL.Models
{
[Table("Hosts")]
[Index(nameof(Ek), nameof(IP))]
[Index(nameof(IP))]
[Index(nameof(Ek), IsUnique = true)]
public class Host : IBase
{
[Key]