mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-15 01:00:53 +08:00
ER-Diagrams in data_schemas.md (#367)
* initial er-diagrams * pre-commit
This commit is contained in:
@@ -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
|
||||
|
||||

|
||||
|
||||
**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
|
||||
|
||||

|
||||
|
||||
**Notes**
|
||||
|
||||
- `id` of `registeredTask` references `id`of `message`on the backend
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 201 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
Reference in New Issue
Block a user