Paste one or more CREATE TABLE statements and get an entity-relationship diagram — primary keys, foreign keys, and the lines between them.
CREATE TABLE syntax: inline PRIMARY KEY and REFERENCES other(col) on a column, plus table-level PRIMARY KEY (...) and FOREIGN KEY (...) REFERENCES other(...) constraints. ALTER TABLE ... ADD CONSTRAINT statements aren't parsed — declare foreign keys inside the CREATE TABLE itself._id whose prefix matches another pasted table's name (singular or plural) gets a dashed inferred relationship line — useful for warehouse/dbt schemas that rarely declare real foreign key constraints. Explicit REFERENCES always wins over an inferred guess for the same column.REFERENCES points at a table that wasn't included in your paste, that relationship is listed as unresolved in the status line instead of being silently dropped.