mvp
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user