Built for PostgreSQL Migrations & Architecture Reviews

ER Diagram Generator for PostgreSQL

Merge a new pg_dump --schema-only with the .drawio diagram you already arranged by hand — outputting a diff-highlighted .drawio file without resetting your layout.

Exports editable .drawio files compatible with draw.io. Single-schema export free up to 8 tables. Layout-preserving schema updates from $9.

Local-First Privacy Guarantee: Database passwords, raw SQL, table/column names, and business notes stay in your browser; when you confirm export, the server receives only de-identified table relationship topology and bounding-box geometry to compute layout. Request body logging and session replay are disabled.

2 / 30 Tables(Free Tier)1 Foreign Key BoundSchemas: public
Free Tier: Up to 8 tables exports native editable .drawio immediately with no credit card.
Fixed Public Sample — Free Download

Inspect a Real 18-Table SaaS PostgreSQL v1 → v2 Diff in draw.io

Before pasting your own schema, download our fixed public multi-schema SaaS benchmark (public, billing, audit) and open it directly in app.diagrams.net or draw.io Desktop. Verify column-anchored tableRow foreign-key ports, composite foreign keys, preserved coordinates, and the toggleable Removed (Review) layer in 10 seconds.

22 Column-Level FKs

Every standalone ALTER TABLE ONLY ... FOREIGN KEY and composite key connects directly to its exact tableRow port.

+4 Added Tables Placed Cleanly

webhooks, webhook_deliveries, usage_meters, and usage_events placed near neighbors with zero node overlap.

~2 Modified Tables In-Place

api_keys.key_hash type change (varchar(64) → bytea) and added columns keep exact v1 coordinates.

Removed (Review) Layer

Dropped legacy_invites table and memberships.legacy_title column isolated in a dedicated draw.io review layer.

Why Backend Teams Use This Over Generic ERD Makers

Drawing a greenfield ER diagram once is easy. Keeping a 20-table client or SOC2 architecture diagram accurate across schema releases is where manual workflows break down.

Zero Dropped ALTER TABLE Foreign Keys

pg_dump --schema-only emits all foreign keys at the bottom of the file via ALTER TABLE ONLY ... ADD CONSTRAINT ... FOREIGN KEY. Built-in draw.io SQL import drops 100% of them. Our two-pass PostgreSQL parser tracks search_path, $$ function bodies, quoted identifiers, and composite keys accurately.

See minimal 2-table reproduction

Keep Your Hand-Tuned .drawio Coordinates

Re-importing Mermaid or regenerating from scratch wipes out every manual table position, domain swimlane, custom color, and review callout. Our round-trip <UserObject> IDs lock existing tables in place, map renamed tables on confirmation, and route only newly added tables into open canvas space.

Zero-Knowledge Browser SQL Isolation

Proprietary table names, column types, defaults, and architect comments never leave your machine. Your browser strips identifiers into anonymous IDs (T_01, C_01_01) locally, fetches pure ELK geometry coordinates, and rehydrates the native .drawio file on your device.

Explicit Support Contract (No Silent Failures)

  • PostgreSQL DDL & pg_dump up to 30 tables per snapshot: Covers multi-schema qualifiers, SET search_path, pg_catalog.set_config, dollar-quoted $$ functions, composite PK/FKs, partitioned tables, and case-sensitive quoted names.
  • Native draw.io Sidebar-ER.js geometry: Every table uses shape=table;childLayout=tableLayout; and every foreign key anchors strictly to shape=tableRow cells — never sloppy container-to-container lines.
  • Fail-closed before billing: Dynamic SQL (DO $$ EXECUTE ... $$), CREATE TABLE AS SELECT, or unresolvable constraints report exact line numbers and block export before any credit is consumed.

Frequently Asked Questions

Can I import an arbitrary hand-drawn .drawio diagram not created here?
No — Week 1 Layout-Preserving Diff requires a single-page baseline .drawio originally exported by ER Diagram Generator (which embeds stable <UserObject> table/column IDs) and then edited in draw.io.
What happens if adding 10 new columns makes a locked table overlap a table directly underneath it?
Rather than secretly moving your locked tables, we preserve your exact coordinates and highlight the exact colliding table pair right after export so you can nudge it with full control in draw.io.
Do I pay again if I re-download the same diagram?
Never. Re-exporting the identical schema + baseline + rename mapping hash is 100% free and does not deduct another Release Credit. See Pricing for details.