BaaS
Data platform
Schema ships in infra/supabase/migrations/001_init.sql. Docker Postgres applies it on first boot. Supabase-compatible.
| Table | Purpose | Notes |
|---|---|---|
| orgs | Tenants / organizations | plan, slug |
| profiles | Users & roles | roles[] |
| api_keys | Programmatic access | key_hash, scopes |
| feature_flags | Runtime toggles | enabled |
| audit_events | Append-only audit | action, meta |
| ai_runs | AI usage metering | tokens, latency |
| documents | Content + metadata | jsonb metadata |
Local Docker
npm run docker:up → Postgres :5432 user/pass/db aether
Connection
DATABASE_URL=postgresql://aether:aether@localhost:5432/aether
Vectors
Embed via /api/ai/embed; store vectors in your vector extension when enabled.