Click the ↗ icon beside a field to add a relationship · Select relationship lines to edit · Drag to move · Scroll to zoom
Using ER Diagram & Schema Studio
Create tables and keys, connect relationships and review the schema before exporting. Use JSON for an editable backup and choose the supported SQL dialect or diagram format for sharing.
SQL and DBML imports support strict subsets, not arbitrary database scripts. This tool does not connect to or execute SQL on a database. New junction-table foreign keys use cascading deletes; review generated SQL. Browser project storage is best effort and separate from Database Designer.
Choose an editable ER schema or a database handoff
Project JSON: preserve the supported schema and workspace for continuing in this tool.
SQL: choose PostgreSQL, MySQL or SQLite and review the generated DDL and relationship actions.
DBML: exchange the supported schema subset rather than an arbitrary full database program.
Diagrams and documentation: share the model for review, keeping editable JSON separately.
Practice: review a parent-child relationship
Create fictional tables named projects and tasks with primary keys.
Add a project reference to tasks and connect the relationship.
Review key types and delete/update behavior, then save JSON before exporting SQL or a visual handoff.
This is an authored schema plan, not executed SQL or a verified database migration.
ER schema questions
Will importing SQL connect to or modify my database?
No. Imports accept strict supported SQL/DBML subsets for modeling. They do not connect to a server or execute scripts. Review generated SQL with the target database's requirements before using it elsewhere.
Why should I review generated junction-table foreign keys?
New junction-table foreign keys use cascading deletes in this model. Confirm that behavior fits your data-retention rules; a diagram does not establish a safe migration or permission to delete real records.