25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

drivetask.py 438 B

1234567891011
  1. from sqlalchemy import Column, Integer, String, ForeignKey, ARRAY
  2. from db.base import Base
  3. class DriveTask(Base):
  4. Id = Column(Integer, primary_key=True, index=True)
  5. DriverId = Column(ForeignKey("user.Id"), nullable=False)
  6. Description = Column(String, nullable=True)
  7. Status = Column(String, nullable=False)
  8. StartLocation = Column(ARRAY(String), nullable=False)
  9. EndLocation = Column(ARRAY(String), nullable=False)