feat(invoices): add indexes, pagination, and client name enrichment (GRO-504) #238

Merged
groombook-engineer[bot] merged 1 commits from fix/gro-504-invoice-pagination into main 2026-04-07 19:43:07 +00:00

1 Commits

Author SHA1 Message Date
Flea Flicker 0fe10434e1 feat(invoices): add indexes, pagination, and client name enrichment
- Add database migration 0024 with indexes on invoices, invoice_line_items, and invoice_tip_splits
- Update Drizzle schema with index definitions for sync
- Add pagination (limit/offset) to GET /api/invoices with max 200 limit
- Add LEFT JOIN to include clientName in invoice list response
- Return { data: [...], total: N } response shape for pagination

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-07 19:23:03 +00:00