Mermaid ER Diagram Tutorial
Design database schemas visually with Mermaid ER diagrams. Learn entity declarations, attribute types, relationships, and cardinality notation.
Entities represent database tables. Declare an entity with its name followed by curly braces containing attributes. Each attribute has a type and a name. The erDiagram keyword starts the diagram.
erDiagram
USER {
int id
string email
string name
timestamp created_at
}Live Editor
Unsaved
Mermaid Code
Loading Monaco Editor...
More Tutorials
Mermaid Flowchart Syntax Tutorial
Master Mermaid flowchart syntax with this interactive guide. Learn node shapes, connections, and advanced features.
Mermaid Sequence Diagram Guide
Learn to create professional sequence diagrams with Mermaid. Cover participants, messages, and advanced features.
Mermaid Gantt Chart Tutorial
Create professional project timelines with Mermaid Gantt charts. Learn tasks, dependencies, and scheduling.