{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/pentest_engagement_events.schema.json",
  "title": "tables/pentest_engagement_events.json",
  "description": "The rows of the table pentest_engagement_events that belong to the workspace, one object per row, keyed by the database's column names.",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string",
        "format": "uuid"
      },
      "organization_id": {
        "type": "string",
        "format": "uuid"
      },
      "engagement_id": {
        "type": "string",
        "format": "uuid"
      },
      "kind": {
        "type": "string",
        "enum": [
          "authorise",
          "withdraw_authorisation",
          "start",
          "finish_testing",
          "deliver_report",
          "request_retest",
          "finish_retest",
          "close",
          "cancel",
          "created",
          "updated",
          "scope_changed",
          "tester_invited",
          "tester_access_granted",
          "tester_access_changed",
          "tester_access_revoked",
          "file_added",
          "finding_reported",
          "finding_retested"
        ]
      },
      "from_status": {
        "type": [
          "string",
          "null"
        ],
        "enum": [
          "planned",
          "authorised",
          "in_progress",
          "reporting",
          "remediation",
          "retest",
          "closed",
          "cancelled",
          null
        ]
      },
      "to_status": {
        "type": [
          "string",
          "null"
        ],
        "enum": [
          "planned",
          "authorised",
          "in_progress",
          "reporting",
          "remediation",
          "retest",
          "closed",
          "cancelled",
          null
        ]
      },
      "actor_user_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "note": {
        "type": [
          "string",
          "null"
        ]
      },
      "at": {
        "type": "string",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      }
    },
    "required": [
      "id",
      "organization_id",
      "engagement_id",
      "kind",
      "from_status",
      "to_status",
      "actor_user_id",
      "note",
      "at"
    ],
    "additionalProperties": false
  }
}
