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
     CUSTOMER ||--o{ ORDER : places
+
     CAR ||--o{ NAMED-DRIVER : allows
     CUSTOMER {
+
     CAR {
         string name
+
         string registrationNumber
         string custNumber
+
         string make
         string sector
+
         string model
 
     }
 
     }
     ORDER ||--|{ LINE-ITEM : contains
+
     PERSON ||--o{ NAMED-DRIVER : is
     ORDER {
+
     PERSON {
        int orderNumber
+
         string firstName
         string deliveryAddress
+
         string lastName
    }
+
         int age
    LINE-ITEM {
 
         string productCode
 
         int quantity
 
        float pricePerUnit
 
 
     }
 
     }
 
}}
 
}}

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.

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.