JoyTools Logo

Database ER Diagram Builder

100% Client-Side Private — Zero Server Uploads

Design database schemas visually — add tables, define columns, set foreign keys. Export PostgreSQL, MySQL, SQLite DDL scripts. 100% client-side, no account required.

Tables (2)

Relations (1)

posts.user_idusers.id
PKColumn NameTypeNULL

How do I use Database ER Diagram Builder?

1

Click Add Table to create a new database table.

2

Select a table from the panel to edit its columns.

3

Add columns with the + Add Column button and set their type (INT, VARCHAR, BOOLEAN, etc.).

4

Mark primary keys with the key icon and set nullable/not-null constraints.

5

Select your SQL dialect (PostgreSQL, MySQL, SQLite) and click Copy SQL DDL.

What features does Database ER Diagram Builder offer?

Visual table builder with 23 column types (INTEGER, VARCHAR, UUID, JSONB, TIMESTAMPTZ...)

SQL DDL export for PostgreSQL, MySQL/MariaDB, and SQLite

Foreign key relationships with CASCADE, SET NULL, RESTRICT rules

Primary key, NOT NULL, UNIQUE constraints per column

100% client-side — no account, no cloud storage required

Frequently Asked Questions about Database ER Diagram Builder

Which SQL databases are supported for DDL export?

PostgreSQL, MySQL/MariaDB, and SQLite. Each dialect uses correct type mappings (e.g., SERIAL → AUTO_INCREMENT for MySQL, INTEGER for SQLite), proper quoting, and syntax differences.

Are my database schemas saved?

Schemas are held in browser memory during your session. Export the SQL DDL script to save your work — you can re-import it into any database tool or paste it directly into your migration files.

Does this tool support foreign keys?

Yes. Foreign key relationships between tables are defined in the schema and exported as FOREIGN KEY ... REFERENCES constraints in the SQL DDL for PostgreSQL and MySQL.

How is this different from DrawDB or dbdiagram.io?

No account or signup needed — open the tool and start designing immediately. DrawDB and dbdiagram.io require registration before saving schemas. Everything runs locally in your browser; no data is sent to any server.