{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/trust_faq_entries.schema.json",
  "title": "tables/trust_faq_entries.json",
  "description": "The rows of the table trust_faq_entries 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"
      },
      "question_en": {
        "type": "string"
      },
      "answer_en": {
        "type": "string"
      },
      "question_pl": {
        "type": "string"
      },
      "answer_pl": {
        "type": "string"
      },
      "topic": {
        "type": "string",
        "enum": [
          "general",
          "data",
          "access",
          "incidents",
          "continuity",
          "suppliers",
          "gdpr",
          "nis2",
          "dora",
          "ai_act",
          "other_law"
        ]
      },
      "status": {
        "type": "string",
        "enum": [
          "draft",
          "published"
        ]
      },
      "position": {
        "type": "integer"
      },
      "source_library_entry_id": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "published_by": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "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$"
      },
      "created_by": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "summary_digest": {
        "type": [
          "string",
          "null"
        ]
      },
      "summary_allowed_by": {
        "type": [
          "string",
          "null"
        ],
        "format": "uuid"
      },
      "summary_allowed_at": {
        "type": [
          "string",
          "null"
        ],
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "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",
      "question_en",
      "answer_en",
      "question_pl",
      "answer_pl",
      "topic",
      "status",
      "position",
      "source_library_entry_id",
      "published_by",
      "published_at",
      "created_by",
      "summary_digest",
      "summary_allowed_by",
      "summary_allowed_at",
      "created_at",
      "updated_at",
      "revision"
    ],
    "additionalProperties": false
  }
}
