Update to dotnet 9.0, add user roles, MatchStats and OpenApi/Scalar in dev
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
@@ -14,6 +15,14 @@ namespace LaDOSE.Entity
|
||||
public string Password { get; set; }
|
||||
public byte[] PasswordHash { get; set; }
|
||||
public byte[] PasswordSalt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Rows of the <c>applicationuserrole</c> join table for this user. Only populated
|
||||
/// when the query asks for it — see UserService, which includes it (and the role
|
||||
/// itself) everywhere the role matters; authorization reads this on every request.
|
||||
/// Prefer the <see cref="Roles.Names"/> / <see cref="Roles.IsAdmin"/> helpers.
|
||||
/// </summary>
|
||||
public List<ApplicationUserRole> UserRoles { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user