diff options
| author | Danail Dimitrov <danaildimitrov321@gmail.com> | 2021-04-07 19:30:04 +0300 |
|---|---|---|
| committer | Danail Dimitrov <danaildimitrov321@gmail.com> | 2021-04-07 19:30:04 +0300 |
| commit | 43336a1e977f33ad49ad8b4851ca449936f93ce6 (patch) | |
| tree | c5170bebb63d1e57bef891905e0c2839766b8a08 /src/Data/DevHive.Data.Models/Friendship.cs | |
| parent | b8d1edfc582bee2ef648757bcad1bbadd075bb08 (diff) | |
| download | DevHive-43336a1e977f33ad49ad8b4851ca449936f93ce6.tar DevHive-43336a1e977f33ad49ad8b4851ca449936f93ce6.tar.gz DevHive-43336a1e977f33ad49ad8b4851ca449936f93ce6.zip | |
adding functionality to add and remove friends
Diffstat (limited to 'src/Data/DevHive.Data.Models/Friendship.cs')
| -rw-r--r-- | src/Data/DevHive.Data.Models/Friendship.cs | 17 |
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; } + } +} |
