SQL files that contain CREATE statements can be used as data sources. As a result, you can build diagrams, reference all tables, columns and other objects defined in such files in the editor.

To create a DDL data source, drag the DDL file to the Database (View | Tool Windows | Database) tool window from your file manager.

Create a DDL data source