Class / ER / State
Three more Mermaid types, for data shapes and state machines.
classDiagram class User { +id: UUID +name: String } User --> Order : placesEntity relationship
Section titled “Entity relationship”erDiagram CUSTOMER ||--o{ ORDER : placesstateDiagram-v2 [*] --> Idle Idle --> Running : start Running --> [*]To tint a node in any of these, use a vizzy-fence style override
— Mermaid’s own style/classDef only apply inside flowcharts.