No description
Per Blueprint v4.0 §12 canonical data models: - Business Engine: organizations extended (legal_name, country, registry_id, domain, external_ids), transactions (minor-unit amounts, evidence_status), documents (metadata only -- binary/OCR stays in Paperless via paperless_id) - Life Engine: goals (horizon/metric/target/milestones) - Intelligence Engine: decisions (context/options/assumptions/evidence), opportunities, ai_requests (context_manifest_hash for audit without storing sensitive payload content in Postgres) - Trust Engine: observations (generic subject_type/subject_id so any entity -- user, org, device -- can feed reputation/trust scores) Applied directly to Supabase staging Postgres (14 tables total now). This is also the first drizzle/ migration actually committed -- the earlier one from the Identity Engine work never made it into git. |
||
|---|---|---|
| drizzle | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| Dockerfile | ||
| drizzle.config.ts | ||
| nest-cli.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
ceo-api
NestJS API pentru CEO-OS. Se conecteaza la Supabase (Postgres/Auth) si Redis, deployat prin Coolify pe proiectul CEO-OS.
Dezvoltare
npm install
cp .env.example .env
npm run start:dev
GET /health returneaza statusul serviciului. GET /docs expune Swagger UI.
Stack
NestJS, Drizzle ORM (src/db), Supabase Admin SDK (src/supabase), BullMQ/Redis, class-validator/Zod, Helmet, rate limiting (Throttler), logging Pino.
Migratii
npm run db:generate
npm run db:migrate