{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TableDefinition",
  "title": "TableDefinition",
  "type": "object",
  "description": "A table definition within an extraction template",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the table to extract"
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The column name"
          },
          "data_type": {
            "type": "string",
            "description": "The expected data type of the column",
            "enum": [
              "string",
              "number",
              "date",
              "currency",
              "boolean"
            ]
          }
        }
      },
      "description": "The expected columns in the table"
    }
  }
}