{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/access_systems.schema.json",
  "title": "tables/access_systems.json",
  "description": "The rows of the table access_systems 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"
      },
      "name": {
        "type": "string"
      },
      "kind": {
        "type": "string",
        "enum": [
          "saas",
          "infrastructure",
          "internal_application",
          "database",
          "network",
          "physical",
          "other"
        ]
      },
      "description": {
        "type": "string"
      },
      "owner_membership_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "holds_personal_data": {
        "type": "boolean"
      },
      "holds_customer_data": {
        "type": "boolean"
      },
      "review_interval_months": {
        "type": "integer"
      },
      "source_kind": {
        "type": "string",
        "enum": [
          "manual",
          "csv",
          "connector"
        ]
      },
      "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",
      "name",
      "kind",
      "description",
      "owner_membership_id",
      "holds_personal_data",
      "holds_customer_data",
      "review_interval_months",
      "source_kind",
      "created_by",
      "created_at",
      "updated_at",
      "revision"
    ],
    "additionalProperties": false
  }
}
