Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 1 gada
pirms 1 gada
1234567891011121314
  1. from sqlalchemy import Column, Integer, String, ForeignKey, ARRAY, DateTime
  2. from db.base import Base
  3. from sqlalchemy.orm import relationship
  4. class DriveTask(Base):
  5. Id = Column(Integer, primary_key=True, index=True)
  6. DriverId = Column(ForeignKey("user.Id"), nullable=False)
  7. CreatedBy = relationship("User", back_populates="driveTasks")
  8. Description = Column(String, nullable=True)
  9. Status = Column(String, nullable=False)
  10. StartLocation = Column(ARRAY(String), nullable=False)
  11. EndLocation = Column(ARRAY(String), nullable=False)
  12. StartDateTime = Column(DateTime, nullable=False)