DevTools

TOOLS COLLECTION

Need a specific tool?

Request a new developer tool to be added to our collection.

Request a tool →

Database Schema Designer

Design database schemas with tables, fields, and relationships visually

NameTypeRequiredPrimary KeyUniqueForeign KeyActions

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)
);