What goes into an ER diagram
Each entity becomes a table with columns, types and keys. Relationships show cardinality, such as one customer having many orders. Primary keys identify rows, and foreign keys point to the table they reference.
Generate SQL for your database
Choose a dialect and Nensea generates CREATE TABLE statements with keys and references, quoted correctly for that database.
- PostgreSQL
- MySQL
- SQL Server
- SQLite
Reverse-engineer an existing schema
Paste the DDL from a migration or a database dump and Nensea builds the ER diagram for you. It is a fast way to document a schema you inherited or to review a migration before it ships.
Common questions
- Can I generate SQL from an ER diagram?
- Yes. Nensea generates SQL DDL for PostgreSQL, MySQL, SQL Server and SQLite from an entity relationship diagram.
- Can I create an ER diagram from existing SQL?
- Yes. Import SQL DDL and Nensea creates an editable ER diagram with tables, keys and relationships.
- What is the difference between an ER diagram and a database schema?
- The schema is the actual definition in the database. An ER diagram is a visual model of it, which is easier to discuss and review.
Put your next diagram in context.
Tell us what your team, class or lab needs to explain, and we’ll set you up with Nensea’s editable AI diagrams.
Get started with Nensea