aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/RelationModels/UserFriends.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-30 18:45:18 +0200
committertranstrike <transtrike@gmail.com>2021-01-30 18:45:18 +0200
commit866a5a15b8b722bc78d065f73adc0c465f264f55 (patch)
tree93e6514e9717f42e9323cc5ebd17261c14eb2748 /src/DevHive.Data/RelationModels/UserFriends.cs
parentdde27f48caf455f9b342d68b0a4a5c95f302b9f7 (diff)
downloadDevHive-866a5a15b8b722bc78d065f73adc0c465f264f55.tar
DevHive-866a5a15b8b722bc78d065f73adc0c465f264f55.tar.gz
DevHive-866a5a15b8b722bc78d065f73adc0c465f264f55.zip
IDFK
Diffstat (limited to 'src/DevHive.Data/RelationModels/UserFriends.cs')
-rw-r--r--src/DevHive.Data/RelationModels/UserFriends.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/DevHive.Data/RelationModels/UserFriends.cs b/src/DevHive.Data/RelationModels/UserFriends.cs
index aad3083..dec366d 100644
--- a/src/DevHive.Data/RelationModels/UserFriends.cs
+++ b/src/DevHive.Data/RelationModels/UserFriends.cs
@@ -1,13 +1,16 @@
using System;
+using System.ComponentModel.DataAnnotations;
using DevHive.Data.Models;
namespace DevHive.Data.RelationModels
{
public class UserFriends
{
+ [Key]
public Guid UserId { get; set; }
public User User { get; set; }
+ [Key]
public Guid FriendId { get; set; }
public User Friend { get; set; }
}