{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/access_accounts.schema.json",
  "title": "tables/access_accounts.json",
  "description": "The rows of the table access_accounts 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"
      },
      "system_id": {
        "type": "string",
        "format": "uuid"
      },
      "external_id": {
        "type": [
          "string",
          "null"
        ]
      },
      "label": {
        "type": "string"
      },
      "display_name": {
        "type": [
          "string",
          "null"
        ]
      },
      "email": {
        "type": [
          "string",
          "null"
        ]
      },
      "personnel_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "owner_membership_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "privileged": {
        "type": "boolean"
      },
      "granted_until": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "purpose": {
        "type": "string"
      },
      "status": {
        "type": "string",
        "enum": [
          "active",
          "disabled",
          "removed"
        ]
      },
      "first_seen_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "last_seen_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "kind": {
        "type": "string",
        "enum": [
          "person",
          "service",
          "shared"
        ]
      },
      "mfa_enrolled": {
        "type": [
          "boolean",
          "null"
        ]
      },
      "mfa_enforced": {
        "type": [
          "boolean",
          "null"
        ]
      },
      "mfa_read_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "mfa_insecure": {
        "type": [
          "boolean",
          "null"
        ]
      },
      "source_created_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "password_enabled": {
        "type": [
          "boolean",
          "null"
        ]
      },
      "access_keys_active": {
        "type": [
          "integer",
          "null"
        ]
      },
      "access_key_oldest_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "credentials_read_on": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "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",
      "system_id",
      "external_id",
      "label",
      "display_name",
      "email",
      "personnel_id",
      "owner_membership_id",
      "privileged",
      "granted_until",
      "purpose",
      "status",
      "first_seen_on",
      "last_seen_on",
      "kind",
      "mfa_enrolled",
      "mfa_enforced",
      "mfa_read_on",
      "mfa_insecure",
      "source_created_on",
      "password_enabled",
      "access_keys_active",
      "access_key_oldest_on",
      "credentials_read_on",
      "created_by",
      "created_at",
      "updated_at",
      "revision"
    ],
    "additionalProperties": false
  }
}
