{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/access_review_items.schema.json",
  "title": "tables/access_review_items.json",
  "description": "The rows of the table access_review_items 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"
      },
      "review_id": {
        "type": "string",
        "format": "uuid"
      },
      "account_id": {
        "type": "string",
        "format": "uuid"
      },
      "label_at_review": {
        "type": "string"
      },
      "privileged_at_review": {
        "type": "boolean"
      },
      "decision": {
        "type": [
          "string",
          "null"
        ],
        "enum": [
          "keep",
          "modify",
          "revoke",
          null
        ]
      },
      "reason": {
        "type": [
          "string",
          "null"
        ]
      },
      "decided_by": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "decided_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "revoked_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "revoke_confirmed_by": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "created_at": {
        "type": "string",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "updated_at": {
        "type": "string",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "revision": {
        "type": "integer"
      }
    },
    "required": [
      "id",
      "organization_id",
      "review_id",
      "account_id",
      "label_at_review",
      "privileged_at_review",
      "decision",
      "reason",
      "decided_by",
      "decided_on",
      "revoked_on",
      "revoke_confirmed_by",
      "created_at",
      "updated_at",
      "revision"
    ],
    "additionalProperties": false
  }
}
