{
  "type": "record",
  "name": "owsContentReview.review",
  "namespace": "com.orchard.kafka.data.highway",
  "fields": [
    {
      "name": "operation",
      "type": {
        "type": "record",
        "name": "operationInformation",
        "fields": [
          {
            "name": "type",
            "type": {
              "type": "enum",
              "name": "operationOptions",
              "symbols": [
                "create",
                "update",
                "patch",
                "delete"
              ]
            },
            "doc": "Operation type."
          },
          {
            "name": "context",
            "type": [
              "null",
              {
                "type": "enum",
                "name": "operationContextOptions",
                "symbols": [
                  "new",
                  "approve",
                  "reject",
                  "escalate",
                  "close",
                  "lock",
                  "unlock"
                ],
                "doc": "Additional information about event."
              }
            ],
            "default": null
          },
          {
            "name": "timestamp",
            "doc": "timestamp of the operation.",
            "type": {
              "type": "long",
              "logicalType": "timestamp-millis"
            }
          }
        ]
      },
      "doc": "Operation information"
    },
    {
      "name": "payload",
      "doc": "Payload information.",
      "type": {
        "type": "record",
        "name": "payloadInformation",
        "fields": [
          {
            "name": "product_id",
            "type": "int",
            "doc": "Product unique identifier generated by art_relations database."
          },
          {
            "name": "review_queue_id",
            "type": "int",
            "doc": "Review unique identifier generated by content_review database."
          },
          {
            "name": "review_note",
            "type": ["null", "string"],
            "doc": "A note from the reviewer regarding the approval / rejection."
          },
          {
            "name": "user_id",
            "type": ["null", "string"],
            "doc": "The user_id of the reviewer who approved / rejected the product."
          },
          {
            "name": "locked_by_user_id",
            "type": [
              "null",
              {
                "type": "string",
                "logicalType": "uuid"
              }
            ],
            "doc": "Orchard Identity Id of user with exclusive access to review this review queue item."
          },
          {
            "name": "locked_until_datetime",
            "type": [
              "null",
              {
                "type": "long",
                "logicalType": "timestamp-micros"
              }
            ],
            "doc": "UTC time when locked_by_user_id will lose exclusive access to review this review queue item."
          },
          {
            "name": "submission_type",
            "type": ["null", "string"],
            "doc": "The submission type of the review."
          }
        ]
      }
    }
  ]
}
