diff --git a/banque.md b/banque.md index 1505e1f..b6e4501 100644 --- a/banque.md +++ b/banque.md @@ -108,9 +108,8 @@ erDiagram account { bigint id PK - date creation_date + timestamp creation_date decimal balance - text currency_code FK } account_holder { @@ -146,6 +145,11 @@ erDiagram date creation_date } + bank { + bigint id PK + text name + } + holder { bigint id PK timestamp creation_date @@ -154,7 +158,7 @@ erDiagram account { bigint id PK - date creation_date + timestamp creation_date decimal balance text currency_code FK } @@ -168,7 +172,7 @@ erDiagram operation { bigint id PK bigint transaction_id FK - text account FK + bigint account_id FK decimal amount text direction } @@ -347,7 +351,7 @@ erDiagram account { bigint id PK - date creation_date + timestamp creation_date decimal balance text currency_code FK }