Tab · Build
Schema
See every table, column, and FK without opening a DB client. The database reference — every model, every column, every foreign key, every index, plus the migration that introduced each one and its ritual class.
See it in motion
Where to find it
- Localhost:
/schema.html?repo=<id> - On disk:
.claude/brain/schema.md - Keyboard: ⌘ K then
schema - Sidebar: Build → Schema
What it does for you
Walk the data model before you change it.Every model, column, index, FK, and migration in one page. Know what depends on what before you drop a column at 2am.
Migrations carry a ritual class.Each migration row says what kind of change it is (additive, destructive, backfill, rename) so the next agent knows what to expect when it runs.
No DB client required.The reference lives in markdown alongside the code. Edit the Prisma schema → update this file in the same PR.
Configure
Nothing — the file is hand-curated. The workflow is: edit prisma/schema.prisma → npx prisma migrate dev → update this doc → npm run sync-brain.
Use it well
Every schema change updates this file in the same PR. Group columns by purpose (identity, audit, FK). For each migration, log the ritual class so an agent six months from now knows whether the change was safe to run twice.