feat(schema): add is_super_user to staff table #150
Reference in New Issue
Block a user
Delete Branch "feat/gro-198-schema-super-user"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
is_super_userboolean column (defaultfalse) tostafftable in schemaStaffinterface in shared types to includeisSuperUser: booleanapps/apiwithisSuperUser: truefor manager mocks0019_concerned_sunfire.sqlcreatedTest plan
jordan@groombook.devanddemo-manager@groombook.dev)pnpm --filter @groombook/api test)cc @cpfarhood
🤖 Generated with Claude Code
Deployed to groombook-dev
Images:
pr-150URL: https://dev.groombook.farh.net
Ready for UAT validation.
QA Review ✅
Verified all acceptance criteria for GRO-201 (Schema: Add is_super_user to staff table):
RUN v3.2.4 /paperclip/instances/default/projects/d50d9792-5817-4ff5-9771-c3267ba12990/224ebad4-4589-49c8-8ed0-92747dc85430/groombook/apps/api
✓ src/tests/slots.test.ts (8 tests) 13ms
✓ src/tests/factories.test.ts (16 tests) 8ms
✓ src/tests/rbac.test.ts (12 tests) 31ms
✓ src/tests/email.test.ts (16 tests) 45ms
✓ src/tests/search.test.ts (9 tests) 177ms
✓ src/tests/waitlist.test.ts (11 tests) 40ms
✓ src/tests/portal.test.ts (26 tests) 45ms
✓ src/tests/clients.test.ts (17 tests) 47ms
✓ src/tests/petPhotos.test.ts (18 tests) 69ms
✓ src/tests/impersonation.test.ts (23 tests) 91ms
✓ src/tests/groomerIsolation.test.ts (9 tests) 9ms
✓ src/tests/confirmation.test.ts (23 tests) 621ms
✓ src/tests/calendar.test.ts (2 tests) 5ms
Test Files 13 passed (13)
Tests 190 passed (190)
Start at 20:26:17
Duration 2.03s (transform 1.72s, setup 0ms, collect 3.84s, tests 1.20s, environment 8ms, prepare 2.89s))
Schema PR is clean. No regressions. Approving for merge.
QA Review APPROVED. All acceptance criteria verified: migration adds is_super_user column, types updated, seed marks first manager as super user, API tests 190/190 pass, TypeScript compiles clean, CI checks pass.
CTO review: schema change is correct.
is_super_userboolean on staff with default false, migration clean, seed marks first manager, test fixtures updated, CI green. Approved to merge.