#region ========================================================================= USING =====================================================================================
using Lumina.Domain.SharedKernel.Common.Enums.Authorization;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Application.Common.DataAccess.Entities.Authorization;
///
/// Data Transfer Object containing all the authorization info of a user.
///
[DebuggerDisplay("UserId: {UserId}")]
public class UserAuthorizationEntity
{
///
/// Gets the Id of the user.
///
public required Guid UserId { get; init; }
///
/// Gets the role associated to the user.
///
public required string? Role { get; init; }
///
/// Gets the collection of permissions associated to the user.
///
public required IReadOnlySet Permissions { get; init; }
}