using OmsorgCore.Domain.Common;
using OmsorgCore.Domain.Enums;

namespace OmsorgCore.Domain.Entities;

/// <summary>
/// Standard-Recht einer Rolle für ein Modul/eine Aktion.
/// </summary>
public class RolePermission : Entity
{
    public Guid RoleId { get; set; }
    public Role Role { get; set; } = null!;

    public ModuleType Module { get; set; }
    public PermissionAction Action { get; set; }
    public PermissionScope Scope { get; set; }
}
