chore: add database diagram generator
Some checks failed
deploy-socialize / image (push) Failing after 26s
deploy-socialize / deploy (push) Has been skipped

This commit is contained in:
2026-05-07 14:40:15 -04:00
parent 57abe57bc7
commit e9fb1c5ee0
4 changed files with 329 additions and 0 deletions

View 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
```