
VTX Lapis does this offline.
See VTX LapisYour real databases in one window, with schema compare.
macOS · Windows · Linux · Free to downloadVisual database schema builder with SQL export — design tables, columns, and relationships.

Your real databases in one window, with schema compare.
macOS · Windows · Linux · Free to downloadDeveloperRelated
Search for a command to run...
1CREATE TABLE new_table (2 id SERIAL PRIMARY KEY,3 created_at TIMESTAMPTZ NOT NULL DEFAULT now()4);5