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

14 lines
328 B
Python

from sqlalchemy import Column, Integer, Float, DateTime, String
from .database import Base
class Record(Base):
__tablename__ = "th"
id = Column(Integer, primary_key=True)
time = Column(DateTime, unique=False, index=True)
temperature = Column(Float)
humidity = Column(Float)
room = Column(String(48))