You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 11 месеца
преди 1 година
преди 11 месеца
123456789101112131415
  1. from sqlalchemy import Column, Float, Integer, String, ForeignKey, LargeBinary
  2. from sqlalchemy.orm import relationship
  3. from db.base import Base
  4. class CarPart(Base):
  5. Id = Column(Integer, primary_key=True, index=True)
  6. # a list of weak entities of class CarPart
  7. ParentId = Column(Integer, ForeignKey("maintenancejob.Id"), nullable=False)
  8. parent = relationship("MaintenanceJob", back_populates="CarParts")
  9. Name = Column(String, nullable=False)
  10. Number = Column(String, nullable=False)
  11. Condition = Column(String, nullable=False)
  12. ImageURL = Column(LargeBinary, nullable=False)
  13. Cost = Column(Float, nullable=False)