namespace SolutionErp.Domain.Identity;

public class Permission
{
    public Guid Id { get; set; } = Guid.NewGuid();
    public Guid RoleId { get; set; }
    public string MenuKey { get; set; } = string.Empty;
    public bool CanRead { get; set; }
    public bool CanCreate { get; set; }
    public bool CanUpdate { get; set; }
    public bool CanDelete { get; set; }

    public Role? Role { get; set; }
    public MenuItem? Menu { get; set; }
}
