From d438044051532d4706cebea2609ddd568dfab958 Mon Sep 17 00:00:00 2001 From: jinfengli Date: Mon, 3 Jul 2023 17:55:22 +0800 Subject: [PATCH] update --- gameditor/表结构.md | 516 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 516 insertions(+) create mode 100644 gameditor/表结构.md diff --git "a/gameditor/\350\241\250\347\273\223\346\236\204.md" "b/gameditor/\350\241\250\347\273\223\346\236\204.md" new file mode 100644 index 0000000..cf8d248 --- /dev/null +++ "b/gameditor/\350\241\250\347\273\223\346\236\204.md" @@ -0,0 +1,516 @@ +## 表结构阐述 + +- authority_config 权限的管理 + - id 主键ID + - authority 权限类型 + - 0 已注销 + - 1 管理员 + - 2 编辑用户 + - 3 普通用户 + - 4 外包用户 + - 5 外部用户 + - 6 运营用户 + - 7 运营管理 + - semantic_type_tree_white_list 语义类型树的白名单 + - semantic_white_list 语义关系白名单 + - func_black_list 功能黑名单 + - tts_speakers_black_list tts id 黑名单 + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- game_project_tb + - id 主键ID + - name 作品名 + - showed_work_name 显示在app上的名称,如果为空则是name + - series_name 系列名称 + - ts_name 语音合成时候的名称 + - nickname 作品别名 可以是多个, 用逗号隔开 + - labels 作品的标签,多个用逗号隔开 + - intro 作品介绍 + - module_bot_accounts 主作品包含的模块机器人ID + - start_num 开始剧情点编号 + - start_plot_id 开始剧情点ID + - bot_id 在引擎中的ID + - bot_account 在引擎中的帐号 + - generate_status 生成状态 + - 0: 表示未生成 + - 1: 表示生成完成 + - gmt_generate 生成的时间 + - apply_status 审核的状态,基本没什么用 + - 0: 表示未审核 + - 1: 表示审核通过 + - apply_suggestion 审核建议 没什么用 + - gmt_apply 审核时间 + - unknown_text 全局无匹配文本 + - username 作者的用户名 + - user_nickname 作者的笔名 + - version 版本 没什么用 + - watch 观看量,也没什么用 + - preface 创作者说 + - banner_img_url 旧版封面图地址 + - cover 新版封面 + - default_plot_img_url 默认剧情点图片 + - media_url_prefix 媒体地址前缀 + - default_bgm_url 默认背景音乐地址 + - tts_url_prefix tts地址前缀 + - difficulty 困难程度 + - suit_crowds 适应人群 + - word_num 作品总的字数 + - post_url 初次表单地址 + - post_url_type 表单类型 + - post_active + - start_option + - edition + - 1: 声音版 + - 0: 文字版 + - config_content 引擎配置,主要是NER配置 + - extra_options + - start_age 开始年龄 + - stop_age 结束年龄 + - work_type + - 1: 作品故事 + - 2: 功能性BOT + - 3: 附属作品 + - 4: 第三方接入 + - 5: 虚拟作品 + - score 评分 + - free 是否免费 + - 1: 免费 + - 0: 付费 + - owner_id 作者ID + - plot_count 剧情点统计 + - audio_type 弃用字段 + - whole_qa 无效字段 + - ner_in_pretreatment ner是否预处理 + - archive_option 是否存档 + - extra 其他参数 + - allow_restart 是否允许重启 + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- global_attr_tb 全局变量 + - id 主键ID + - name 变量名称 + - intro 变量的介绍 + - base 是否是基本变量 + - append 是否有累加属性 + - dynamic_right_value 动态左值,更新变量时候使用 + - share 是否是全局变量 + - nickname 变量别名 + - in_post_url 是否提交表单 + - extra 其他关于变量的配置 + - restart_init 重启是否初始化 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- goods_class_attr_tb 物品类型属性表 + - id 主键ID + - name 物品类型属性名称 + - value 物品类型默认值 + - nickname 属性别名 + - base 是否是基本属性 + - goods_class_id 物品类型ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- goods_class_tb 物品类型表 + - id 主键ID + - name 物品类型名称 + - intro 物品类型介绍 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- goods_instance_attr_tb 物品实例属性表 + - id 主键ID + - name 物品实例属性名 + - value 物品实例属性值 + - base 是否是基础属性 + - goods_class_attr_id 物品类型属性关联ID + - goods_instance_id 物品实例ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- goods_instance_tb 物品实例表 + - id 主键ID + - name 物品实例名 + - intro 物品实例介绍 + - nickname 物品别名 + - goods_class_id 物品类型ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- listening_action_group_tb 监听分组表 + - id 主键ID + - name 监听分组名称 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- media_tb 媒体表 没啥用了 + - id 主键ID + - type 0: 图片 1: 音频 2: 视频 + - url 媒体地址 + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- ner_filter_rule_tb ner过滤表 + - id 主键ID + - filter_rule 全部 | 前缀 | 后缀 + - filter_object 带过滤识别内容 + - filter_subject 限定内容 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + + +- npc_class_attr_tb npc类型属性表 + - id 主键ID + - name npc类型属性名称 + - value npc类型属性默认值 + - nickname npc类型属性别名 + - base 是否是基本属性 + - npc_class_id npc类型ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- npc_class_tb npc类型表 + - id 主键ID + - name npc类型名称 + - intro npc类型介绍 + - base 是否是基本npc类型 + - voice_class npc默认的声音ID + - voice_name npc默认的声音名称 + - mood npc默认情绪 + - voice_package npc调节tts声音的记录 + - offline 是否是离线声音 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- npc_instance_attr_tb npc类型属性表 + - id 主键ID + - name npc实例属性名称 + - value npc实例属性值 + - base 是否是基本属性 + - npc_class_attr_id npc属性类型ID + - npc_instance_id npc实例ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- npc_instance_tb npc实例表 + - id 主键ID + - name npc实例名称 + - intro npc实例介绍 + - unknown_text npc无匹配内容 + - nickname npc实例的别名 + - base 是否是基本npc + - head_img_url npc头像,暂未使用 + - voice_class tts声音ID + - voice_name tts声音名称 + - mood 默认情绪 + - voice_package npc调节tts声音的记录 + - offline 是否是离线声音 + - npc_class_id npc类型ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- phrase_tb 项目词组表 + - id 主键ID + - phrase_name 词组名称 + - pos 词性 + - labels 标签,用于搜索 + - content 词组内容 + - comment 注释 + - high_performance 高性能模式 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- place_tb 地点表 + - id 主键ID + - name 地点名称 + - nickname 地点别名 + - intro 地点介绍 + - able_go 可去地点 + - go_flag 到达条件 + - able_go_name 可去地点名称 + - base 是否是基本地点 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- plot_branch_group_var_tb 分支的分组变量表 + - id 主键ID + - var_id 变量ID + - var_name 变量名 + - plot_branch_id 剧情分支ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- plot_branch_match_field_tb 分支当前条件 + - id 主键ID + - type 类型 + - operator 操作符 + - compared_value 值域 + - s_phrases 限定词词组 + - o_phrases 关键词词组 + - accurate_match 无效字段 + - accurate_match_label 无效字段 + - condition_id 语义关系ID + - condition_name 语义关系英文名称 + - semantic_relation_name 语义关系帐号 + - condition_question 语义关系中文名称 + - active 无效字段 + - variable_s 限定词赋值变量 + - variable_o 关键词赋值变量 + - update_time 事先更新 + - plot_branch_id 剧情分支ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- plot_branch_premise_tb 分支附加条件 + - id 主键ID + - module 模块类型 + - type 类型 + - object_id 对象ID + - attr_id 属性ID + - attr_name 属性名称 + - attr_label 无效字段 + - semantic_relation_name 语义关系帐号 + - operator 操作符 + - compared_value 值域 + - plot_branch_id 剧情分支ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- plot_branch_relate_attr_tb 分支更新属性配置 + - id 主键ID + - attr_id 属性ID + - attr_name 属性名称 + - attr_value 属性值 + - plot_branch_relate_id 分支属性更新ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- plot_branch_relate_tb 分支更新配置 + - id 主键ID + - module 模块类型 + - class_id 模块类型ID + - class_name 模块类型名称 + - instance_id 模块实例ID + - instance_name 模块实例名称 + - plot_branch_id 剧情分支ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- plot_branch_tb 分支表 + - id 主键ID + - name 分支名称 + - next_plot_num 下一步剧情编号 + - next_plot_id 下一步剧情ID + - activate_extra_plot 激活剧情点,已无效 + - include_cur_info 已无效 + - move_with_plot 已无效 + - remain 已无效 + - post_url 表单地址 + - post_active 是否提交表单 + - plot_id 剧情点ID + - listening_action_group_id 监听分组ID + - auxiliary_priority 优先级 + - merge 内部跳转 + - intent_filter 已无效 + - examples 例句 + - branch_order 分支排序 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + + +- plot_category_tb 剧情分组 + - id 主键ID + - name 分组名称 + - intro 分组介绍 + - num 分组编号 + - img_url 分组图片地址 + - bgm_url 分组背景音乐地址 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- plot_system_custom_words_tb 词句转换 + - id 主键ID + - condition_name 语义关系英文名称 + - semantic_relation_name 语义关系ID + - condition_nickname 语义关系别名 + - s 限定词 + - o 关键词 + - custom_word 原始句子 + - plot_id 剧情点ID + - plot_num 剧情编号 + - bot_account 作品帐号 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + + +- plot_tb 剧情表 + - id 主键ID + - num 剧情编号 + - place_id 地点ID + - place_name 地点名称 + - unknow_text 地点无匹配 + - add_branch 无效字段 + - merge 合并剧情 + - include_active 无效字段 + - category_id 分组ID + - active_condition_name 无效字段 + - note 注释 + - score 无效字段 + - img_url 剧情点背景图地址 + - bgm_url 剧情点背景音乐地址 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- plot_text_custom_tb 剧情自定义剧情 + - id 主键ID + - content 文本内容 + - npc_id 角色ID + - npc_name 角色名称 + - audio_flag tts的类型 + - mood 情绪 + - pitch 音调 + - volume 声音大小 + - speed 语速 + - seg_params tts分段的配置 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- plot_text_tb 剧情文本 + - id 主键ID + - content 剧情内容 + - npc_id npc ID + - npc_name npc名称 + - audio_flag tts的类型 + - mood 情绪 + - pitch 音调 + - volume 声音大小 + - speed 语速 + - seg_params tts分段的配置 + - type 剧情文本类型 + - plot_id 剧情点ID + - plot_branch_id 分支ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- question_answer_tb QA数据表 + - id 主键ID + - question 问题内容 + - answer 已弃用 + - type qa类型 + - 0: 通用QA + - 1: 剧情点QA + - f_type 无效字段 + - answer_id 剧情文本ID + - plot_id 剧情点ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- semantic_word_replace_tb 三元组中的近义词替换 + - id 主键ID + - source_words 源词组列表 + - target_word 被替换的词 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- speechcraft_tb 话术表 + - id 主键ID + - name 话术英文名称 + - value 替换后的模板 + - disable 是否弃用 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- system_qa_intent_tb 系统问答意图表 + - id 主键ID + - intent_id 意图ID + - intent_name 意图名称 + - enable 是否开启 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- system_qa_tmpl_tb 系统问答模板 + - id 主键ID + - tmpl_id 模板ID + - question 问题 + - answer 回答模板 + - system_qa_intent_id 系统问答意图表ID + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- user_text_word_replace_tb 用户文本预替换 + - id 主键ID + - content 替换的配置内容 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 + +- word_property_tb 词性定义 + - id 主键ID + - keyword 关键词 + - word_property 词性 + - project_id 项目ID + - owner_id 作者ID + - gmt_create 创建时间 + - gmt_modified 更新时间 \ No newline at end of file -- libgit2 0.27.1