From ae6fb11601cd97659a84dd9905a96f1464c510dc Mon Sep 17 00:00:00 2001 From: Shawn Date: Sat, 23 May 2026 17:28:49 -0400 Subject: [PATCH] docs: add v5 DB schema section (dex_report_date, install_date) --- Home.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Home.md b/Home.md index 66cba2f..f7ac047 100644 --- a/Home.md +++ b/Home.md @@ -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)