operation
This commit is contained in:
19
banque.md
19
banque.md
@@ -89,8 +89,8 @@ erDiagram
|
||||
|
||||
%% Relations
|
||||
|
||||
person ||--|| holder
|
||||
company ||--|| holder
|
||||
person ||--|| holder :
|
||||
company ||--|| holder :
|
||||
```
|
||||
|
||||
## 2. Les comptes
|
||||
@@ -149,13 +149,14 @@ erDiagram
|
||||
account {
|
||||
bigint id PK
|
||||
date creation_date
|
||||
decimal balance >0
|
||||
decimal balance
|
||||
text currency_code FK
|
||||
}
|
||||
|
||||
account_holder {
|
||||
bigint account_id FK
|
||||
bigint holder_id FK
|
||||
decimal share
|
||||
}
|
||||
|
||||
transaction {
|
||||
@@ -184,6 +185,15 @@ erDiagram
|
||||
decimal amount
|
||||
}
|
||||
|
||||
operation {
|
||||
bigint id PK
|
||||
bigint transaction_id
|
||||
text source_account
|
||||
text target_account
|
||||
decimal amount
|
||||
text direction
|
||||
}
|
||||
|
||||
%% Relations
|
||||
|
||||
person ||--|| holder :
|
||||
@@ -193,6 +203,9 @@ erDiagram
|
||||
account_holder }|--|{ account :
|
||||
currency ||--|{ account :
|
||||
exchange_rate }o--|| currency :
|
||||
transaction }o--|| operation :
|
||||
operation }o--|| account :
|
||||
operation }o--|| account :
|
||||
```
|
||||
|
||||
## 4. Procédure stockée
|
||||
|
||||
Reference in New Issue
Block a user