Guide · Every panel
ER diagram
The ER diagram draws one schema's tables and the foreign keys between them. It is Free on all four engines.
Opening it
Open ER diagram…(Mod-Shift-e) and pick a schema.Show in ER diagramon a table's toolbar, or in the explorer's table menu.Open ER diagramon a schema in the explorer.
What it draws
Each table shows its primary key, unique and foreign key columns. Edges carry crow's-foot cardinality. Nullable columns are marked.
Toolbar
Columns:Keys only,Selected table, orAll columns. Changing it after you dragged tables asksReset table positions?first.Find table…: jumps to a table by name.Reset canvas: drops the positions you dragged and fits the automatic layout to the view.Export: opensExport diagram.Design changes: opensSchema designs, withNew design for <schema>, Pro, andSaved designs. Each opens in the Design workbench.
Zoom sits in the status bar: Zoom out (-), the percentage, which fits the diagram when clicked, and Zoom in (+).
Inspector
Select a table:
Object,Columns,Est. rows.Keys & Invariants: primary and unique keys, withCopy key constraint name.Relationships: each foreign key asOutbound FK,Inbound FKorSelf-ref, with itsDel:andUpd:rules and whether it isValidatedorDeferrable. A filter narrows them by direction.Open table: opens its rows in a tab.
Dragged positions are kept per diagram in this computer's local storage. A diagram tab comes back after a restart, and keeps its selection, viewport and undo history while you are on another tab. If its connection or schema is gone it offers Close tab.
Export diagram
- Format: PNG, SVG or
Mermaid. - A frame on the preview sets what the image shows. Drag its handles to resize it, its tab to move it, or Shift-drag to draw a new one. The preview pans and zooms like the canvas.
- Toolbar:
Fit frame,Everything,Canvas view. Tables:All tablesorSelection. A click on a table in the preview leaves it out.Columns:As on canvas,Keys onlyorAll columns.Theme,Aspect,Size(PNG),Padding, andInclude:Transparent,Legend,Name & date.MermaidaddsMarkdown fence, and from a designContent:DiagramorPR summary.Mod-Shift-ccopies an image instead of saving one.