Appearance
Quick Start
Get your first database diagram up in under a minute.
1. Open the editor
Go to app.erdhub.com. You can start immediately — no account required for local diagrams.
2. Write your schema
Type in the left editor panel using ERDHub's DSL syntax:
Table users {
id int [pk, increment]
username varchar(255) [not null, unique]
email varchar(255) [not null]
created_at timestamp [default: `now()`]
}
Table posts {
id int [pk, increment]
title varchar(255) [not null]
body text
user_id int [not null]
status post_status
}
Enum post_status {
draft
published
archived
}
Ref: posts.user_id > users.id3. See the diagram
The ERD canvas (center) updates in real time as you type. Tables appear as nodes with columns, and relationships are drawn as edges.
4. Export SQL
Click the dialect selector (top of the schema panel) to choose PostgreSQL, MySQL, SQL Server, or SQLite. Then export the generated DDL.
5. Save & collaborate
Sign in to save your project to the cloud. Share with a link or invite collaborators to edit together in real time.
Next steps
- DSL Reference — full syntax guide
- SQL Dialects — dialect-specific details
- Collaboration — real-time editing features