Demo: convert CREATE TABLE statements into an ER diagram
SQL schema review becomes faster when tables, primary keys, and foreign keys are visible. The preview helps teams discuss relationships before migrations reach production.
- Include CREATE TABLE statements for all referenced tables.
- Keep foreign key constraints in the sample when possible.
- Use the ER output to review relationships, not query performance.
CREATE TABLE users (id INT PRIMARY KEY, email TEXT);
CREATE TABLE orders (id INT PRIMARY KEY, user_id INT REFERENCES users(id), total DECIMAL);