first commit
This commit is contained in:
20
app/models/auto.py
Normal file
20
app/models/auto.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from sqlalchemy import Column, Integer,\
|
||||
DECIMAL, Text,\
|
||||
VARCHAR, TIMESTAMP, Date
|
||||
import datetime
|
||||
from app.database import Base
|
||||
|
||||
|
||||
class Auto_Temp(Base):
|
||||
__tablename__ = 'auto_temp'
|
||||
|
||||
id = Column(Integer,
|
||||
primary_key=True,
|
||||
autoincrement=True,
|
||||
unique=False)
|
||||
todays_date = Column(TIMESTAMP(), default=datetime.utcnow())
|
||||
temp = Column(DECIMAL(50, 2))
|
||||
temp_max = Column(DECIMAL(50, 2))
|
||||
temp_min = Column(DECIMAL(50, 2))
|
||||
temp_avg = Column(DECIMAL(50, 2))
|
||||
degree_day = Column(Integer)
|
||||
Reference in New Issue
Block a user