{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/management_reviews.schema.json",
  "title": "tables/management_reviews.json",
  "description": "The rows of the table management_reviews 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"
      },
      "status": {
        "type": "string",
        "enum": [
          "draft",
          "recorded"
        ]
      },
      "held_on": {
        "type": "string",
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "attendees": {
        "type": "string"
      },
      "previous_actions": {
        "type": [
          "string",
          "null"
        ]
      },
      "context_changes": {
        "type": [
          "string",
          "null"
        ]
      },
      "interested_parties": {
        "type": [
          "string",
          "null"
        ]
      },
      "performance": {
        "type": [
          "string",
          "null"
        ]
      },
      "feedback": {
        "type": [
          "string",
          "null"
        ]
      },
      "risk_status": {
        "type": [
          "string",
          "null"
        ]
      },
      "improvement_opportunities": {
        "type": [
          "string",
          "null"
        ]
      },
      "decisions": {
        "type": [
          "string",
          "null"
        ]
      },
      "figures": {
        "type": [
          "object",
          "array",
          "string",
          "number",
          "boolean",
          "null"
        ]
      },
      "recorded_at": {
        "type": [
          "string",
          "null"
        ],
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "recorded_by": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "created_by": {
        "type": "string",
        "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",
      "status",
      "held_on",
      "attendees",
      "previous_actions",
      "context_changes",
      "interested_parties",
      "performance",
      "feedback",
      "risk_status",
      "improvement_opportunities",
      "decisions",
      "figures",
      "recorded_at",
      "recorded_by",
      "created_by",
      "created_at",
      "updated_at",
      "revision"
    ],
    "additionalProperties": false
  }
}
