Skip to content

Commit

Permalink
Update mermaid ERD
Browse files Browse the repository at this point in the history
  • Loading branch information
Byunk authored Jan 9, 2024
1 parent e3fa998 commit cfea636
Showing 1 changed file with 87 additions and 0 deletions.
87 changes: 87 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,90 @@ npm run dev
## API Document

[API document](https://dev-bai.gdsckaist.com/api-docs)

## Documentation

### ERD

```mermaid
%%{init: {'theme': 'forest' } }%%
erDiagram
organizations {
int id PK
string name UK
}
users ||--o| organizations : belongs
users {
int id PK
string email UK
string password
string initialPassword
enum role
boolean isDisabled
}
organizations ||--o{ budgets: has
budgets {
int id PK
string manager
int year
string half
boolean isReadOnly
}
budgets ||--o{ incomes: has
incomes {
int id PK
string code
enum source
string category
string content
int amount
string note
}
budgets ||--o{ expenses: has
expenses {
int id PK
string code
enum source
string category
string project
string content
int amount
string note
}
incomes ||--o{ transactions: has
expenses ||--o{ transactions: has
transactions {
int id PK
date projectAt
string manager
string content
enum type
int amount
date transactionAt
int balance
string accountNumber
string accountBank
string accountOwner
string receivingAccountNumber
string receivingAccountBank
string receivingAccountOwner
boolean hasBill
}
audit_periods {
int year PK
string half PK
date start
date end
}
organizations ||--o{ accounts : has
accounts {
int id PK
int year
string half
string name
string accountNumber
string accountBank
string accountOwner
string cardNumber
}
```

0 comments on commit cfea636

Please sign in to comment.