Enhance documentation with new features: added dark/light/system theme support, instructions page, and application catalog. Updated API and domain model for app management and automatic migrations on startup. Improved frontend structure with new routes and features for user instructions and app management.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using PnvPanel.Application.Common.Models;
|
||||
|
||||
namespace PnvPanel.Infrastructure.Identity;
|
||||
|
||||
/// <summary>Роль с квотой на число конфигов. У пользователя ровно одна роль.</summary>
|
||||
public class AppRole : IdentityRole<Guid>
|
||||
{
|
||||
public const int UnlimitedMaxConfigs = RoleQuota.Unlimited;
|
||||
|
||||
public int MaxConfigs { get; set; }
|
||||
public bool IsSystem { get; set; }
|
||||
|
||||
public AppRole()
|
||||
{
|
||||
}
|
||||
|
||||
public AppRole(string name) : base(name)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user