ER diagrams
ER diagrams from SQL, DBML or a description
Tables, columns, keys and the lines between them, drawn from the schema you already have or the one you describe.
Table customers { id integer [pk] email varchar [not null, unique]}Table orders { id integer [pk] customer_id integer [ref: > customers.id, not null] placed_at timestamp [not null]}Table products { id integer [pk] name varchar [not null] price decimal [not null]}Table order_items { order_id integer [ref: > orders.id] product_id integer [ref: > products.id] quantity integer [not null] indexes { (order_id, product_id) [pk] }}Start from your SQL
Import a script from PostgreSQL (a pg_dump works), MySQL, SQL Server, SQLite or Oracle. Tables, keys, indexes, enums and comments come in. Penna lists what it left out, such as views and INSERT rows. Mermaid erDiagram files import too.
The code is DBML
It's the language dbdiagram.io made, so DBML from there works as it is, colours included.
SQL out for five databases
Export SQL for PostgreSQL, MySQL, SQL Server, SQLite or Oracle, plus DBML, Mermaid, SVG and PNG.
From your AI app
Ask Claude, ChatGPT or Gemini to design a schema from your notes, or to add the tables a new feature needs.
Questions
Can I import my existing database?
Yes, from a SQL script such as a pg_dump.
Does it work with dbdiagram.io?
Penna's schema code is DBML, so you can paste dbdiagram code in and copy it back out.
Can it convert MySQL to PostgreSQL?
Yes. Import the MySQL script and export SQL for PostgreSQL.