21 lines
544 B
Markdown
21 lines
544 B
Markdown
# Prisma governance
|
|
|
|
## Single source of truth
|
|
|
|
- Canonical Prisma schema: `frontend/prisma/schema.prisma`.
|
|
- Service copies:
|
|
- `omni_chat/prisma/schema.prisma`
|
|
- `omni_outbound/prisma/schema.prisma`
|
|
|
|
## Update flow
|
|
|
|
1. Edit only `frontend/prisma/schema.prisma`.
|
|
2. Run `./scripts/prisma-sync.sh`.
|
|
3. Run `./scripts/prisma-check.sh`.
|
|
4. Commit changed schema copies.
|
|
|
|
## Rollout policy
|
|
|
|
- Schema rollout (`prisma db push` / migrations) is allowed only in `frontend`.
|
|
- `omni_chat` and `omni_outbound` must use generated Prisma client only.
|