feat: Update Route model with 3 new fields
This commit is contained in:
parent
39fde27273
commit
a6f830b3e2
@ -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")
|
Loading…
x
Reference in New Issue
Block a user