{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/trust_domains.schema.json",
  "title": "tables/trust_domains.json",
  "description": "The rows of the table trust_domains that belong to the workspace, one object per row, keyed by the database's column names.",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "organization_id": {
        "type": "string",
        "format": "uuid"
      },
      "hostname": {
        "type": "string"
      },
      "status": {
        "type": "string",
        "enum": [
          "pending",
          "provisioning",
          "active",
          "failed"
        ]
      },
      "edge_hostname_id": {
        "type": [
          "string",
          "null"
        ]
      },
      "edge_detail": {
        "type": [
          "string",
          "null"
        ]
      },
      "last_ownership": {
        "type": [
          "string",
          "null"
        ]
      },
      "last_routing": {
        "type": [
          "string",
          "null"
        ]
      },
      "last_edge": {
        "type": [
          "string",
          "null"
        ]
      },
      "last_checked_at": {
        "type": [
          "string",
          "null"
        ],
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "failures": {
        "type": "integer"
      },
      "activated_at": {
        "type": [
          "string",
          "null"
        ],
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "failed_at": {
        "type": [
          "string",
          "null"
        ],
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "requested_by": {
        "type": [
          "string",
          "null"
        ],
        "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": [
      "organization_id",
      "hostname",
      "status",
      "edge_hostname_id",
      "edge_detail",
      "last_ownership",
      "last_routing",
      "last_edge",
      "last_checked_at",
      "failures",
      "activated_at",
      "failed_at",
      "requested_by",
      "created_at",
      "updated_at",
      "revision"
    ],
    "additionalProperties": false
  }
}
