diff --git a/banque.md b/banque.md index 98b69d0..7043a8a 100644 --- a/banque.md +++ b/banque.md @@ -84,7 +84,7 @@ erDiagram holder { bigint id PK - int person_id FK + date creation_date } %% Relations @@ -175,7 +175,7 @@ erDiagram exchange_rate { date date PK - text currency_code PK/FK + text currency_code PK decimal rate } @@ -196,16 +196,16 @@ erDiagram %% Relations - person ||--|| holder : a - company ||--|| holder : a - bank ||--|| holder : a + person ||--|| holder : is + company ||--|| holder : is + bank ||--|| holder : is holder }|--|{ account_holder : a - account_holder }|--|{ account : a - currency ||--|{ account : a + account_holder }|--|{ account : hold + currency ||--|{ account : tenu exchange_rate }o--|| currency : a - transaction }o--|| operation : a - operation }o--|| account : a - operation }o--|| account : a + transaction }o--|| operation : contient + operation }o--|| account : concerne + operation }o--|| account : concerne ``` ## 4. Procédure stockée