fronted: login
This commit is contained in:
@@ -1,17 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace back.DataModels;
|
||||
|
||||
[Tags("Roles")]
|
||||
public class RoleModel
|
||||
{
|
||||
public RoleModel() { }
|
||||
|
||||
[Key]
|
||||
public string Id { get; set; }
|
||||
[Required, MaxLength(100)]
|
||||
public string Name { get; set; }
|
||||
[MaxLength(250)]
|
||||
public string Description { get; set; }
|
||||
[ForeignKey("PermissionId")]
|
||||
public List<PermissionModel> Permissions { get; set; }
|
||||
[ForeignKey("RoleId")]
|
||||
public RoleModel? BaseRoleModel { get; set; }
|
||||
|
||||
public RoleModel(string id, string name, string description, List<PermissionModel>? permissions = null, RoleModel? baseRoleModel = null)
|
||||
|
Reference in New Issue
Block a user