fix(presi): wire up db:push for presi schema via @mana/api

The presi module's schema was defined inline in routes.ts but had no
working db:push mechanism — the old references to @presi/server and
@presi/backend no longer exist after consolidation. Extracts schema
into its own file, adds a dedicated drizzle config, and updates the
setup script so tables are actually created.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-04-12 14:32:44 +02:00
parent 474ba93d70
commit a9c51517eb
7 changed files with 104 additions and 75 deletions

View file

@ -9,7 +9,8 @@
"start": "bun run dist/index.js",
"type-check": "tsc --noEmit",
"db:generate": "drizzle-kit generate",
"db:push": "drizzle-kit push"
"db:push": "drizzle-kit push",
"db:push:presi": "drizzle-kit push --config=drizzle.presi.config.ts"
},
"dependencies": {
"@ai-sdk/openai-compatible": "^2.0.41",