namespace SolutionErp.Domain.Identity;

public class MenuItem
{
    public string Key { get; set; } = string.Empty;           // PK, PascalCase
    public string Label { get; set; } = string.Empty;         // Tiếng Việt display
    public string? ParentKey { get; set; }                    // NULL nếu root
    public int Order { get; set; }
    public string? Icon { get; set; }                         // lucide-react icon name

    public MenuItem? Parent { get; set; }
    public List<MenuItem> Children { get; set; } = new();
    public List<Permission> Permissions { get; set; } = new();
}
