diff options
Diffstat (limited to 'src/DevHive.Data/Models/User.cs')
| -rw-r--r-- | src/DevHive.Data/Models/User.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/DevHive.Data/Models/User.cs b/src/DevHive.Data/Models/User.cs index 8f66b35..da18c2f 100644 --- a/src/DevHive.Data/Models/User.cs +++ b/src/DevHive.Data/Models/User.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using DevHive.Data.Interfaces.Models; +using DevHive.Data.RelationModels; using Microsoft.AspNetCore.Identity; namespace DevHive.Data.Models @@ -15,20 +16,13 @@ namespace DevHive.Data.Models public string ProfilePictureUrl { get; set; } - /// <summary> - /// Languages that the user uses or is familiar with - /// </summary> - // [Unique] public HashSet<Language> Languages { get; set; } = new(); - /// <summary> - /// Technologies that the user uses or is familiar with - /// </summary> public HashSet<Technology> Technologies { get; set; } = new(); public HashSet<Role> Roles { get; set; } = new(); - public HashSet<User> Friends { get; set; } = new(); + public HashSet<UserFriends> Friends { get; set; } = new(); public HashSet<Post> Posts { get; set; } = new(); |
