# Documentation

| Document | For |
|---|---|
| Bhagirath_ERP_Technical_White_Paper.pdf (and .docx) | The technical white paper: architecture, design decisions, core mechanisms, data, security, operations |
| [TECHNICAL_HANDOVER.md](TECHNICAL_HANDOVER.md) | Anyone taking over the system: architecture, every module and screen, database, business flows, how to change things |
| [DATABASE_REFERENCE.md](DATABASE_REFERENCE.md) | Every table and column with keys and references (generated; see below) |
| [SETUP_GUIDE_WINDOWS.md](SETUP_GUIDE_WINDOWS.md) | First-time local setup on Windows |
| [SETUP_GUIDE_MAC.md](SETUP_GUIDE_MAC.md) | First-time local setup on macOS |
| [../backend/scripts/README.md](../backend/scripts/README.md) | Seed, ingest and maintenance scripts |
| [CHANGES_BEFORE_AND_AFTER.md](CHANGES_BEFORE_AND_AFTER.md) | What changed in this version, before and after |

`DATABASE_REFERENCE.md` is generated from the live database. After a migration, refresh it:

```bash
cd backend
python scripts/apply_table_comments.py
python scripts/generate_db_reference.py
```
