{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mri-software/json-schema/mri-software-audit-response-schema.json",
  "title": "AuditResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mri-software-audit-log-api-openapi.yml#/components/schemas/AuditResponse",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "audit_timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "audit_event": {
      "description": "Type of audit log: INSERT, UPDATE or DELETE",
      "type": "string",
      "format": "string"
    },
    "audit_table": {
      "description": "Table name of the record change",
      "type": "string",
      "format": "string"
    },
    "user_name": {
      "description": "Email address of the logged in user user which initiated the record change",
      "type": "string",
      "format": "string"
    },
    "user_type": {
      "description": "User type who initiated the record change. Options are api, kiosk, staff, support",
      "type": "string",
      "format": "string"
    },
    "record_id": {
      "description": "The unique identifier of the record that was changed",
      "type": "integer",
      "format": "int32"
    },
    "data_changed": {
      "description": "An array of columns with the changes that were made during the record change",
      "type": "object",
      "format": "object"
    },
    "data_old": {
      "description": "An array of columns from the original record before modification",
      "type": "object",
      "format": "object"
    },
    "data_new": {
      "description": "An array of columns from the original record after modification",
      "type": "object",
      "format": "object"
    }
  },
  "type": "object"
}