feat(dal): в таблице Hosts поле Ek сделано уникальным
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user