Relations
Keys point at keys, not at boxes
Every edge anchors on the actual foreign-key row and terminates on the primary key it references. Cardinality is labelled on hover, so 1:1 and 1:many never get quietly confused.
- id
- customer_id
- total
- id
- name
Archy turns one sentence into a live entity diagram — tables, types, keys and relationships — then generates the Prisma schema, TypeScript types and SQL.
Working from
“a ride-sharing app with riders, drivers, rides, vehicles and real-time payments”
Most generators hand you a wall of SQL and wish you luck. Archy shows the shape first — so the mistakes are obvious before they reach a migration.
Relations
Every edge anchors on the actual foreign-key row and terminates on the primary key it references. Cardinality is labelled on hover, so 1:1 and 1:many never get quietly confused.
Output
Prisma schema, TypeScript interfaces and Postgres DDL — generated from the same graph, with indexes and join tables filled in.
Canvas
Pull tables apart to untangle a hairball. Hover one to dim everything it does not touch.
Types
A status column becomes a Prisma enum, a TypeScript union and a CHECK constraint — all three, all consistent.
status enum [requested, active, done]
↓
type RideStatus =
| "requested"
| "active"
| "done";Speed
The canvas, the generators and the copy button all run in the page. Paste the output straight into your repo.
Describe it once. Drag it into shape. Copy the schema and go build the part that actually matters.