27 lines
770 B
C#

using Suspectus.Gandalf.Palantir.Data.Entities.App;
using Suspectus.Gandalf.Palantir.Data.Entities.Base;
using Suspectus.Gandalf.Palantir.Data.Entities.Tenant;
namespace Suspectus.Gandalf.Palantir.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";
}