namespace SolutionErp.Domain.Identity;

public static class AppRoles
{
    public const string Admin = "Admin";
    public const string Drafter = "Drafter";
    public const string DeptManager = "DeptManager";
    public const string ProjectManager = "ProjectManager";
    public const string Procurement = "Procurement";
    public const string CostControl = "CostControl";
    public const string Finance = "Finance";
    public const string Accounting = "Accounting";
    public const string Equipment = "Equipment";
    public const string Director = "Director";
    public const string AuthorizedSigner = "AuthorizedSigner";
    public const string HrAdmin = "HrAdmin";

    // [Plan CA S29 2026-05-22] Role mới — quản lý danh mục dùng chung
    // (Suppliers/Projects/Departments/Catalogs) sau khi move FE từ admin → eoffice.
    // Admin tạo role gán user nào cần CRUD danh mục; role-based access control.
    public const string CatalogManager = "CatalogManager";

    public static readonly string[] All = [
        Admin, Drafter, DeptManager, ProjectManager,
        Procurement, CostControl, Finance, Accounting, Equipment,
        Director, AuthorizedSigner, HrAdmin,
        CatalogManager,
    ];
}
