{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/trust_pages.schema.json",
  "title": "tables/trust_pages.json",
  "description": "The rows of the table trust_pages 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"
      },
      "slug": {
        "type": "string"
      },
      "published": {
        "type": "boolean"
      },
      "published_at": {
        "type": [
          "string",
          "null"
        ],
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "published_by": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "indexable": {
        "type": "boolean"
      },
      "intro_en": {
        "type": "string"
      },
      "intro_pl": {
        "type": "string"
      },
      "contact_email": {
        "type": [
          "string",
          "null"
        ]
      },
      "show_scope": {
        "type": "boolean"
      },
      "show_documents": {
        "type": "boolean"
      },
      "show_evidence": {
        "type": "boolean"
      },
      "show_controls": {
        "type": "boolean"
      },
      "accent": {
        "type": "string",
        "enum": [
          "cobalt",
          "indigo",
          "plum",
          "ocean",
          "wine",
          "graphite"
        ]
      },
      "certification_status": {
        "type": "string",
        "enum": [
          "not_declared",
          "preparing",
          "certified"
        ]
      },
      "certification_body": {
        "type": [
          "string",
          "null"
        ]
      },
      "certificate_number": {
        "type": [
          "string",
          "null"
        ]
      },
      "certificate_valid_until": {
        "type": [
          "string",
          "null"
        ],
        "format": "date",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "target_audit_quarter": {
        "type": [
          "string",
          "null"
        ]
      },
      "brand_color": {
        "type": [
          "string",
          "null"
        ]
      },
      "brand_link_url": {
        "type": [
          "string",
          "null"
        ]
      },
      "enquiries_enabled": {
        "type": "boolean"
      },
      "certificate_standard": {
        "type": [
          "string",
          "null"
        ]
      },
      "assistant_enabled": {
        "type": "boolean"
      },
      "assistant_daily_limit": {
        "type": "integer"
      },
      "assistant_log_days": {
        "type": "integer"
      },
      "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": [
      "organization_id",
      "slug",
      "published",
      "published_at",
      "published_by",
      "indexable",
      "intro_en",
      "intro_pl",
      "contact_email",
      "show_scope",
      "show_documents",
      "show_evidence",
      "show_controls",
      "accent",
      "certification_status",
      "certification_body",
      "certificate_number",
      "certificate_valid_until",
      "target_audit_quarter",
      "brand_color",
      "brand_link_url",
      "enquiries_enabled",
      "certificate_standard",
      "assistant_enabled",
      "assistant_daily_limit",
      "assistant_log_days",
      "created_by",
      "created_at",
      "updated_at",
      "revision"
    ],
    "additionalProperties": false
  }
}
