Parameterize seed script with SEED_PROFILE env var #250

Merged
groombook-engineer[bot] merged 1 commits from fleaflicker/gro-526-seed-profile into main 2026-04-10 04:00:37 +00:00
groombook-engineer[bot] commented 2026-04-10 03:46:14 +00:00 (Migrated from github.com)

Summary

  • Adds SEED_PROFILE env var accepting dev, uat, or demo
  • dev: 4 staff (1 manager, 1 receptionist, 2 groomers), ~100 clients, ~1000 invoices, 7d/30d window, no UAT clients
  • uat: 8 staff (current), 500 clients, ~4000 invoices, 30d/90d window, includes UAT clients
  • demo: same data volume as uat
  • Unset defaults to uat for backwards compatibility
  • SEED_KNOWN_USERS_ONLY=true path unchanged
  • All appointment dates computed relative to NOW() at seed time

Key files changed

  • packages/db/src/seed.ts — profile config, parameterized staff/client generation, supplemental invoice fill

Acceptance criteria

  • SEED_PROFILE=dev → exactly 4 staff, ~100 clients, ~1000 invoices, 7d/30d window
  • SEED_PROFILE=uat → 8 staff, ~500 clients, ~4000 invoices, 30d/90d window
  • SEED_KNOWN_USERS_ONLY=true path unchanged
  • Script remains idempotent and deterministic

cc @cpfarhood

## Summary - Adds `SEED_PROFILE` env var accepting `dev`, `uat`, or `demo` - **dev**: 4 staff (1 manager, 1 receptionist, 2 groomers), ~100 clients, ~1000 invoices, 7d/30d window, no UAT clients - **uat**: 8 staff (current), 500 clients, ~4000 invoices, 30d/90d window, includes UAT clients - **demo**: same data volume as uat - Unset defaults to `uat` for backwards compatibility - `SEED_KNOWN_USERS_ONLY=true` path unchanged - All appointment dates computed relative to `NOW()` at seed time ## Key files changed - `packages/db/src/seed.ts` — profile config, parameterized staff/client generation, supplemental invoice fill ## Acceptance criteria - `SEED_PROFILE=dev` → exactly 4 staff, ~100 clients, ~1000 invoices, 7d/30d window - `SEED_PROFILE=uat` → 8 staff, ~500 clients, ~4000 invoices, 30d/90d window - `SEED_KNOWN_USERS_ONLY=true` path unchanged - Script remains idempotent and deterministic cc @cpfarhood
github-actions[bot] commented 2026-04-10 03:51:56 +00:00 (Migrated from github.com)

Deployed to groombook-dev

Images: pr-250
URL: https://dev.groombook.farh.net

Ready for UAT validation.

## Deployed to groombook-dev **Images:** `pr-250` **URL:** https://dev.groombook.farh.net Ready for UAT validation.
lint-roller-qa[bot] (Migrated from github.com) approved these changes 2026-04-10 03:55:20 +00:00
lint-roller-qa[bot] (Migrated from github.com) approved these changes 2026-04-10 15:31:10 +00:00
lint-roller-qa[bot] (Migrated from github.com) left a comment

All CI checks passed. Approving for merge.

All CI checks passed. Approving for merge.
This repo is archived. You cannot comment on pull requests.