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.
Describe your idea and get a diagram you can refine, then share with your team instantly.
Common questions about building ER diagrams in Mermaid.