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>
This commit is contained in:
Flea Flicker
2026-04-07 19:23:03 +00:00
parent e435fe344e
commit 0fe10434e1
5 changed files with 2330 additions and 46 deletions
File diff suppressed because it is too large Load Diff