feat: Update Route model with 3 new fields

This commit is contained in:
Backend IM Bot 2025-04-09 13:24:34 +00:00
parent 39fde27273
commit a6f830b3e2

View File

@ -17,5 +17,8 @@ class Route(Base):
duration = Column(Integer, nullable=False)
created_at = Column(DateTime, default=func.now())
updated_at = Column(DateTime, default=func.now(), onupdate=func.now())
waypoints = Column(ARRAY(String), nullable=True)
optimized_distance = Column(Integer, nullable=True)
optimized_duration = Column(Integer, nullable=True)
shipments = relationship("Shipment", back_populates="route")