add room db
This commit is contained in:
@@ -576,6 +576,14 @@ GET /properties/{propertyId}/bookings/{bookingId}/balance
|
||||
- Imports/packages follow the structure above.
|
||||
- Build passes: `./gradlew :app:compileDebugKotlin`.
|
||||
|
||||
### Room DB synchronization rule (mandatory)
|
||||
|
||||
- For any editable API-backed field, follow this write path only: `UI action -> server request -> Room DB update -> UI reacts from Room observers`.
|
||||
- Server is source of truth; do not bypass server by writing final business state directly from UI.
|
||||
- UI must render from Room-backed state, not from one-off API responses or direct text mutation.
|
||||
- Avoid forced full refresh after each mutation unless strictly required by backend limitations; prefer targeted Room updates for linked entities.
|
||||
- On mutation failure, keep prior DB state unchanged and surface error state to UI.
|
||||
|
||||
### Guest Documents Authorization (mandatory)
|
||||
|
||||
- View access: `ADMIN`, `MANAGER` (and super admin).
|
||||
|
||||
Reference in New Issue
Block a user