Departments — Production Guide
Licensing
- Catalog slug:
departments - Category:
hr(sort70), modulesort_order = 71(catalog seeder15within HR) - Free Marketplace opt-in (
is_default_included = false,is_billable = false) - No hard module dependencies (works with Users alone; Employees tagging is optional)
Bootstrap
- Run migration
2026_08_02_215615_create_departments_table(createsdepartments,department_user,department_employee) - Register module via
register_departments_module(DefaultModuleRegistrar) — do not auto-install - Grant permissions via
add_departments_permissions(TenantPermissionSynchronizer) - Deploy frontend HR nav (Departments)
Deploy checklist
- Migrate schema + catalog + permissions (migrate-only; no
db:seedin production) - Confirm
module:departments+departments.*on admin/manager/staff maps - Smoke: Marketplace enable Departments → create department with manager → attach members → open Performance tab
- Playwright:
test:e2e:departments
Go-live
- Confirm Leads/Tasks modules separately if you expect performance aggregates
- Keep legacy
employees.departmentstring until a later cleanup migration