Flowgraph Studio vs dbdiagram.io: Where should your ER diagram live?

dbdiagram.io is built around DBML and database design; Flowgraph Studio draws Mermaid ER diagrams beside your other engineering diagrams. A subscription example shows where each one fits.

Comparisons · · 4 min read

Flowgraph Studio is our product. We've tried to describe the other tools fairly, from their own documentation as of November 2026.

The most useful question in an ER diagram review is often a small one: can a customer exist without a subscription?

That question affects sign-up, reporting and migrations. Yet it's easy to miss when a database diagram is judged mainly by how many tables fit on the screen. Choosing between dbdiagram.io and Flowgraph Studio starts with deciding where those modelling decisions will be made and kept.

Customers can own subscriptions, subscriptions use plans, and invoices belong to subscriptions; the optional relationships are called out in text.
A conceptual subscription model. Whether a relationship is optional is a business decision before it's a drawing convention.

Let the model show the disagreement

Imagine a subscription service with customers, plans, subscriptions and invoices. A customer who has just registered may not have chosen a plan. A subscription belongs to one customer and one plan. An invoice belongs to the subscription it bills.

A small Mermaid ER diagram makes those assumptions visible:

erDiagram
  CUSTOMER ||--o{ SUBSCRIPTION : owns
  PLAN ||--o{ SUBSCRIPTION : defines
  SUBSCRIPTION ||--o{ INVOICE : generates
  CUSTOMER {
    uuid id PK
    string email UK
  }
  PLAN {
    uuid id PK
    string name
    boolean retired
  }
  SUBSCRIPTION {
    uuid id PK
    uuid customer_id FK
    uuid plan_id FK
    string status
  }
  INVOICE {
    uuid id PK
    uuid subscription_id FK
    date issued_on
  }

The zero-or-more markers (o{) matter. They say a customer may have no subscriptions, and a subscription may have no invoices yet. If the business disagrees, change the model before anyone spends time arranging boxes. The ER relationship cheat sheet lists every marker.

This is a conceptual example, not an executable schema or a complete billing design. Constraints, currencies and plan changes over time need their own decisions.

dbdiagram.io is built around database design

dbdiagram.io's editing guide describes typing a schema in DBML in the left pane and watching the diagram appear on the right as you type. The toolbar exports the diagram as a PDF or PNG, or generates SQL for your database.

That makes it a natural choice when defining the database is the centre of the work. The team gets a language made for schemas and a tool made to show them, rather than adapting a general documentation diagram to every schema detail.

For the subscription example, try the workflow with the schema's owner. How will keys, relationships and generated SQL be reviewed? Which file is the source of truth after a migration changes the model? If DBML already has an agreed place in that process, keeping the diagram there may be the most coherent choice.

Flowgraph Studio fits an ER view inside engineering documentation

Flowgraph Studio draws Mermaid erDiagram code. In Manual mode you move entities, draw relationships and pick the cardinality at each end, edit attributes, and mark keys (PK, FK, UK) with the mouse, while it writes the Mermaid for you.

You don't have to start from a blank page, either:

This is useful when the ER diagram is one part of a wider design document that also has flowcharts or sequence diagrams. Authors keep one familiar notation and can still arrange the view visually.

Keep the scope deliberate. A proposal about subscriptions may need four entities and a few key attributes, even if the database has dozens of tables. The picture helps people discuss the relationships; it doesn't replace migrations or database constraints.

Walk through the awkward lifecycle, not just the happy path

Follow a customer who signs up, chooses a plan, gets an invoice and later cancels. Which records remain? Can a plan be retired while older subscriptions still point to it? Does cancelling change a relationship, or only a status?

These questions expose gaps that a tidy set of boxes can hide. Add a sentence beside the diagram when a relationship alone can't express the rule.

Once the model is agreed, export it at the size the document uses. Entity names and cardinality markers must stay readable. A large canvas screenshot squeezed into a narrow page is rarely a useful handover.

Choose by the file you'll maintain

Use dbdiagram.io when DBML and database-specific design are central to how the team works. Use Flowgraph Studio when a focused Mermaid ER view belongs with other engineering diagrams and a written explanation.

For this example, what matters is that the customer-without-a-subscription case is visible and agreed. The tool should make that decision easy to revisit when the product changes.

More from the blog

Follow the blog by RSS