← All docs

Diagrams

ER diagrams from your databases, drawings, import / export and drawing with AI apps

ER diagram from a database

In Diagrams, choose "ER diagram from a database", pick the connection and then whole schemas, chosen tables, or one table with the tables linked to it (up to 3 foreign key steps). Tables, columns, primary and foreign keys are laid out automatically, with crow’s foot ends on the lines.

Show all columns, keys only or table names only. Groups give a part of the diagram its own colour and can be exported alone.

On the sample data: an ER of Sample shop shows orders linked to customers, branches and order_items, and order_items linked to products.

Draw and design

Start from a blank ER to design tables, or from a blank drawing for flows and architecture: boxes, rounded boxes, diamonds, cylinders, notes, text, actors and clouds, joined with lines or arrows. Drag from a column to a column of another table to make a foreign key.

Every save is a version; History shows who saved it (in the web or through an AI app) and restores any of the last 30. If someone else saved in the meantime you are asked to reload instead of overwriting their work.

Import and export

  • Import: SQL CREATE TABLE (PostgreSQL, MySQL, SQL Server, Oracle), DBML, Mermaid (erDiagram and flowchart) and draw.io files
  • Text mode: edit the diagram as DBML or Mermaid; tables that stay keep their place
  • Export: PNG, SVG, PDF, SQL DDL in the dialect you choose, DBML, Mermaid and draw.io

Sync and create in the database

"Sync with database" compares an ER diagram with its database: added, removed and changed columns are marked on the canvas, new tables of the same schemas can be ticked in, and nothing changes until you accept.

"Create in database" creates the tables of the diagram that the database does not have yet, through the Table Designer, parents before children. You see the SQL first; existing tables are never changed. Owner and Admin only.

Drawing with AI apps (MCP)

With the Ruamhub connector in Claude or another MCP app, ask for "an ER of my orders tables" or "a flowchart of our order process": the app reads your schema or writes Mermaid / DBML, looks at a picture of the result and fixes it. Changes are saved as versions marked with the app’s name, so you can undo them in History. Creating tables in a real database is never done by an AI app.

Plans

  • Free: 3 diagrams; Dev: 50; Pro: unlimited
  • Up to 300 tables per ER from a database, 2,000 items and 5,000 lines per diagram