From af35478749b2c1fd3ce5c55f108860fa06f87f8a Mon Sep 17 00:00:00 2001 From: "e.medina" Date: Wed, 5 Nov 2025 16:25:35 +0100 Subject: [PATCH] diagram: holder --- banque.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/banque.md b/banque.md index 523a4e5..679c3b1 100644 --- a/banque.md +++ b/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`. +```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 - Chaque titulaire peut détenir un ou plusieurs compte.