refactor chat delivery to graphql + hatchet services

This commit is contained in:
Ruslan Bakiev
2026-03-08 18:55:58 +07:00
parent fe4bd59248
commit 7d1bed0d67
61 changed files with 5007 additions and 5004 deletions

View File

@@ -2,19 +2,18 @@
## Single source of truth
- Canonical Prisma schema: `frontend/prisma/schema.prisma`.
- Service copies:
- `omni_chat/prisma/schema.prisma`
- `omni_outbound/prisma/schema.prisma`
- Canonical Prisma schema: `Frontend/prisma/schema.prisma`.
- Service copy:
- `backend/prisma/schema.prisma`
## Update flow
1. Edit only `frontend/prisma/schema.prisma`.
1. Edit only `Frontend/prisma/schema.prisma`.
2. Run `./scripts/prisma-sync.sh`.
3. Run `./scripts/prisma-check.sh`.
4. Commit changed schema copies.
4. Commit changed schema copy.
## Rollout policy
- Schema rollout (`prisma db push` / migrations) is allowed only in `frontend`.
- `omni_chat` and `omni_outbound` must use generated Prisma client only.
- Schema rollout (`prisma db push` / migrations) is allowed only in `Frontend`.
- `backend` must use generated Prisma client only.