Generate a CREATE TABLE statement from columns and relational constraints.
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 definitions become CREATE TABLE syntax with primary keys, nullability, defaults, unique constraints, and indexes in dialect-specific order. Identifiers are quoted when needed; the script is not executed.
Table name: users
Columns: [{"name":"id","type":"SERIAL","primaryKey":true},{"name":"email","type":"VARCHAR(255)","nullable":false,"unique":true},{"name":"name","type":"VARCHAR(100)"},{"name":"created_at","type":"TIMESTAMP","defaultValue":"NOW()"}]
CREATE TABLE users ( id SERIAL PRIMARY KEY, email VARCHAR(255) NOT NULL UNIQUE, name VARCHAR(100), created_at TIMESTAMP DEFAULT NOW() );
Prototype schemas, teaching examples, and migration scaffolds generate table DDL.