diagram: holder
This commit is contained in:
26
banque.md
26
banque.md
@@ -67,6 +67,32 @@ Cela évite les **colonnes inutiles** et permet des **contraintes spécifiques**
|
|||||||
|
|
||||||
La clé étrangère `references holder(id)` dans `person`.
|
La clé étrangère `references holder(id)` dans `person`.
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
erDiagram
|
||||||
|
person {
|
||||||
|
bigint id PK
|
||||||
|
text firstname
|
||||||
|
text lastname
|
||||||
|
date birthdate
|
||||||
|
}
|
||||||
|
|
||||||
|
company {
|
||||||
|
bigint id PK
|
||||||
|
text registration_numer
|
||||||
|
date creation_date
|
||||||
|
}
|
||||||
|
|
||||||
|
holder {
|
||||||
|
bigint id PK
|
||||||
|
int person_id FK
|
||||||
|
}
|
||||||
|
|
||||||
|
%% Relations
|
||||||
|
|
||||||
|
person ||--o{ holder : "is held by"
|
||||||
|
company ||--o{ holder : "is held by"
|
||||||
|
```
|
||||||
|
|
||||||
## 2. Les comptes
|
## 2. Les comptes
|
||||||
|
|
||||||
- Chaque titulaire peut détenir un ou plusieurs compte.
|
- Chaque titulaire peut détenir un ou plusieurs compte.
|
||||||
|
|||||||
Reference in New Issue
Block a user