Initial commit
This commit is contained in:
commit
63ee71a19b
123 files changed
+11268
No files matched your search
@@ -0,0 +1,14 @@
|
||||
using System.Collections.Frozen;
|
||||
|
||||
namespace OnlyPrompt.Backend.Database
|
||||
{
|
||||
public static class ModelConstants
|
||||
{
|
||||
public const int MaxSlugLength = 100;
|
||||
public const string UserRole = "user";
|
||||
public const string AdminRole = "admin";
|
||||
public const string SysAdminRole = "sys-admin";
|
||||
|
||||
public static readonly FrozenSet<string> AllRoles = FrozenSet.Create(StringComparer.OrdinalIgnoreCase, UserRole, AdminRole, SysAdminRole);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user