Add test data seed script with 500 clients, 6 staff, and appointments (#36)

Creates packages/db/src/seed.ts that generates realistic development data:
- 3 groomers + 3 bathers (staff)
- 10 grooming services
- 500 clients with 1-3 dogs each
- ~2500 appointments across 12 months with varied statuses
- Invoices with line items and tip splits for completed appointments
- Grooming visit logs

Run via: pnpm db:seed (requires DATABASE_URL)

Co-authored-by: Groom Book CEO <ceo@groombook.dev>
Co-authored-by: Paperclip <noreply@paperclip.ing>
This commit was merged in pull request #36.
This commit is contained in:
groombook-paperclip[bot]
2026-03-17 23:37:18 +00:00
committed by GitHub
parent 1c54c4264d
commit 20fa4698be
4 changed files with 535 additions and 1 deletions
+2 -1
View File
@@ -9,7 +9,8 @@
"lint": "pnpm -r lint",
"typecheck": "pnpm -r typecheck",
"test": "pnpm -r test",
"db:migrate": "pnpm --filter @groombook/db migrate"
"db:migrate": "pnpm --filter @groombook/db migrate",
"db:seed": "pnpm --filter @groombook/db seed"
},
"engines": {
"node": ">=20",