Architektur: Craftvia-Domänenmodell, Verträge und Team-Schnitte

- Migration 0002_craftvia_domain: 27 Fachtabellen inkl. RLS (enable_tenant_rls)
- TENANT_MODELS (db.ts, backup/topology.ts) um alle Fachmodelle ergänzt
- moduleGuard liefert DB-autoritative Rechte; ServiceCtx für Domänen-Services
- Verträge: Statusmaschine, Events, Nummernkreise, Sichtbarkeits-Scopes,
  Job-Queues + Worker, KI-Provider-Interfaces, Sync-Envelope
- docs/craftvia/ARCHITEKTUR.md mit Lanes, Ownership und DoD

Gate: tsc, lint, build, 22/22 Tests grün.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-14 11:49:21 +02:00
co-authored by Claude Opus 5
parent 1701db0a62
commit bf4456718e
21 changed files with 2670 additions and 12 deletions
+2 -1
View File
@@ -13,7 +13,8 @@
"gate": "prisma generate && tsc --noEmit && npm run lint && npm run build && npm run test",
"worker:mail": "tsx scripts/mail-worker.ts",
"worker:backup": "tsx scripts/backup-worker.ts",
"brand:icons": "tsx scripts/generate-brand-icons.ts"
"brand:icons": "tsx scripts/generate-brand-icons.ts",
"worker:craftvia": "tsx scripts/craftvia-worker.ts"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.115.0",