diff --git a/README.md b/README.md index f97559a..17e081c 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,20 @@ bellsystems-admin/ └── .env ``` +## Shared data contract (Firestore schema v1) + +Firestore is shared with the BellSystems tablet and phone apps (FlutterFlow). Device +documents must follow the schema in the **bellsystems-schema** repo +(`v1/firestore.schema.json`) — one wrongly typed field makes the apps silently hide the +device from its users. + +- All device writes go through `backend/devices/firestore_v1.py`. +- Adding or changing a shared field: update the schema repo first, then every app and this + console in the same release. +- Check production data: `node tools/audit.js ` in the schema repo. + +Details: the "Firestore Schema v1" section of `CLAUDE.md`. + ## Documentation See `BellSystems_AdminPanel_Strategy.md` for the full architecture and build plan. \ No newline at end of file