ER-Diagrams in data_schemas.md (#367)

* initial er-diagrams

* pre-commit
This commit is contained in:
jojopirker
2023-01-05 12:55:43 +01:00
committed by GitHub
parent 843ea1a01a
commit 894219423d
3 changed files with 24 additions and 0 deletions
+24
View File
@@ -206,3 +206,27 @@ message RankingExample {
}
```
## Databases
Open-Assistant uses two databases, one for the backend and one for the frontend.
Both are [PostgreSQL](https://www.postgresql.org/) databases which run in docker
containers.
### Backend ER-Diagram
![ER-Diagram of backend Database](./db.png)
**Notes**
- In order for the diagram to not be too messy, foreign key connection to
`api_client` are not shown
- `frontend_message_id` references `id` of `taskInteraction` on the frontend
### Frontend ER-Diagram
![ER-Diagram of frontend Database](./webdb.png)
**Notes**
- `id` of `registeredTask` references `id`of `message`on the backend
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB