Database Schema Designer
Design database schemas with tables, fields, and relationships visually
Name | Type | Required | Primary Key | Unique | Foreign Key | Actions |
---|---|---|---|---|---|---|
Output
CREATE TABLE users ( id int NOT NULL PRIMARY KEY, username varchar NOT NULL UNIQUE, email varchar NOT NULL UNIQUE, created_at timestamp NOT NULL ); CREATE TABLE posts ( id int NOT NULL PRIMARY KEY, title varchar NOT NULL, content text NOT NULL, user_id int NOT NULL, created_at timestamp NOT NULL, FOREIGN KEY (user_id) REFERENCES users(id) );