docs: add v5 DB schema section (dex_report_date, install_date)

2026-05-23 17:28:49 -04:00
parent 0c48e4cae9
commit ae6fb11601
+10
@@ -253,6 +253,16 @@ When building_number is entered in the manual asset form or location form, it au
| `CANTEEN_DB_PATH` | `./assets.db` |
| `CANTEEN_SKIP_AUTH` | (empty) |
## DB Schema
### Assets table (v5)
Two new columns added May 2026:
- `dex_report_date TEXT DEFAULT NULL` — Cantaloupe 'Last Dex Report Time' as ISO datetime
- `install_date TEXT DEFAULT NULL` — deployment date (from Excel 'Deployed' + 'Added Date', or set on replacement approval)
Migration pattern: PRAGMA table_info + ALTER TABLE ADD COLUMN (idempotent, runs in init_db()).
Applied in both server.py and admin_server.py.
## Links
- [README](https://gitea.ourpad.casa/shawn/canteen-asset-tracker/src/branch/main/README.md)
- [PROJECT.md](https://gitea.ourpad.casa/shawn/canteen-asset-tracker/src/branch/main/PROJECT.md)