{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "document-order.schema.json",
    "title": "Order",
    "description": "Событие смены статуса документа",
    "properties": {
      "document": {
          "$ref": "document.schema.json",
      },
      "user": {
          "$ref": "user.schema.json",
          "description": "Пользователь, который выполнил переход"
      },
      "customer": {
          "$ref": "customer.schema.json",
          "description": "Клиент, пользователь которого выполнил переход"
      },
      "userRole":{
          "$ref": "common/_common.schema.json#/userRole",
          "description": "Роль пользователя, который выполнил переход"
      },
      "statusBefore":{
          "type":  "string",
          "description": "Статс до перехода"
      },
      "statusAfter":{
          "type":  "string",
          "description": "Статс после перехода"
      },
      "createdAt": {
          "description": "Дата и время перехода",
          "type": "string",
          "format": "datetime"
      }
    }
}