1.补充数据加到error表中,推理的改回之前的

This commit is contained in:
whm
2026-03-16 10:59:18 +08:00
parent 65744e28dd
commit d80dd0f5ec
5 changed files with 66 additions and 22 deletions

View File

@@ -0,0 +1,10 @@
from sqlalchemy import Column, Integer, String
from ..core.database import Base
class ErrorLinecode(Base):
"""推理推不出来的水准线路(如全为冬休),记录到该表。数据库表 id 必须为 AUTO_INCREMENT。"""
__tablename__ = "error_linecode"
id = Column(Integer, primary_key=True, index=True, autoincrement=True)
linecode = Column(String(255), nullable=False, comment="水准线路编码", index=True)

View File

@@ -5,6 +5,7 @@ from ..core.database import Base
class LoseData(Base):
"""缺失数据记录表:记录各水准线路(期数)的原始/沉降数据缺失情况"""
__tablename__ = "lose_data"
__table_args__ = {"extend_existing": True}
id = Column(Integer, primary_key=True, index=True, autoincrement=True, comment="ID")
account_id = Column(Integer, nullable=False, comment="账户id", index=True)