feat(er): allow multiple constraints on attributes

little changes in grammar to get a list of constraints (PK, FK or UK), so little changes in renderer to handle this list
This commit is contained in:
Tom PERRILLAT-COLLOMB
2023-01-24 21:20:11 +01:00
parent 549483d19b
commit 26e9b1790b
4 changed files with 44 additions and 4 deletions

View File

@@ -71,6 +71,20 @@
</pre>
<hr />
<pre class="mermaid">
erDiagram
"HOSPITAL" {
int id PK
int doctor_id PK,FK
string address UK
string name
string phone_number
string fax_number
}
</pre
>
<hr />
<script src="./mermaid.js"></script>
<script type="module">
mermaid.initialize({