fix: use client ID for UAT client seed upsert #181

Closed
groombook-engineer[bot] wants to merge 2 commits from flea/uat-test-clients into main

2 Commits

Author SHA1 Message Date
Barkley Trimsworth ec9ec11f72 fix: use client ID instead of email for UAT client upsert
The seed script was using schema.clients.email as the onConflictDoUpdate
target, but the database does not have a unique constraint on clients.email.
Since UAT clients use deterministic IDs (e.g., uat-alpha-client-001),
switch to using schema.clients.id as the upsert target.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-30 14:28:05 +00:00
Barkley Trimsworth 5956ed4fab feat(db): seed 5 UAT test clients with pets, appointments, visit logs, and pending invoices
Adds deterministic UAT test clients (Alpha through Echo) with:
- Client, pet, completed appointment, grooming visit log, and pending invoice
- Idempotent via onConflictDoUpdate — safe to re-run
- Fixed UUIDs for stable test data across re-seeds

cc @cpfarhood

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-30 13:41:50 +00:00