aboutsummaryrefslogtreecommitdiff
path: root/src/Data/DevHive.Data.Models
diff options
context:
space:
mode:
Diffstat (limited to 'src/Data/DevHive.Data.Models')
-rw-r--r--src/Data/DevHive.Data.Models/Friendship.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Data/DevHive.Data.Models/Friendship.cs b/src/Data/DevHive.Data.Models/Friendship.cs
new file mode 100644
index 0000000..91ac9c7
--- /dev/null
+++ b/src/Data/DevHive.Data.Models/Friendship.cs
@@ -0,0 +1,17 @@
+using System;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace DevHive.Data.Models
+{
+ //class for handling the many to many relationship betwen users and users for friends
+ public class Friendship
+ {
+ [NotMapped]
+ public Guid BaseUserId { get; set; }
+ [NotMapped]
+ public Guid FriendUserId { get; set; }
+
+ public User BaseUser { get; set; }
+ public User FriendUser { get; set; }
+ }
+}