namespace MemberCenter.Domain.Entities;

public sealed class AuthResource
{
    public Guid Id { get; set; }
    public string Name { get; set; } = string.Empty;
    public string Audience { get; set; } = string.Empty;
    public string? Description { get; set; }
    public bool RequireTenant { get; set; }
    public bool AllowDelegatedToken { get; set; }
    public bool IsEnabled { get; set; } = true;
    public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
    public DateTimeOffset UpdatedAt { get; set; } = DateTimeOffset.UtcNow;

    public List<AuthResourceScope> Scopes { get; set; } = new();
}
