mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-25 03:06:50 +02:00
change demo ER diagram to include attributes, names with various chars
This commit is contained in:

parent
91091c614f
commit
eb1c6894f5
@@ -16,17 +16,35 @@
|
|||||||
<body>
|
<body>
|
||||||
<pre class="mermaid">
|
<pre class="mermaid">
|
||||||
erDiagram
|
erDiagram
|
||||||
title This is a title
|
%% title This is a title
|
||||||
accDescription Test a description
|
%% accDescription Test a description
|
||||||
CUSTOMER ||--o{ ORDER : places
|
|
||||||
|
"Person.CUSTOMER"||--o{ ORDER : places
|
||||||
|
|
||||||
ORDER ||--|{ LINE-ITEM : contains
|
ORDER ||--|{ LINE-ITEM : contains
|
||||||
CUSTOMER }|..|{ DELIVERY-ADDRESS : uses
|
|
||||||
|
"Person.CUSTOMER" }|..|{ "Address/StreetAddress::[DELIVERY-ADDRESS]" : uses
|
||||||
|
|
||||||
|
"Address/StreetAddress::[DELIVERY-ADDRESS]" {
|
||||||
|
int customerID FK
|
||||||
|
string line1 "this is the first address line comment"
|
||||||
|
string line2
|
||||||
|
string city
|
||||||
|
string region
|
||||||
|
string state
|
||||||
|
string postal_code
|
||||||
|
string country
|
||||||
|
}
|
||||||
|
|
||||||
|
"a_~`!@#$^&*()-_=+[]{}|/;:'.?¡⁄™€£‹¢›∞fi§‡•°ª·º‚≠±œŒ∑„®†ˇ¥Á¨ˆˆØπ∏“«»åÅßÍ∂΃ϩ˙Ó∆Ô˚¬Ò…ÚæÆΩ¸≈π˛çÇ√◊∫ı˜µÂ≤¯≥˘÷¿" {
|
||||||
|
string name "this is an entity with an absurd name just to show characters that are now acceptable as long as they are within double quotes"
|
||||||
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import mermaid from './mermaid.esm.mjs';
|
import mermaid from './mermaid.esm.mjs';
|
||||||
mermaid.initialize({
|
mermaid.initialize({
|
||||||
theme: 'forest',
|
theme: 'default',
|
||||||
// themeCSS: '.node rect { fill: red; }',
|
// themeCSS: '.node rect { fill: red; }',
|
||||||
logLevel: 3,
|
logLevel: 3,
|
||||||
securityLevel: 'loose',
|
securityLevel: 'loose',
|
||||||
|
Reference in New Issue
Block a user