sync_status
Progress of each data down-sync step, one row per sync key.
Table factsheetagri_db
- Written by
DataSetupViewModel/UnitDataSetupViewModel
- Read by
- Data down-sync screen (
SyncStatusAdapter) - Home badge (
getPartialSyncCountLiveData) getIncompleteSyncCount
- Data down-sync screen (
- Source
- data/src/main/java/org/mindtree/app/agricultor/data/entity/DataSyncStatus.kt
Columns
| Column | Type | Null | Key | Meaning |
|---|---|---|---|---|
id | INTEGER | No | PK | Local autoincrement. Autoincrement. |
sync_key | TEXT | No | app_configs | product_master | practice_master | farmers | ie_role_map | farmer_assets | farmer_asset_attachments | portfolio | portfolio_attachments | farming_model | farming_model_attachments | compact_block. | |
status | TEXT | No | e.g. SUCCESS | PARTIAL_SUCCESS | failure states. | |
last_fetched_at | INTEGER | Yes | Last fetch time (epoch millis). | |
error_message | TEXT | Yes | Last error text. |
Notes
- Possible bug · unverified no UNIQUE index on sync_key; uniqueness only in code.