2025-01-27 18:57:03 +00:00
|
|
|
# Database schema
|
|
|
|
|
|
2025-02-24 18:18:23 +00:00
|
|
|
To view this diagram live in vscode use the `https://marketplace.visualstudio.com/items?itemName=bierner.markdown-mermaid` extension.
|
2025-01-27 18:57:03 +00:00
|
|
|
|
2025-02-24 18:18:23 +00:00
|
|
|
You can also edit live with `https://mermaid.live`
|
2025-01-27 18:57:03 +00:00
|
|
|
|
|
|
|
|
This diagram should be updated manually when there are changes to the database schema.
|
|
|
|
|
|
2025-02-24 18:18:23 +00:00
|
|
|
To generate the diagram directly use the following command, in the root directory:
|
2025-01-27 18:57:03 +00:00
|
|
|
|
2025-02-24 18:18:23 +00:00
|
|
|
```bash
|
|
|
|
|
docker run --rm -u $(id -u):$(id -g) -v $(pwd)/database:/data minlag/mermaid-cli:latest -i /data/diagram.mmd -o /data/diagram.png -w 2000 -H 2000
|
2025-01-27 18:57:03 +00:00
|
|
|
```
|