Files
plantillas-proyectos/backend/api/v1/modules/a76/transportation/drivers/dto.py
acazares aa35635397 feat: Implement customs brokers management interface
- Added a data table for displaying customs brokers with columns for key, name, type, license, RFC, email, phone, city, and actions.
- Created a dialog for adding new customs brokers with a form for inputting necessary details.
- Implemented actions for viewing details and deleting customs brokers with confirmation dialogs.
- Integrated search functionality to find customs brokers by their key.
- Established server-side loading for the customs brokers page to handle authentication and data retrieval.
2025-11-12 16:57:15 -06:00

42 lines
1008 B
Python

from typing import Optional
from pydantic import BaseModel
class DriverBaseDTO(BaseModel):
transporter_key: str
line: int
driver_name: Optional[str]
license_number: Optional[str]
express_line_id: Optional[str]
ace_id: Optional[str]
birth_date: Optional[int]
gender: Optional[str]
birth_country: Optional[str]
hazardous_material_auth: Optional[str]
hazardous_material_state: Optional[str]
first_name: Optional[str]
last_name: Optional[str]
id_key1: Optional[str]
id_number1: Optional[str]
id_state1: Optional[str]
id_country1: Optional[str]
id_key2: Optional[str]
id_number2: Optional[str]
id_state2: Optional[str]
id_country2: Optional[str]
badge_number: Optional[str]
class_type: Optional[str]
unique_badge_number: Optional[str]
company_id: str
tenant_id: str
class DriverCreateDTO(DriverBaseDTO):
pass
class DriverResponseDTO(DriverBaseDTO):
class Config:
from_attributes = True