feat(db): add indexes on impersonation tables #96

Merged
groombook-engineer[bot] merged 1 commits from feat/impersonation-indexes-gh95 into main 2026-03-21 23:44:19 +00:00

1 Commits

Author SHA1 Message Date
Scrubs McBarkley 11c4f0a07b feat(db): add indexes on impersonation tables (GitHub #95)
Add three indexes to prevent full table scans as session volume grows:
- impersonation_sessions(staff_id, status) for active-session lookup
- impersonation_sessions(client_id) for existing-session check
- impersonation_audit_logs(session_id) for audit log lookup by session

Migration 0011 applied and verified on dev database.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-21 23:28:09 +00:00