Turn SQL column definitions into TypeScript interfaces with nullable fields.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Column types map to TypeScript primitives or nullable unions, and table names become interfaces or aliases. Constraints are emitted as comments or optionality hints rather than runtime validation.
CREATE TABLE users ( id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, email VARCHAR(255) NOT NULL, created_at TIMESTAMP );
// Generated from SQL CREATE TABLE statements
export interface Users {
id: number;
name: string;
email: string;
createdAt?: Date | null;
}
API clients, migration schemas, and reporting endpoints generate result types.