aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Models/User.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-21 22:13:16 +0200
committertranstrike <transtrike@gmail.com>2021-01-21 22:13:16 +0200
commit13a2ceda912f961a232c87236f1b29aa29bb6160 (patch)
tree59f8d2bf63b03bacc76f98114d2aed78e420ddcd /src/DevHive.Data/Models/User.cs
parenta47ea20ab91017da53437f750ed8e0f939f5cdba (diff)
parentbda98b96433d7a9952524fab4ec65f96998b55de (diff)
downloadDevHive-13a2ceda912f961a232c87236f1b29aa29bb6160.tar
DevHive-13a2ceda912f961a232c87236f1b29aa29bb6160.tar.gz
DevHive-13a2ceda912f961a232c87236f1b29aa29bb6160.zip
Merge branch 'refactor_user_updating' into dev
Diffstat (limited to 'src/DevHive.Data/Models/User.cs')
-rw-r--r--src/DevHive.Data/Models/User.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/DevHive.Data/Models/User.cs b/src/DevHive.Data/Models/User.cs
index 64e138f..2ac7adf 100644
--- a/src/DevHive.Data/Models/User.cs
+++ b/src/DevHive.Data/Models/User.cs
@@ -18,15 +18,16 @@ namespace DevHive.Data.Models
/// <summary>
/// Languages that the user uses or is familiar with
/// </summary>
- public IList<Language> Languages { get; set; }
+ // [Unique]
+ public HashSet<Language> Languages { get; set; }
/// <summary>
/// Technologies that the user uses or is familiar with
/// </summary>
- public IList<Technology> Technologies { get; set; }
+ public HashSet<Technology> Technologies { get; set; } = new HashSet<Technology>();
- public IList<Role> Roles { get; set; } = new List<Role>();
+ public HashSet<Role> Roles { get; set; } = new HashSet<Role>();
- public IList<User> Friends { get; set; } = new List<User>();
+ public HashSet<User> Friends { get; set; } = new HashSet<User>();
}
}