SQL Schema Diagram

Paste CREATE TABLE statements, a dump or migrations, and see the tables and their foreign keys as a diagram, exported as SVG, PNG or a Mermaid erDiagram

Diagram
Drag a table to move it, the background to pan; ⌘Ctrl+scroll to zoom. Click a table to bring out its links.
Download
SQL
A dump or migrations, from MySQL, MariaDB, PostgreSQL or SQLite: the tables, their keys and the changes made by ALTER TABLE. The data and the other statements are left out.
Or drop a file (.sql, a dump or a migration)
Mermaid

                
GitHub, GitLab, Notion and Obsidian draw it in a ```mermaid code block.