weight.py 575 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. from sqlalchemy import Column, Float, Integer, String
  3. from app.db.session import Base
  4. class VAVRoomWeight(Base):
  5. __tablename__ = "vav_room_weights"
  6. id = Column(Integer, primary_key=True, index=True)
  7. default_weight = Column(Float)
  8. project_id = Column(String, index=True, nullable=False)
  9. space_id = Column(String, index=True, nullable=False)
  10. vav_box_id = Column(String, index=True, nullable=False)
  11. temporary_weight = Column(Float, default=0.0)
  12. temporary_weight_update_time = Column(String, default="20201111110400")