A reusable permission template for business staff: a named bundle of BusinessPermission flags plus a home layout, defined per business and assignable to many staff members. Editing a role updates the effective permissions of everyone who holds it (live RBAC, not a one-time copy).
Fields
idID!businessBusiness!urlResourceUrl!Canonical staff-admin page for this role. Consume instead of building paths from the id.
nameString!descriptionStringpermissionsInt!Combined bitmask of BusinessPermission flags this role grants.
homeBusinessHomeLayout!defaultActivityRoleStringDefault role to fill when a member holding this role is assigned to an activity or session (e.g. "instructor", "host"), or null when unset. Folds the former per-staff default activity role into the role itself.
builtInBoolean!True when this role was seeded from a built-in preset (e.g. Instructor).
staffCountInt!Number of active (non-deleted) staff members assigned this role.
staff[StaffMember!]!Active (non-deleted) staff members assigned this role, ordered by name.
createdAtDateTime!