Différences entre les versions de « Utilisateur:Tenbergen/mermaid ER Diagram attributes not shown »
De Semantic MediaWiki - Sandbox
m (further explanation) Balise : Éditeur de wikicode 2017 |
m Balise : Éditeur de wikicode 2017 |
||
Ligne 1 : | Ligne 1 : | ||
The following sample code is taken straight from https://mermaid-js.github.io/mermaid/#/entityRelationshipDiagram . It should list attributes, such as "name" under "Customer", but it only shows the entity boxes. | The following sample code is taken straight from https://mermaid-js.github.io/mermaid/#/entityRelationshipDiagram . It should list attributes, such as "name" under "Customer", but it only shows the entity boxes. | ||
+ | |||
{{#mermaid: | {{#mermaid: | ||
erDiagram | erDiagram | ||
− | + | CAR ||--o{ NAMED-DRIVER : allows | |
− | + | CAR { | |
− | string | + | string registrationNumber |
− | string | + | string make |
− | string | + | string model |
} | } | ||
− | + | PERSON ||--o{ NAMED-DRIVER : is | |
− | + | PERSON { | |
− | + | string firstName | |
− | string | + | string lastName |
− | + | int age | |
− | |||
− | string | ||
− | int | ||
− | |||
} | } | ||
}} | }} |
Version du 16 novembre 2021 à 22:49
The following sample code is taken straight from https://mermaid-js.github.io/mermaid/#/entityRelationshipDiagram . It should list attributes, such as "name" under "Customer", but it only shows the entity boxes.