数据查询完善
This commit is contained in:
@@ -13,4 +13,4 @@ class Account(Base):
|
||||
project_name = Column(String(1000), comment="项目名称")
|
||||
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), comment="更新时间跨度")
|
||||
update_time = Column(String(1000), nullable=False, comment="更新时间跨度")
|
||||
@@ -1,7 +1,5 @@
|
||||
from sqlalchemy import Column, Integer, String
|
||||
from typing import List
|
||||
from ..core.database import Base
|
||||
from .original_data import OriginalData
|
||||
|
||||
class LevelData(Base):
|
||||
__tablename__ = "level_data"
|
||||
@@ -11,6 +9,4 @@ class LevelData(Base):
|
||||
benchmarkids = Column(String(100), comment="工作基点名称序列")
|
||||
wsphigh = Column(String(100), comment="工作基点高程序列(m)")
|
||||
NYID = Column(String(100), nullable=False, comment="期数id", index=True)
|
||||
createDate = Column(String(100), comment="上传时间")
|
||||
|
||||
originalDatas = List[OriginalData] = []
|
||||
createDate = Column(String(100), comment="上传时间")
|
||||
@@ -1,7 +1,5 @@
|
||||
from sqlalchemy import Column, Integer, String
|
||||
from typing import List
|
||||
from ..core.database import Base
|
||||
from .checkpoint import Checkpoint
|
||||
|
||||
class SectionData(Base):
|
||||
__tablename__ = "section_data"
|
||||
@@ -14,6 +12,4 @@ class SectionData(Base):
|
||||
status = Column(String(100), nullable=False, comment="断面状态")
|
||||
number = Column(String(100), nullable=False, comment="所在桥梁墩(台)编号", index=True)
|
||||
transition_paragraph = Column(String(100), comment="过渡段")
|
||||
section_id = Column(String(100), nullable=False, comment="断面id", index=True)
|
||||
|
||||
Checkpoints = List[Checkpoint]
|
||||
section_id = Column(String(100), nullable=False, comment="断面id", index=True)
|
||||
Reference in New Issue
Block a user