diff --git a/backend/app/main.py b/backend/app/main.py index a56aec1..c697991 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -204,7 +204,7 @@ def send_completed_inspection_to_n8n(inspection, db): # No lanzamos excepción para no interrumpir el flujo normal -BACKEND_VERSION = "1.0.63" +BACKEND_VERSION = "1.0.64" app = FastAPI(title="Checklist Inteligente API", version=BACKEND_VERSION) # S3/MinIO configuration diff --git a/backend/app/models.py b/backend/app/models.py index 30f7f38..ea1ef42 100644 --- a/backend/app/models.py +++ b/backend/app/models.py @@ -108,7 +108,7 @@ class Inspection(Base): vehicle_brand = Column(String(50)) vehicle_model = Column(String(100)) vehicle_km = Column(Integer) - client_name = Column(String(200)) + order_number = Column(String(200)) # Nº de Pedido # Datos del mecánico mechanic_employee_code = Column(String(50)) # Código de operario del mecánico diff --git a/backend/app/schemas.py b/backend/app/schemas.py index f3e20d8..32946f4 100644 --- a/backend/app/schemas.py +++ b/backend/app/schemas.py @@ -168,7 +168,7 @@ class InspectionBase(BaseModel): vehicle_brand: Optional[str] = None vehicle_model: Optional[str] = None vehicle_km: Optional[int] = None - client_name: Optional[str] = None + order_number: Optional[str] = None # Nº de Pedido mechanic_employee_code: Optional[str] = None class InspectionCreate(InspectionBase): diff --git a/backend/migrations/rename_client_name_to_order_number.sql b/backend/migrations/rename_client_name_to_order_number.sql new file mode 100644 index 0000000..2b163a1 --- /dev/null +++ b/backend/migrations/rename_client_name_to_order_number.sql @@ -0,0 +1,10 @@ +-- Migration: Rename client_name to order_number +-- Date: 2025-11-27 +-- Description: Cambiar campo client_name a order_number en tabla inspections + +-- Renombrar la columna +ALTER TABLE inspections +RENAME COLUMN client_name TO order_number; + +-- Actualizar comentario de la columna +COMMENT ON COLUMN inspections.order_number IS 'Número de pedido asociado a la inspección'; diff --git a/frontend/package.json b/frontend/package.json index 924f996..26eb76f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "checklist-frontend", "private": true, - "version": "1.0.57", + "version": "1.0.58", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index fc87f67..635ad71 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -2671,13 +2671,13 @@ function InspectionDetailModal({ inspection, user, onClose, onUpdate }) { ) : ( <> - {/* Client Info */} + {/* Order Info */}