This commit is contained in:
2026-08-15 14:50:38 +03:30
commit 820f794eca
15 changed files with 871 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://sadtech.ir/schemas/operation.schema.json",
"title": "Operation",
"description": "An operation is a single action that can be performed on the database by sync protocol.",
"type": "object",
"properties": {
"id": {
"description": "The unique identifier of the operation.",
"type": "string"
},
"type": {
"description": "The type of the operation.",
"type": "string",
"enum": [
"insert",
"update",
"delete"
]
},
"device_id": {
"description": "The unique identifier of the device that performed the operation.",
"type": "string"
},
"timestamp": {
"description": "The timestamp of the operation.",
"type": "string",
"format": "int64"
},
"payload": {
"description": "The payload of the operation.",
"type": "object"
},
"entity_type": {
"description": "The type of the entity that the operation is performed on.",
"type": "string"
},
"entity_id": {
"description": "The unique identifier of the entity that the operation is performed on.",
"type": "string"
}
}
}