add attributes to demo ER diagram so attribute styles can be evaluated

This commit is contained in:
Ashley Engelund (weedySeaDragon @ github)
2022-09-22 11:48:11 -07:00
parent 395cc29701
commit 9cb7054ff9

View File

@@ -15,18 +15,49 @@
<body>
<pre class="mermaid">
erDiagram
title This is a title
accDescription Test a description
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
ORDER }|..|{ DELIVERY-ADDRESS : uses
DELIVERY-ADDRESS }|--|| CUSTOMER : has
CUSTOMER ||--o{ ORDER : places
CUSTOMER {
string name
string region
string custNumber
string sector
}
ORDER ||--|{ LINE-ITEM : contains
ORDER {
int orderNumber
string deliveryAddress
}
LINE-ITEM {
string productCode
int quantity
float pricePerUnit
}
DELIVERY-ADDRESS {
int customerId
string addressLine1
string addressLine2
string city
string county
string state
string region
string country
string postalCode
}
</pre>
<script type="module">
import mermaid from './mermaid.esm.mjs';
mermaid.initialize({
theme: 'forest',
theme: 'base',
// themeCSS: '.node rect { fill: red; }',
logLevel: 3,
securityLevel: 'loose',