- LocalFileEditTime = Time at which file was modified in local
- CloudFileEditTime = Time at which file was modified in cloud
- FileCloudId = Cloud ID of file
- Download & Insert if FileCloudId is not found in local database
- Download & Update if LocalFileEditTime < CloudFileEditTime
- Upload & Insert -> FileCloudId == Null in local database
- Upload & Update -> LocalFileEditTime > CloudFileEditTime
- Local : delete if permanently deleted in cloud
- Cloud : If deleted date is older than one month & permanently deleted