更新登录页及优化相关功能
This commit is contained in:
@@ -193,6 +193,47 @@ class BizProductionLine(Base):
|
||||
)
|
||||
|
||||
|
||||
class BizTunnel(Base):
|
||||
"""客户现场隧道主数据表。"""
|
||||
|
||||
__tablename__ = 'biz_tunnel'
|
||||
__table_args__ = (
|
||||
UniqueConstraint('site_id', 'tunnel_code', name='uq_biz_tunnel_site_code'),
|
||||
CheckConstraint("status IN ('0', '1')", name='ck_biz_tunnel_status'),
|
||||
{'comment': '客户现场隧道主数据表'},
|
||||
)
|
||||
|
||||
tunnel_id = Column(BigInteger, primary_key=True, nullable=False, autoincrement=True, comment='隧道ID')
|
||||
test_batch_id = Column(
|
||||
BigInteger,
|
||||
ForeignKey('biz_test_batch.batch_id'),
|
||||
nullable=True,
|
||||
index=True,
|
||||
comment='测试数据批次ID;NULL表示正式数据',
|
||||
)
|
||||
site_id = Column(
|
||||
BigInteger,
|
||||
ForeignKey('biz_customer_site.site_id'),
|
||||
nullable=False,
|
||||
comment='现场ID',
|
||||
)
|
||||
tunnel_code = Column(String(64), nullable=False, comment='隧道编号')
|
||||
tunnel_name = Column(String(100), nullable=False, comment='隧道名称')
|
||||
current_trace_no = Column(String(64), nullable=True, comment='当前隧道物料溯源号')
|
||||
current_trace_started_at = Column(DateTime, nullable=True, comment='当前溯源批次开始时间')
|
||||
status = Column(CHAR(1), nullable=False, server_default='0', comment='状态(0正常 1停用)')
|
||||
create_by = Column(String(64), nullable=True, server_default='', comment='创建者')
|
||||
create_time = Column(DateTime, nullable=True, default=datetime.now, comment='创建时间')
|
||||
update_by = Column(String(64), nullable=True, server_default='', comment='更新者')
|
||||
update_time = Column(DateTime, nullable=True, default=datetime.now, comment='更新时间')
|
||||
remark = Column(
|
||||
String(500),
|
||||
nullable=True,
|
||||
server_default=SqlalchemyUtil.get_server_default_null(DataBaseConfig.db_type),
|
||||
comment='备注',
|
||||
)
|
||||
|
||||
|
||||
class BizPallet(Base):
|
||||
"""托盘资产主数据表。"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user