Database Schema Generator

From a description to a normalised schema: entities, relationships, ER diagram, SQL and Prisma.

See an example:

Free, no account needed. Processed by an AI model; results are kept for 90 days.

How it works

edit_note

Describe the app or paste a spec

The more you say about what people do with the data, the better the relationships come out.

account_tree

Get entities and relations

Tables with typed fields, primary and foreign keys, join tables for many-to-many, sensible indexes.

code

Take it in your format

An ER diagram, CREATE TABLE statements for your database and a Prisma schema — copy whichever you use.

What the generator gets right

The mistakes that cost weeks later are the ones it is built to avoid.

link
Join tables, not arrays

Many-to-many relationships get an explicit join table with its own keys instead of a comma-separated column.

schedule
Timestamps everywhere

Every table gets created_at and updated_at, because every app eventually asks "when did this change".

storage
Types your database has

PostgreSQL gets uuid and timestamptz, MySQL gets char(36) and datetime, SQLite gets text and integer.

Questions about the schema generator

  • Which databases are supported?

    PostgreSQL (the default and what Chattee deploys), MySQL/MariaDB and SQLite. The SQL and the Prisma schema follow the database you pick, and the ER diagram is drawn from that SQL.

  • Is the schema normalised?
  • Can I paste an existing requirements document?
  • Is it really free?
  • What happens to what I type?
  • Can I use the result outside Chattee?

Turn the schema into an app

Chattee provisions a managed PostgreSQL database, generates the API and builds the screens for each entity. Planning is free.

Start building free arrow_forward