{
  "type": "record",
  "name": "owsProductDigital",
  "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",
                "delete"
              ]
            },
            "doc": "Operation type."
          },
          {
            "name": "context",
            "type": [
              "null",
              {
                "type": "enum",
                "name": "operationContextOptions",
                "symbols": [
                  "new", "copy", "update", "submit", "unsubmit", "approve"
                ],
                "doc": "Additional information about event."
              }
            ],
            "default": null
          },
          {
            "name": "timestamp",
            "doc": "timestamp of the operation.",
            "type": {
              "type": "long",
              "logicalType": "timestamp-millis"
            }
          },
          {
            "name": "identity_id",
            "doc": "Identity ID of the user who initiated the event.",
            "type": ["null", "string"],
            "default": null
          }
        ]
      },
      "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": "upc",
            "type": ["null", "string"],
            "doc": "Universal Product Code."
          },
          {
            "name": "product_name",
            "type": ["null", "string"],
            "doc": "Product name provided by user."
          },
          {
            "name": "project_id",
            "type": ["null", "int"],
            "doc": "Project id of the product."
          }
        ]
      }
    }
  ]
}
