{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/readiness_snapshots.schema.json",
  "title": "tables/readiness_snapshots.json",
  "description": "The rows of the table readiness_snapshots 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"
      },
      "assessment_id": {
        "type": "string",
        "format": "uuid"
      },
      "pack_key": {
        "type": "string"
      },
      "pack_version": {
        "type": "string"
      },
      "model_version": {
        "type": "string"
      },
      "kind": {
        "type": "string",
        "enum": [
          "baseline",
          "checkpoint"
        ]
      },
      "summary": {
        "type": [
          "object",
          "array",
          "string",
          "number",
          "boolean",
          "null"
        ]
      },
      "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$"
      }
    },
    "required": [
      "id",
      "organization_id",
      "assessment_id",
      "pack_key",
      "pack_version",
      "model_version",
      "kind",
      "summary",
      "created_by",
      "created_at"
    ],
    "additionalProperties": false
  }
}
