add migration to make client pair UIDs PK

This commit is contained in:
Stanley Dimant 2022-07-13 02:43:24 +02:00
parent e70f564162
commit 4a83a7dba0
5 changed files with 328 additions and 15 deletions

View file

@ -4,8 +4,11 @@ namespace MareSynchronosServer.Models
{
public class ClientPair
{
public int Id { get; set; }
[MaxLength(10)]
public string UserUID { get; set; }
public User User { get; set; }
[MaxLength(10)]
public string OtherUserUID { get; set; }
public User OtherUser { get; set; }
public bool IsPaused { get; set; }
public bool AllowReceivingMessages { get; set; } = false;