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, recognize shared stable-ID renames, but unrelated SQL/DBML imports cannot safely infer identity. A migration review is not a production migration.
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.
Schema reviews, diagram views and additive migration candidates
V4 supports reusable schema starter templates, typed column and table notes in version-2 editable JSON, and saved subject-area diagram views. A view filters visual exports only: full SQL and editable projects retain every table and relationship.
Capture a baseline before editing or compare an earlier JSON. The migration planner produces a review checklist and narrowly scoped additive SQL candidates, such as a nullable column or independent new table. It does not apply changes or guarantee safe rollback. Dangerous operations and nontrivial constraints are left for DBA review.
Delivery ZIPs contain actual generated SQL, DBML, SVG/PNG, editable JSON, a Markdown dictionary and an offline HTML guide. Target database versions, data volume, server privileges and production indexes remain unknown. Validate generated statements against your actual engine in staging.
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.