{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TaskLogRecord",
  "title": "TaskLogRecord",
  "type": "object",
  "description": "A single task execution log entry with KPI variable values",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "Unique identifier of the log record"
    },
    "taskName": {
      "type": "string",
      "description": "Name of the bot task"
    },
    "runDate": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp of the bot run"
    },
    "variables": {
      "type": "object",
      "description": "Map of KPI variable names to their recorded values for this run",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}