27 lines
738 B
C#
27 lines
738 B
C#
using W542.GandalfReborn.Data.Entities.App;
|
|
using W542.GandalfReborn.Data.Entities.Base;
|
|
using W542.GandalfReborn.Data.Entities.Tenant;
|
|
|
|
namespace W542.GandalfReborn.Data.Entities.Security;
|
|
|
|
public class AuthorityEntity : IdData
|
|
{
|
|
public required string Name { get; set; }
|
|
|
|
public required AuthorityType Type { get; set; }
|
|
|
|
[ContentKey] public string? Description { get; set; }
|
|
|
|
public HashSet<TenantSubjectRelationEntity>? TenantSubjectRelations { get; set; } = [];
|
|
public HashSet<AppSubjectRelationEntity>? AppSubjectRelations { get; set; } = [];
|
|
}
|
|
|
|
public static class TenantAuthority
|
|
{
|
|
public const string Read = "Tenant_Read";
|
|
}
|
|
|
|
public static class AppAuthority
|
|
{
|
|
public const string Read = "App_Read";
|
|
} |