Drag tables to move · Drag background to pan · Scroll to zoom
Using Database Designer
Design tables and relationships in the visual workspace, or import supported SQL and DBML. Save an editable JSON project before sharing SQL or a diagram.
SQL and DBML support is a documented subset, not a live database connection or migration service. Review generated DDL before applying it. Browser drafts and named local copies are separate from downloaded backups.
Hand off a two-table schema with its editable source
projects: id (integer, primary key), name (text)
tasks: id (integer, primary key), project_id (integer), title (text)
Relationship: tasks.project_id references projects.id
Build this authored planning schema using Add table and the column inspector. Set each id as a primary key and use compatible integer types for project_id and its referenced column.
Create a relationship with tasks as the child and projects as the parent. Review deletion/update behavior deliberately; a line on the canvas is not a decision about how records should be deleted.
Open Schema checks and inspect the SQL preview for the selected PostgreSQL, MySQL or SQLite dialect. Resolve reported issues and read the generated DDL before considering it for a real database.
Save an editable JSON project first. Export SQL for DDL review, an SVG/PNG for discussion, or the Markdown data dictionary for field descriptions; these have different handoff purposes.
If comparing a revised JSON project, read removed/added objects carefully. Structural comparison does not establish a safe migration or infer a rename.
Original schema blueprint, not a generated SQL file or executed database. SQL/DBML support is bounded; text imports regenerate positions and internal IDs, while JSON retains the editable project. Browser copies/checkpoints are not external backups. Use SQL Formatter for a separate formatting task; it does not validate or apply this schema.
Choose an ER diagram or database schema handoff
Project JSON: keep an editable copy of your tables, relationships and diagram layout.
SQL: choose PostgreSQL, MySQL or SQLite before exporting DDL. The same field type can map differently in each dialect.
DBML: exchange the supported schema subset; use JSON when preserving the workspace layout matters.
SVG or PNG: share a visual ER diagram. The Markdown data dictionary documents fields and relationships separately.
Database Designer questions
Can I import SQL and update my live database?
You can import supported table definitions for planning. The tool does not connect to a database, execute SQL or apply migrations. Review generated DDL, constraints and unsupported syntax in your own database workflow.
Is a saved browser project a backup?
Browser drafts, the local project library and restore checkpoints stay in browser storage and can be cleared or become unavailable. Download project JSON before a significant change; a diagram image cannot restore the editable schema.