from sqlalchemy import Column, Integer, String, DateTime from ..core.database import Base class LevelData(Base): __tablename__ = "level_data" id = Column(Integer, primary_key=True, index=True, autoincrement=True) linecode = Column(String(100), nullable=False, comment="水准线路编码", index=True) benchmarkids = Column(String(100), comment="工作基点名称序列") wsphigh = Column(String(100), comment="工作基点高程序列(m)") NYID = Column(String(100), nullable=False, comment="期数id", index=True) createDate = Column(DateTime, comment="上传时间") mtype = Column(String(100), comment="水准观测类型")