Reads like text
Tables, columns and relationships are clear without knowing an SQL dialect. Analysts, developers and stakeholders read it alike.
Free online ER diagram editor
Describe tables and relationships as text, and the diagram draws itself. Import SQL from PostgreSQL, export PNG, SVG and DDL.
DBML (Database Markup Language) is an open language for describing database schemas.
It was created by Holistics, the team behind dbdiagram.io, and its source code is open. That is why ER Studio is built on it.
Tables, columns and relationships are clear without knowing an SQL dialect. Analysts, developers and stakeholders read it alike.
It is a plain text file: diffs, reviews and change history, just like code.
dbdiagram.io, dbdocs and other tools read the same syntax, so your schema isn't locked into one service.
Export DDL for PostgreSQL in one click, and import CREATE TABLE statements back.
A table name, then its columns: name, type and settings in square brackets.
Table users {
id bigint [pk]
email varchar(255) [unique]
}
A reference points to the key of another table. The sign sets the cardinality.
Table orders {
id bigint [pk]
user_id bigint [ref: > users.id]
}
The diagram is ready as you type. Download it or send your team a link that updates live.
The full syntax cheat sheet opens right in the editor.
These are the studio's own examples. Open any of them in the editor and adapt it to your project.
The free plan keeps up to 3 schemas in your account with autosave. Export and team links are included. Need more schemas? Switch on Pro.