{
  "type": "record",
  "name": "nrFileIngestion",
  "namespace": "com.orchard.kafka.data.highway",
  "fields": [
    { "name": "filename", "type": "string" },
    { "name": "originalFilename", "type": [ "string", "null" ] },
    { "name": "lastUpdated", "type": "string" },
    { "name": "totalRows", "type": [ "int", "null" ] },
    { "name": "rowNumber", "type": [ "int", "null" ] },
    {
      "name": "event",
      "type": {
        "type": "enum",
        "name": "eventOptions",
        "symbols": [
          "validation_started", "validation_failed", "validation_completed",
          "processing_started", "processing_failed", "processing_completed",
          "report_started", "report_failed", "report_completed", "upload_started",
          "av_complete", "av_error"
        ],
        "doc": "Status options for event field in lambda-ingest messages"
      }
    },
    { "name": "identityId", "type": "string" },
    { "name": "profileId", "type": "string" }
  ]
}
