Major refactor and cleanup.

This commit is contained in:
2025-11-13 04:05:35 +00:00
parent 1d67081792
commit 8f6d334af4
833 changed files with 86800 additions and 74355 deletions

View File

@@ -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; }
}