From 43336a1e977f33ad49ad8b4851ca449936f93ce6 Mon Sep 17 00:00:00 2001 From: Danail Dimitrov Date: Wed, 7 Apr 2021 19:30:04 +0300 Subject: adding functionality to add and remove friends --- src/Data/DevHive.Data.Models/Friendship.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/Data/DevHive.Data.Models/Friendship.cs (limited to 'src/Data/DevHive.Data.Models') 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; } + } +} -- cgit v1.2.3