26 lines
559 B
Markdown
26 lines
559 B
Markdown
# Task: Add database diagram generation script
|
|
|
|
## Goal
|
|
|
|
Provide a repeatable local command that renders the current PostgreSQL schema as a visual database diagram for human review.
|
|
|
|
The output should be local generated artifacts, not checked-in schema snapshots, so the diagram can be refreshed whenever EF migrations or model configuration change.
|
|
|
|
## Relevant Files
|
|
|
|
- `scripts/generate-db-diagram.sh`
|
|
- `.gitignore`
|
|
- `README.md`
|
|
|
|
## Validation
|
|
|
|
```bash
|
|
./scripts/generate-db-diagram.sh
|
|
```
|
|
|
|
Open:
|
|
|
|
```txt
|
|
.artifacts/db-diagrams/database-diagram.html
|
|
```
|