aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/Models/User.cs
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2020-12-17 11:21:14 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2020-12-17 11:21:14 +0200
commit5811d878180a85af5c41b9cb3b8f272d589539e9 (patch)
tree16c27c0c797f004d20634e29d1752c994386537d /src/DevHive.Data/Models/User.cs
parentedf40b339c999c936d0e022100d67c853cd1b792 (diff)
downloadDevHive-5811d878180a85af5c41b9cb3b8f272d589539e9.tar
DevHive-5811d878180a85af5c41b9cb3b8f272d589539e9.tar.gz
DevHive-5811d878180a85af5c41b9cb3b8f272d589539e9.zip
Roles are now in a seperate table, user can contain multiple roles (BUT JWT doesn't support mutiple yet), added migrations, userrepository returns user roles with the user
Diffstat (limited to 'src/DevHive.Data/Models/User.cs')
-rw-r--r--src/DevHive.Data/Models/User.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DevHive.Data/Models/User.cs b/src/DevHive.Data/Models/User.cs
index a3731cb..ecd7af8 100644
--- a/src/DevHive.Data/Models/User.cs
+++ b/src/DevHive.Data/Models/User.cs
@@ -1,4 +1,5 @@
using System;
+using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.AspNetCore.Identity;
@@ -19,7 +20,7 @@ namespace DevHive.Data.Models
public string ProfilePicture { get; set; }
- public string Role { get; set; }
+ public virtual List<Role> Roles { get; set; }
//public List<User> Friends { get; set; }
}