{
  "name": "SupportTicket",
  "type": "object",
  "properties": {
    "ticket_number": {
      "type": "string",
      "description": "N\u00famero \u00fanico del ticket, ej: TKT-000123"
    },
    "subject": {
      "type": "string",
      "description": "Asunto del ticket"
    },
    "category": {
      "type": "string",
      "enum": [
        "dep\u00f3sito",
        "retiro",
        "operaciones",
        "verificaci\u00f3n",
        "seguridad",
        "t\u00e9cnico",
        "otro"
      ],
      "description": "Categor\u00eda del ticket"
    },
    "status": {
      "type": "string",
      "enum": [
        "abierto",
        "en_progreso",
        "resuelto",
        "cerrado"
      ],
      "default": "abierto",
      "description": "Estado del ticket"
    },
    "messages": {
      "type": "array",
      "description": "Historial de mensajes del ticket",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          }
        }
      },
      "default": []
    },
    "user_email": {
      "type": "string",
      "description": "Email del usuario"
    }
  },
  "required": [
    "subject",
    "category"
  ]
}