27 lines
1.0 KiB
JSON
27 lines
1.0 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://sadtech.ir/schemas/snapshot.schema.json",
|
|
"title": "Snapshot",
|
|
"description": "A snapshot is a complete copy of the database on the server.",
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "The unique identifier of the snapshot.",
|
|
"type": "string"
|
|
},
|
|
"cursor": {
|
|
"description": "The cursor is a string that represents the last known state of the database on the device. It is used to determine which operations need to be sent to the device.",
|
|
"type": "integer"
|
|
},
|
|
"data": {
|
|
"description": "The data is a complete copy of the database on the server. It is sent to the device when the device's local database is out of sync with the server's database.",
|
|
"type": "object"
|
|
},
|
|
"timestamp": {
|
|
"description": "The timestamp of the snapshot.",
|
|
"type": "string",
|
|
"format": "int64"
|
|
}
|
|
}
|
|
}
|