← All tools
/tools/database-studio

Database Studio

Inspect PostgreSQL CREATE TABLE and foreign-key constraints and turn a schema into an ER diagram.

PostgreSQL schema

CREATE TABLE, primary keys, inline/table foreign keys and ALTER TABLE ADD CONSTRAINT. No database connection or SQL execution. Procedural SQL and unsupported dump syntax must be removed.

Entity relationships

Mermaid ER source

Usage statistics

Processing happens on your device. When usage statistics are enabled for this tool, actions, settings, entered data and generated results may be sent to the site’s analytics database. You can disable this using Usage statistics below. Normal hosting access logs may still apply.

Checking the service…

Using Database Studio

Inspect PostgreSQL CREATE TABLE and foreign-key constraints and turn a schema into an ER diagram.

Try it

Paste CREATE TABLE statements with inline or table-level foreign keys. ALTER TABLE ADD CONSTRAINT is supported; no SQL is executed.

Processing & privacy

Processing happens on your device. When usage statistics are enabled for this tool, actions, settings, entered data and generated results may be sent to the site’s analytics database. You can disable this using Usage statistics below. Normal hosting access logs may still apply.