Skip to main content

JSON Export

Export your schema as structured JSON for programmatic use — code generators, custom tools, or storing in version control.

Steps

  1. Click Export in the top-right of the ERD panel
  2. Select JSON
  3. Click Download or Copy to clipboard

JSON structure

The exported JSON contains:

  • tables — array of table definitions
  • enums — array of enum definitions
  • relationships — array of foreign key relationships

Use cases

  • Code generation — generate TypeScript types, ORM models, API schemas
  • Documentation — store schema as structured data
  • Custom tooling — build your own schema processors
  • Version control — diff schema changes over time