Skip to main content

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 public schema, 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_schema returns 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.
Was this page helpful?