docs(readme): point to the shared Firestore schema v1 contract

The tablet and phone apps read the same Firestore device documents as the
console; a wrongly typed field makes them silently hide the device. CLAUDE.md
already documents this for Claude sessions; the README now states the rule
for humans too: device writes go through devices/firestore_v1.py, and shared
fields change in the bellsystems-schema repo first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-08 20:49:28 +02:00
co-authored by Claude Opus 5.5
parent 62be80c9d8
commit 5ab87fa9f0
+14
View File
@@ -39,6 +39,20 @@ bellsystems-admin/
└── .env └── .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 <service-account.json>` in the schema repo.
Details: the "Firestore Schema v1" section of `CLAUDE.md`.
## Documentation ## Documentation
See `BellSystems_AdminPanel_Strategy.md` for the full architecture and build plan. See `BellSystems_AdminPanel_Strategy.md` for the full architecture and build plan.