在账号获取的接口加入了账号最大变化量
This commit is contained in:
@@ -14,6 +14,7 @@ class Account(Base):
|
||||
created_at = Column(DateTime, server_default=func.now(), comment="创建时间")
|
||||
updated_at = Column(DateTime, server_default=func.now(), onupdate=func.now(), comment="更新时间")
|
||||
update_time = Column(String(1000), nullable=False, comment="更新时间跨度")
|
||||
max_variation = Column(Integer, default=1, comment="变化量的绝对值,单位是毫米")
|
||||
|
||||
|
||||
# 模型转字典
|
||||
|
||||
@@ -5,8 +5,11 @@ class DailyData(Base):
|
||||
__tablename__ = "daily"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True, autoincrement=True)
|
||||
user_id = Column(Integer, nullable=False, comment="用户id")
|
||||
account_id = Column(Integer, nullable=False, comment="账户id")
|
||||
point_id = Column(String(100), comment="测点id")
|
||||
NYID = Column(String(100), nullable=False, comment="期数id")
|
||||
linecode = Column(String(255), nullable=False, comment="水准线路编码")
|
||||
section_id = Column(String(255), nullable=False, comment="所属断面id")
|
||||
section_id = Column(String(255), nullable=False, comment="所属断面id")
|
||||
remaining = Column(Integer, nullable=False, comment="剩余天数")
|
||||
user_id = Column(Integer, default=1, nullable=False, comment="用户id")
|
||||
|
||||
Reference in New Issue
Block a user