feat(er): add UK attribute constraint

Any attribute can now be PK, FK or UK
This commit is contained in:
Tom PERRILLAT-COLLOMB
2022-12-15 18:55:08 +00:00
parent ff7ed7f49f
commit 32a8061cc2
3 changed files with 20 additions and 5 deletions

View File

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