chore(prisma): enforce frontend-owned schema rollout policy

This commit is contained in:
Ruslan Bakiev
2026-02-22 15:15:58 +07:00
parent 11c0baa78d
commit 25a5e83f95
5 changed files with 106 additions and 0 deletions

20
docs/prisma-governance.md Normal file
View File

@@ -0,0 +1,20 @@
# 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.