AGENTS.md (packages/db)
Prisma schema and generated client shared by the apps.
Commands
- Create a migration:
pnpm --filter @acme/db prisma migrate dev --name <change> - Regenerate the client:
pnpm --filter @acme/db prisma generate
Rules
- Never edit files in
prisma/migrations/after they are merged; add a new migration. - Additive changes first (new nullable column), then backfill, then make required in a later release.
- Review the generated SQL for table rewrites and locks before committing.
- After schema changes, run the API tests:
pnpm turbo run test --filter=@acme/api.