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.
123 lines
5.8 KiB
123 lines
5.8 KiB
from sqlalchemy import Column, Float, Integer, String, Text, DateTime, Boolean, ForeignKey, UniqueConstraint, Index, \
|
|
text
|
|
from config.database import Base
|
|
from datetime import datetime
|
|
|
|
|
|
class SysTsmcb(Base):
|
|
"""
|
|
词性文本替换表
|
|
"""
|
|
__tablename__ = 't_pos_txt_rpl'
|
|
|
|
onum = Column(String(50), primary_key=True, comment='序号')
|
|
pos = Column(String(500, collation='utf8_general_ci'), comment='词性')
|
|
type = Column(String(500, collation='utf8_general_ci'), comment='类型')
|
|
std_rpl_str = Column(String(500, collation='utf8_general_ci'), comment='标准化替换字符串')
|
|
prefix_supp_str = Column(String(500, collation='utf8_general_ci'), comment='前缀补充字符串')
|
|
suffix_supp_str = Column(String(500, collation='utf8_general_ci'), comment='后缀补充字符串')
|
|
status = Column(String(1, collation='utf8_general_ci'), default='0', comment='状态(0正常 1停用)')
|
|
create_by = Column(String(64), default='', comment='创建者')
|
|
create_time = Column(DateTime, comment='创建时间')
|
|
update_by = Column(String(64), default='', comment='更新者')
|
|
update_time = Column(DateTime, comment='更新时间')
|
|
remark = Column(String(500), nullable=True, default='', comment='备注')
|
|
|
|
|
|
class SysFccbd(Base):
|
|
"""
|
|
词典配置表
|
|
"""
|
|
__tablename__ = 't_dict_config'
|
|
|
|
onum = Column(String(50), primary_key=True, comment='序号')
|
|
term = Column(String(500, collation='utf8_general_ci'), comment='词语')
|
|
freq = Column(String(500, collation='utf8_general_ci'), comment='频次')
|
|
pos = Column(String(500, collation='utf8_general_ci'), comment='词性')
|
|
pos_name = Column(String(500, collation='utf8_general_ci'), comment='词性名称')
|
|
status = Column(String(500, collation='utf8_general_ci'), comment='状态(0正常 1停用)')
|
|
create_by = Column(String(500, collation='utf8_general_ci'), comment='创建者')
|
|
create_time = Column(DateTime, comment='创建时间')
|
|
update_by = Column(String(64, collation='utf8_general_ci'), comment='更新者')
|
|
update_time = Column(DateTime, comment='更新时间')
|
|
remark = Column(String(500, collation='utf8_general_ci'), comment='备注')
|
|
|
|
|
|
class SysCdplb(Base):
|
|
"""
|
|
词典配置表
|
|
"""
|
|
__tablename__ = 't_bath_dict_config'
|
|
|
|
onum = Column(String(50, collation='utf8_general_ci'), primary_key=True, comment='序号')
|
|
bath_obj_tab_name = Column(String(500, collation='utf8_general_ci'), comment='批量对象表名')
|
|
bath_obj_fld_name = Column(String(500, collation='utf8_general_ci'), comment='批里对象字段名')
|
|
freq = Column(String(500, collation='utf8_general_ci'), comment='频次')
|
|
pos = Column(String(500, collation='utf8_general_ci'), comment='词性')
|
|
pos_name = Column(String(500, collation='utf8_general_ci'), comment='词性名称')
|
|
status = Column(String(1, collation='utf8_general_ci'), comment='状态(0正常 1停用)')
|
|
create_by = Column(String(64, collation='utf8_general_ci'), comment='创建者')
|
|
create_time = Column(DateTime, comment='创建时间')
|
|
update_by = Column(String(64, collation='utf8_general_ci'), comment='更新者')
|
|
update_time = Column(DateTime, comment='更新时间')
|
|
remark = Column(String(500, collation='utf8_general_ci'), comment='备注')
|
|
|
|
|
|
class SysSscf(Base):
|
|
"""
|
|
短句配置表
|
|
"""
|
|
__tablename__ = 't_keyword'
|
|
|
|
onum = Column(String(60), primary_key=True, comment='序号')
|
|
dasset_id = Column(String(500), comment='数据域名ID')
|
|
keywords = Column(String(500), comment='关键词JSON') # 根据你的注释,这里使用了String而不是JSON
|
|
keyword = Column(String(500), comment='关键词')
|
|
algorithm = Column(String(500), comment='算法')
|
|
order = Column(String(500), comment='指令')
|
|
whole_sentence = Column(String(500), comment='整句')
|
|
type = Column(String(500), comment='类型')
|
|
supp_expl = Column(String(500), comment='补充说明')
|
|
bak1 = Column(String(500), comment='备注1')
|
|
bak2 = Column(String(500), comment='备注2')
|
|
bak3 = Column(String(500), comment='备注3')
|
|
bak4 = Column(String(500), comment='备注4')
|
|
bak5 = Column(String(500), comment='备注5')
|
|
status = Column(String(1), comment='有效标志')
|
|
del_flag = Column(String(1), comment='删除标志')
|
|
update_time = Column(DateTime, comment='更新时间')
|
|
update_by = Column(String(50), comment='更新者')
|
|
create_time = Column(DateTime, comment='创建时间')
|
|
create_by = Column(String(50), comment='创建者')
|
|
|
|
|
|
class SysDassetTree(Base):
|
|
__tablename__ = 't_dasset_tree'
|
|
|
|
onum = Column(String(60), primary_key=True, comment='序号')
|
|
dasset_code = Column(String(500), comment='code')
|
|
dasset_name = Column(String(500), comment='name') # 根据你的注释,这里使用了String而不是JSON
|
|
parent_code = Column(String(500), comment='父节点code')
|
|
|
|
|
|
class SysVecset(Base):
|
|
"""
|
|
智能语句配置表
|
|
"""
|
|
__tablename__ = 't_vecset'
|
|
|
|
onum = Column(String(60), primary_key=True, comment='序号')
|
|
dasset_id = Column(String(500), comment='数据域名')
|
|
squery = Column(String(500), comment='查询语句')
|
|
sanal_plan = Column(String(500), comment='分析方法')
|
|
sintnt_term = Column(String(500), comment='意图词')
|
|
stab_name = Column(String(500), comment='表名称')
|
|
ssql = Column(String(8000), comment='参考sql')
|
|
sim_thrsh = Column(String(500), comment='相似阈值')
|
|
status = Column(String(1), comment='状态(0正常 1停用)')
|
|
del_flag = Column(String(1), comment='删除标志(0代表存在 2代表删除)')
|
|
create_by = Column(String(64), comment='创建者')
|
|
create_time = Column(DateTime, comment='创建时间')
|
|
update_by = Column(String(64), comment='更新者')
|
|
update_time = Column(DateTime, comment='更新时间')
|
|
remark = Column(String(500), comment='备注')
|
|
|