Data
Synchronization Process
The synchronization process follows these steps:
Check for internet connectivity
Upload local changes to the PostgreSQL database
Download changes from the PostgreSQL database
Detect and resolve conflicts
Update local items’ sync status
Conflict Resolution
When a conflict is detected during synchronization:
The item’s sync status is set to “conflict”
During the next sync attempt, a dialog appears for each conflicted item
The user can choose to keep the local version or use the remote version
The chosen version is then marked for synchronization in the next sync attempt
Data Model
Items have the following properties:
id: Unique identifier (UUID)
name: Item name
description: Item description
created_at: Timestamp of creation
updated_at: Timestamp of last update
version: Integer representing the revision number
sync_status: Current synchronization status (synced, modified, deleted, or conflict)