Data model

Describe your entities. OrgGen generates the ERD.

Conversational ERD generation — automatic FKs, Merise cardinalities, universal round-trippable export.

See the example

OrgGen entity-relationship diagram: entities, fields, foreign keys, and Merise cardinalities on a real ERD
ScreenshotReal capture of the canvas, dark theme, French example project.

Data model

  • 01

    Automatic foreign keys

    Describe your entities and their relationships, OrgGen infers the FKs and places them correctly. Add an entity linked to an existing one in a single sentence.

  • 02

    Merise cardinalities

    (0,1) (1,1) (0,N) (1,N) — crow's-foot AND text badges shown together, so the diagram reads well both as an ERD and as classic Merise notation.

  • 03

    Universal export

    DBML, PostgreSQL SQL (migration-ready DDL), JSON Schema, Mermaid ERD — lossless round-trip, you can re-import the exported file later.

  • 04

    DBML / SQL import

    Start from an existing schema: import your DBML or Postgres DDL, OrgGen turns it into an editable diagram and continues by chatting.

  • 05

    N:M via junction entities

    Many-to-many relationships automatically go through a junction entity — never a direct many↔many edge that would break a SQL export.

  • 06

    Collaborative canvas

    Inline field editing, entity drag & drop, real-time sync between collaborators — several people on the same ERD.

Use cases: say it, get it

  • Prompt

    Model a B2B SaaS: users, organizations, projects, memberships with their FKs

  • Prompt

    Add an Invoice entity linked to Order, with fields amount, status, paid_at

  • Prompt

    Create an ERD for a marketplace: sellers, products, orders, payments

  • Prompt

    Convert this ERD to migration-ready Postgres SQL

Ready to model your data?

Describe your entities in natural language — OrgGen produces an editable, exportable ERD.