from pydantic import BaseModel
from typing import Optional

class IncidenSchema(BaseModel):
    id: Optional[int]
    
    ver_registro: str
    codigo: str
    fecha_registro: str
    titulo: str
    cliente: str
    estado: str
    fecha_ultima_modificacion: str
    subestado: str
    tecnico_segunda_linea: str
    notificado_por: str
    registrado_por: str
    tiempo_resolucion_horas_minutos: str
    tipo: str
    tiempo_resolucion: str
    intentos_solucion: str
    caducada: str
    fecha_firma_cierre: str
    firma_registro: str
    firma_solucion: str
    accion_a_realizar: str
    tiempo_atencion_horas_minutos: str
    tiempo_atencion: str
    horas_dedicadas: str
    fecha_firma_solucion: str
    tiempo_primera_respuesta_horas_minutos: str
    categoria: str
    resolucion: str
    solucion_para_usuario: str
    incidencia_peticion_principal: str
    descripcion: str
    aplica_a: str
    comentarios_cierre: str
    escalado: str
    ticket_aplica_posible_problema: str
    estado_autorizacion: str
    fecha_estimada_resolucion: str
    fecha_estimada_respuesta: str
    firma_registro: str
    firma_cierre_revocacion_solucion: str
    grupo: str
    notificado_por_username: str
    origen: str
    prioridad: str
    responsable_ultima_modificacion: str
    escalado_proveedor: str
    servicio: str
    servicio_primera_linea: str
    sla: str
    tiempo_primera_respuesta: str
    tiempo_cierre: str
    tiempo_cierre_horas_minutos: str