mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Major refactor and cleanup.
This commit is contained in:
@@ -26,38 +26,37 @@
|
||||
using System;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
|
||||
namespace Marechai.Database.Models
|
||||
namespace Marechai.Database.Models;
|
||||
|
||||
public class ApplicationRole : IdentityRole
|
||||
{
|
||||
public class ApplicationRole : IdentityRole
|
||||
public const string RoleUberAdmin = "UberAdmin";
|
||||
public const string RoleWriter = "Writer";
|
||||
public const string RoleProofreader = "Proofreader";
|
||||
public const string RoleTranslator = "Translator";
|
||||
public const string RoleSuperTranslator = "SuperTranslator";
|
||||
public const string RoleCollaborator = "Collaborator";
|
||||
public const string RoleCurator = "Curator";
|
||||
public const string RolePhysicalCurator = "PhysicalCurator";
|
||||
public const string RoleTechnician = "Technician";
|
||||
public const string RoleSuperTechnician = "SuperTechnician";
|
||||
public const string RoleAdmin = "Administrator";
|
||||
public const string RoleNone = "NormalUser";
|
||||
|
||||
public ApplicationRole() => Created = DateTime.UtcNow;
|
||||
|
||||
public ApplicationRole(string name) : base(name)
|
||||
{
|
||||
public const string ROLE_UBERADMIN = "UberAdmin";
|
||||
public const string ROLE_WRITER = "Writer";
|
||||
public const string ROLE_PROOFREADER = "Proofreader";
|
||||
public const string ROLE_TRANSLATOR = "Translator";
|
||||
public const string ROLE_SUPERTRANSLATOR = "SuperTranslator";
|
||||
public const string ROLE_COLLABORATOR = "Collaborator";
|
||||
public const string ROLE_CURATOR = "Curator";
|
||||
public const string ROLE_PHYSICALCURATOR = "PhysicalCurator";
|
||||
public const string ROLE_TECHNICIAN = "Technician";
|
||||
public const string ROLE_SUPERTECHNICIAN = "SuperTechnician";
|
||||
public const string ROLE_ADMIN = "Administrator";
|
||||
public const string ROLE_NONE = "NormalUser";
|
||||
|
||||
public ApplicationRole() => Created = DateTime.UtcNow;
|
||||
|
||||
public ApplicationRole(string name) : base(name)
|
||||
{
|
||||
Description = name;
|
||||
Created = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
public ApplicationRole(string name, string description) : base(name)
|
||||
{
|
||||
Description = description;
|
||||
Created = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
public string Description { get; set; }
|
||||
public DateTime Created { get; set; }
|
||||
Description = name;
|
||||
Created = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
public ApplicationRole(string name, string description) : base(name)
|
||||
{
|
||||
Description = description;
|
||||
Created = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
public string Description { get; set; }
|
||||
public DateTime Created { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user