SQL Visual Schema (ERD)
Visual Schema draws an entity-relationship diagram of a SQL database. One click lays out every table with its foreign-key relations. You can rearrange and edit tables on the canvas, read or edit the whole diagram as DBML text that stays in step with the cards, review every relation in one list, and Materialize the result to a live database after previewing the exact DDL.
Generate builds the diagram from every table in the database. Tables are placed on the canvas and each foreign key is drawn as a line labelled with its constraint name, with 1 and N marking each end.
The Tables panel on the left lists every table, with a tick on the ones already on the canvas. Search it, refresh it, Ctrl+Click to select several tables, or click Create Table to add a new one. Opening Visual Schema from a table's context menu brings that table onto the canvas for you.
Each table is a card, and the relation lines follow the cards as you move them.
Save & Export saves the diagram and exports it as a PNG (color or black and white), an SVG, a standalone HTML file, CREATE TABLE statements, or JSON. Rename the diagram in the header, and use the window button to open it in a separate window.
The DBML tab in the right panel shows the whole diagram as DBML text. Every table, column, type and constraint is listed, and the header shows the table and reference counts. The text and the canvas stay in step: move or edit a card and the text updates; edit the text and the cards follow.
The Relations tab lists every relation in the diagram with a filter box and a count. Each entry shows the two tables, the columns involved, the cardinality (for example N-1) and the constraint name. Click an entry and the canvas frames that relation. Relations that point at a table that is no longer on the canvas, or at a hidden table, are flagged.
The Properties tab shows the details of the selected table and its columns.
Tabs move through two steps, shown in the header: Design and Materialize. Click Materialize and pick a target connection. VisuaLeaf runs a dry run first and shows the generated DDL for each table. Review it, then click Apply to Database. Nothing is written until you do. To materialize into two databases side by side, run a target in its own tab.
With a Visual Schema tab open, the AI Assistant can design or change the diagram from a description, for example "add a loyalty_points table linked to customers". Changes that would replace your existing diagram wait for your confirmation before they're applied.
Download and start managing your MongoDB and SQL databases with ease.
Download Free Trial