Mermaid for
Entity Relationship (ER) diagrams
Design a schema, document an inherited one, or align developers and analysts on what lives where.
An entity-relationship diagram (ERD) models the structure of a database: the entities (things being stored), their attributes (properties), and the relationships between them. The concept was introduced by Peter Chen in 1976 as a framework for database design, and ERDs remain the standard way to plan, document, and communicate data models.
In Mermaid, ER diagrams are text-based and renderable anywhere, which makes them practical for teams who need to keep documentation in sync with a schema that’s always changing.
Translate business entities and rules into a model that both technical and non-technical stakeholders can validate.
Users, orders, products, and payments, with cardinality and relationships mapped across the full purchase flow.
Organizations, users, roles, and permissions, showing how access is structured across accounts.
Contacts, companies, deals, and activities. The core entities behind a sales pipeline.
Posts, authors, tags, categories, and comments. A lightweight content model for a publishing platform.
Describe your idea and get a diagram you can refine, then share with your team instantly.
Common questions about building ER diagrams in Mermaid.