{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/training_monthly_snapshots.schema.json",
  "title": "tables/training_monthly_snapshots.json",
  "description": "The rows of the table training_monthly_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"
      },
      "month": {
        "type": "string",
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "scope_kind": {
        "type": "string",
        "enum": [
          "organization",
          "department",
          "group"
        ]
      },
      "scope_key": {
        "type": "string"
      },
      "scope_label": {
        "type": "string"
      },
      "people": {
        "type": "integer"
      },
      "audience": {
        "type": "integer"
      },
      "current": {
        "type": "integer"
      },
      "not_yet_due": {
        "type": "integer"
      },
      "overdue": {
        "type": "integer"
      },
      "no_access": {
        "type": "integer"
      },
      "exempt": {
        "type": "integer"
      },
      "completions": {
        "type": "integer"
      },
      "risk_mean": {
        "type": [
          "integer",
          "null"
        ]
      },
      "risk_low": {
        "type": "integer"
      },
      "risk_medium": {
        "type": "integer"
      },
      "risk_high": {
        "type": "integer"
      },
      "risk_critical": {
        "type": "integer"
      },
      "computed_on": {
        "type": "string",
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "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$"
      }
    },
    "required": [
      "id",
      "organization_id",
      "month",
      "scope_kind",
      "scope_key",
      "scope_label",
      "people",
      "audience",
      "current",
      "not_yet_due",
      "overdue",
      "no_access",
      "exempt",
      "completions",
      "risk_mean",
      "risk_low",
      "risk_medium",
      "risk_high",
      "risk_critical",
      "computed_on",
      "created_at",
      "updated_at"
    ],
    "additionalProperties": false
  }
}
