feat: Refactor DTOs and models to use from_attributes, update database schema references, and implement trailer types
This commit is contained in:
@@ -34,4 +34,4 @@ class DriverCreateDTO(DriverBaseDTO):
|
||||
|
||||
class DriverResponseDTO(DriverBaseDTO):
|
||||
class Config:
|
||||
orm_mode = True
|
||||
from_attributes = True
|
||||
@@ -29,5 +29,5 @@ class Driver(Base):
|
||||
badge_number = Column(String(20), nullable=True)
|
||||
class_type = Column(String(1), nullable=True)
|
||||
unique_badge_number = Column(String(100), nullable=True)
|
||||
company_id = Column(String, ForeignKey("a76.company.id"), nullable=False)
|
||||
tenant_id = Column(String, ForeignKey("a76.tenants.id"), nullable=False)
|
||||
company_id = Column(Integer, ForeignKey("a76.company.id"), nullable=False)
|
||||
tenant_id = Column(Integer, ForeignKey("a76.tenants.id"), nullable=False)
|
||||
Reference in New Issue
Block a user