feat: Refactor DTOs and models to use from_attributes, update database schema references, and implement trailer types
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from sqlalchemy import Column, String, ForeignKey
|
||||
from sqlalchemy import Column, Integer, String, ForeignKey
|
||||
from core.database import Base
|
||||
|
||||
class Trailer(Base):
|
||||
@@ -14,5 +14,5 @@ class Trailer(Base):
|
||||
state = Column(String(30), nullable=True)
|
||||
country = Column(String(3), nullable=True)
|
||||
container_key = Column(String(3), 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