chore: add database diagram generator
This commit is contained in:
25
docs/TASKS/development/002-generate-database-diagram.md
Normal file
25
docs/TASKS/development/002-generate-database-diagram.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# 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
|
||||
```
|
||||
Reference in New Issue
Block a user