{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/vulnerability_events.schema.json",
  "title": "tables/vulnerability_events.json",
  "description": "The rows of the table vulnerability_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"
      },
      "vulnerability_id": {
        "type": "string",
        "format": "uuid"
      },
      "kind": {
        "type": "string",
        "enum": [
          "triage",
          "start",
          "fix",
          "verify",
          "close",
          "accept_risk",
          "false_positive",
          "reopen",
          "created",
          "updated",
          "detected_again",
          "source_cleared",
          "acceptance_expired",
          "handed_over"
        ]
      },
      "from_status": {
        "type": [
          "string",
          "null"
        ],
        "enum": [
          "new",
          "triaged",
          "in_remediation",
          "fixed",
          "verified",
          "closed",
          "risk_accepted",
          "false_positive",
          null
        ]
      },
      "to_status": {
        "type": [
          "string",
          "null"
        ],
        "enum": [
          "new",
          "triaged",
          "in_remediation",
          "fixed",
          "verified",
          "closed",
          "risk_accepted",
          "false_positive",
          null
        ]
      },
      "actor_user_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "connector": {
        "type": [
          "string",
          "null"
        ]
      },
      "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",
      "vulnerability_id",
      "kind",
      "from_status",
      "to_status",
      "actor_user_id",
      "connector",
      "note",
      "at"
    ],
    "additionalProperties": false
  }
}
