You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.5 KiB
27 lines
1.5 KiB
from sqlalchemy import Column, Integer, String, DateTime
|
|
from config.database import Base
|
|
from datetime import datetime
|
|
|
|
|
|
class SysVecset(Base):
|
|
"""
|
|
智能语句配置表
|
|
"""
|
|
__tablename__ = 't_vecset'
|
|
|
|
onum = Column(Integer, primary_key=True, autoincrement=True, comment='序号')
|
|
dasset_id = Column(Integer, default=0, comment='数据域名')
|
|
squery = Column(String(500), nullable=True, default='', comment='查询语句')
|
|
sanal_plan = Column(String(500), nullable=True, default='', comment='分析方法')
|
|
sintnt_term = Column(String(500), nullable=True, default='', comment='意图词')
|
|
stab_name = Column(String(500), nullable=True, default='', comment='表名称')
|
|
ssql = Column(String(8000), nullable=True, default='', comment='参考sql')
|
|
sim_thrsh = Column(String(500), nullable=True, default='', comment='相似阈值')
|
|
status = Column(String(1), nullable=True, default='0', comment='状态(0正常 1停用)')
|
|
del_flag = Column(String(1), nullable=True, default='0', comment='删除标志(0代表存在 2代表删除)')
|
|
create_by = Column(String(64), nullable=True, default='', comment='创建者')
|
|
create_time = Column(DateTime, nullable=True, default=datetime.now(), comment='创建时间')
|
|
update_by = Column(String(64), nullable=True, default='', comment='更新者')
|
|
update_time = Column(DateTime, nullable=True, default=datetime.now(), comment='更新时间')
|
|
remark = Column(String(500), nullable=True, default='', comment='备注')
|
|
|
|
|