Schema view
Database › Schema draws the project's tables and the foreign keys between them as a diagram (an entity-relationship diagram). Use it to understand an app an assistant built for you, or to check a migration did what you expected.
What it shows
- Every table in the
publicschema, with its columns and types. - Primary keys.
- Foreign keys as lines between tables.
Pan and zoom to move around; drag tables to rearrange them.
From an agent or the API
- MCP:
describe_schemareturns tables, columns, types, keys and policies in one call. Agents should call it before writing queries or migrations. - API:
GET /api/projects/:name/db/schema.
Related
- Table editor to change structure interactively.
- Migrations to version structure changes.
Was this page helpful?