'update
This commit is contained in:
13
models.py
Normal file
13
models.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from sqlalchemy import Column, Integer, String, Float
|
||||
from database import Base
|
||||
# from .database import Base
|
||||
|
||||
|
||||
class CityWeather(Base):
|
||||
__tablename__ = "citys"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
city_name = Column(String(50), unique=True, index=True, nullable=False)
|
||||
temperature = Column(Float, nullable=False)
|
||||
weather = Column(String(100))
|
||||
other_info = Column(String(200))
|
||||
Reference in New Issue
Block a user