iamt 1.1.27__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (482) hide show
  1. iamt/__init__.py +67 -0
  2. iamt/__main__.py +5 -0
  3. iamt/client_config/client_config.py +354 -0
  4. iamt/completers/customCompleter.py +143 -0
  5. iamt/composes/5425CICD/gitea/.rdm.md +4 -0
  6. iamt/composes/5425CICD/gitea/docker-compose.yml +52 -0
  7. iamt/composes/5425CICD/gitlab/.rdm.md +20 -0
  8. iamt/composes/5425CICD/gitlab/config/ssl/.gitkeep +0 -0
  9. iamt/composes/5425CICD/gitlab/docker-compose.yml +32 -0
  10. iamt/composes/5425CICD/gitlabDocs/.rdm.md +3 -0
  11. iamt/composes/5425CICD/gitlabRunner/.rdm.md +5 -0
  12. iamt/composes/5425CICD/sonarQube/.rdm.md +14 -0
  13. iamt/composes/5425CICD/sonarQube/docker-compose.yml +46 -0
  14. iamt/composes/5425CICD/sonarQube/docker-compose3.yml +41 -0
  15. iamt/composes/5425CICD/sonarQube/docker-compose4.yml +33 -0
  16. iamt/composes/5425CICD/sonarQube/sonarqube_conf/.gitkeep +0 -0
  17. iamt/composes/5425CICD/sonarQube/sonarqube_data/.gitkeep +0 -0
  18. iamt/composes/5425CICD/sonarQube/sonarqube_extensions/.gitkeep +0 -0
  19. iamt/composes/5425CICD/sonarQube/sonarqube_logs/.gitkeep +0 -0
  20. iamt/composes/5425CICD/sonarQube/sonarqube_temp/.gitkeep +0 -0
  21. iamt/composes/5435PROMPT/.rdm.md +11 -0
  22. iamt/composes/5435PROMPT/langfuse/.env +276 -0
  23. iamt/composes/5435PROMPT/langfuse/.rdm.md +3 -0
  24. iamt/composes/5435PROMPT/langfuse/docker-compose.yml +166 -0
  25. iamt/composes/5435PROMPT/prompt-optimizer/.rdm.md +3 -0
  26. iamt/composes/5465BASE/alpine/.rdm.md +6 -0
  27. iamt/composes/5465BASE/mysql/.rdm.md +40 -0
  28. iamt/composes/5465BASE/mysql/conf/my.cnf +52 -0
  29. iamt/composes/5465BASE/mysql/docker-compose.yml +31 -0
  30. iamt/composes/5465BASE/mysql/init/01-init.sql +14 -0
  31. iamt/composes/5465BASE/nginx/.rdm.md +16 -0
  32. iamt/composes/5465BASE/nginx/docker-compose.yml +29 -0
  33. iamt/composes/5465BASE/nginx/html/index.html +11 -0
  34. iamt/composes/5465BASE/nginx/nginx/conf.d/default.conf +22 -0
  35. iamt/composes/5465BASE/nginx/nginx/nginx.conf +35 -0
  36. iamt/composes/5465BASE/node/.rdm.md +0 -0
  37. iamt/composes/5465BASE/node/docker-compose.yml +0 -0
  38. iamt/composes/5465BASE/php/.rdm.md +0 -0
  39. iamt/composes/5465BASE/php/docker-compose.yml +0 -0
  40. iamt/composes/5465BASE/redis/.env +11 -0
  41. iamt/composes/5465BASE/redis/.rdm.md +7 -0
  42. iamt/composes/5465BASE/redis/config/redis.conf +57 -0
  43. iamt/composes/5465BASE/redis/docker-compose.yml +35 -0
  44. iamt/composes/5475TTS/GPTsovits/.rdm.md +4 -0
  45. iamt/composes/5475TTS/GPTsovits/docker-compose.yml +34 -0
  46. iamt/composes/5475TTS/indexTTS/.rdm.md +3 -0
  47. iamt/composes/5485MCP/.rdm.md +5 -0
  48. iamt/composes/5485MCP/mcpGateway/.rdm.md +2 -0
  49. iamt/composes/5485MCP/mcpGateway/docker-compose.yml +0 -0
  50. iamt/composes/5485MCP/mcpProxy/.rdm.md +2 -0
  51. iamt/composes/5485MCP/mcpProxy/config.json +53 -0
  52. iamt/composes/5485MCP/mcpProxy/docker-compose.yml +34 -0
  53. iamt/composes/5485MCP/superGateway/.env +2 -0
  54. iamt/composes/5485MCP/superGateway/.rdm.md +17 -0
  55. iamt/composes/5485MCP/superGateway/docker-compose.yml +21 -0
  56. iamt/composes/5495LLM/ollama_nvidia/.rdm.md +21 -0
  57. iamt/composes/5495LLM/ollama_nvidia/docker-compose.yml +24 -0
  58. iamt/composes/5555RAG/QAnything/.rdm.md +5 -0
  59. iamt/composes/5555RAG/bisheng/.rdm.md +4 -0
  60. iamt/composes/5555RAG/devdocs/.rdm.md +4 -0
  61. iamt/composes/5555RAG/devdocs/docker-compose.yml +81 -0
  62. iamt/composes/5555RAG/kotaemon/.rdm.md +3 -0
  63. iamt/composes/5555RAG/kotaemon/docker-compose.yml +3 -0
  64. iamt/composes/5555RAG/llama_index/.rdm.md +3 -0
  65. iamt/composes/5555RAG/ragflow/.rdm.md +4 -0
  66. iamt/composes/5555RAG/ragflow/docker-compose.yml +0 -0
  67. iamt/composes/5556LLMAPI/litellm/.env +29 -0
  68. iamt/composes/5556LLMAPI/litellm/.rdm.md +17 -0
  69. iamt/composes/5556LLMAPI/litellm/config.yaml +211 -0
  70. iamt/composes/5556LLMAPI/litellm/docker-compose.yml +68 -0
  71. iamt/composes/5556LLMAPI/litellm/prometheus.yml +9 -0
  72. iamt/composes/5556LLMAPI/newapi/.env +7 -0
  73. iamt/composes/5556LLMAPI/newapi/docker-compose.yml +54 -0
  74. iamt/composes/5556LLMAPI/newapi_sqlite/.env +3 -0
  75. iamt/composes/5556LLMAPI/newapi_sqlite/.rdm.md +15 -0
  76. iamt/composes/5556LLMAPI/newapi_sqlite/docker-compose.yml +15 -0
  77. iamt/composes/5556LLMAPI/oneapi/.env +5 -0
  78. iamt/composes/5556LLMAPI/oneapi/docker-compose.yml +51 -0
  79. iamt/composes/5556LLMAPI/oneapi_postgresql/docker-compose.yml +51 -0
  80. iamt/composes/5556LLMAPI/oneapi_sqlite/.rdm.md +10 -0
  81. iamt/composes/5556LLMAPI/oneapi_sqlite/docker-compose.yml +15 -0
  82. iamt/composes/5557AICLIENT/chatgpt-web-midjourney-proxy/.rdm.md +4 -0
  83. iamt/composes/5557AICLIENT/librechat/.env +511 -0
  84. iamt/composes/5557AICLIENT/librechat/.env.example +509 -0
  85. iamt/composes/5557AICLIENT/librechat/README.md +10 -0
  86. iamt/composes/5557AICLIENT/librechat/docker-compose.override.yml +21 -0
  87. iamt/composes/5557AICLIENT/librechat/docker-compose.yml +70 -0
  88. iamt/composes/5557AICLIENT/librechat/librechat.yaml +19 -0
  89. iamt/composes/5557AICLIENT/librechat/litellm-config.yml +21 -0
  90. iamt/composes/5557AICLIENT/librechat_oneapi/.env +535 -0
  91. iamt/composes/5557AICLIENT/librechat_oneapi/.rdm.md +19 -0
  92. iamt/composes/5557AICLIENT/librechat_oneapi/docker-compose.override.yml +14 -0
  93. iamt/composes/5557AICLIENT/librechat_oneapi/docker-compose.yml +72 -0
  94. iamt/composes/5557AICLIENT/librechat_oneapi/librechat.yaml +42 -0
  95. iamt/composes/5557AICLIENT/nextChat/.rdm.md +13 -0
  96. iamt/composes/5557AICLIENT/nextChat/docker-compose.yml +2 -0
  97. iamt/composes/5557AICLIENT/openwebui/.env +15 -0
  98. iamt/composes/5557AICLIENT/openwebui/.rdm.md +6 -0
  99. iamt/composes/5557AICLIENT/openwebui/docker-compose.yml +33 -0
  100. iamt/composes/5558AIWORKFLOW/coze_studio/.env +193 -0
  101. iamt/composes/5558AIWORKFLOW/coze_studio/.rdm.md +15 -0
  102. iamt/composes/5558AIWORKFLOW/coze_studio/atlas/README.md +71 -0
  103. iamt/composes/5558AIWORKFLOW/coze_studio/atlas/atlas.hcl +12 -0
  104. iamt/composes/5558AIWORKFLOW/coze_studio/atlas/migrations/20250703095335_initial.sql +90 -0
  105. iamt/composes/5558AIWORKFLOW/coze_studio/atlas/migrations/20250703115304_update.sql +2 -0
  106. iamt/composes/5558AIWORKFLOW/coze_studio/atlas/migrations/20250704040445_update.sql +2 -0
  107. iamt/composes/5558AIWORKFLOW/coze_studio/atlas/migrations/20250708075302_update.sql +10 -0
  108. iamt/composes/5558AIWORKFLOW/coze_studio/atlas/migrations/20250710100212_update.sql +38 -0
  109. iamt/composes/5558AIWORKFLOW/coze_studio/atlas/migrations/20250711034533_update.sql +8 -0
  110. iamt/composes/5558AIWORKFLOW/coze_studio/atlas/migrations/20250717125913_update.sql +12 -0
  111. iamt/composes/5558AIWORKFLOW/coze_studio/atlas/migrations/atlas.sum +8 -0
  112. iamt/composes/5558AIWORKFLOW/coze_studio/atlas/opencoze_latest_schema.hcl +4057 -0
  113. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/model_template_qwen.yaml +106 -0
  114. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ark.yaml +133 -0
  115. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ark_doubao-1.5-lite.yaml +108 -0
  116. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ark_doubao-1.5-pro-256k.yaml +108 -0
  117. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ark_doubao-1.5-pro-32k.yaml +108 -0
  118. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ark_doubao-1.5-thinking-pro.yaml +131 -0
  119. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ark_doubao-1.5-thinking-vision-pro.yaml +132 -0
  120. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ark_doubao-1.5-vision-lite.yaml +131 -0
  121. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ark_doubao-1.5-vision-pro.yaml +132 -0
  122. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ark_doubao-seed-1.6-flash.yaml +132 -0
  123. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ark_doubao-seed-1.6-thinking.yaml +132 -0
  124. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ark_doubao-seed-1.6.yaml +132 -0
  125. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ark_volc_deepseek-r1.yaml +108 -0
  126. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ark_volc_deepseek-v3.yaml +108 -0
  127. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_basic.yaml +201 -0
  128. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_claude.yaml +90 -0
  129. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_deepseek.yaml +107 -0
  130. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_gemini.yaml +139 -0
  131. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_ollama.yaml +84 -0
  132. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_openai.yaml +171 -0
  133. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/model/template/model_template_qwen.yaml +106 -0
  134. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/common/oauth_schema.json +42 -0
  135. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/bocha_search.yaml +179 -0
  136. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/chestnut_sign.yaml +50 -0
  137. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/gaode_map.yaml +754 -0
  138. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/image_compression.yaml +58 -0
  139. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/lark_authentication_authorization.yaml +56 -0
  140. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/lark_base.yaml +1172 -0
  141. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/lark_calendar.yaml +479 -0
  142. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/lark_docx.yaml +552 -0
  143. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/lark_message.yaml +499 -0
  144. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/lark_sheet.yaml +795 -0
  145. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/lark_task.yaml +409 -0
  146. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/lark_wiki.yaml +95 -0
  147. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/library_search.yaml +73 -0
  148. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/maker_smart_design.yaml +82 -0
  149. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/plugin_meta.yaml +913 -0
  150. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/sky_eye_check.yaml +431 -0
  151. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/sohu_hot_news.yaml +69 -0
  152. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/wolfram_alpha.yaml +100 -0
  153. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/plugin/pluginproduct/worth_buying.yaml +77 -0
  154. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/prompt/messages_to_query_template_jinja2.json +10 -0
  155. iamt/composes/5558AIWORKFLOW/coze_studio/backend/conf/prompt/nl2sql_template_jinja2.json +10 -0
  156. iamt/composes/5558AIWORKFLOW/coze_studio/docker-compose.yml +549 -0
  157. iamt/composes/5558AIWORKFLOW/coze_studio/proxy/go.mod +3 -0
  158. iamt/composes/5558AIWORKFLOW/coze_studio/proxy/proxy.go +100 -0
  159. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/elasticsearch/analysis-smartcn.zip +0 -0
  160. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/elasticsearch/elasticsearch.yml +14 -0
  161. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/elasticsearch/es_index_schema/coze_resource.index-template.json +74 -0
  162. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/elasticsearch/es_index_schema/project_draft.index-template.json +79 -0
  163. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/elasticsearch/setup_es.sh +142 -0
  164. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/etcd/etcd.conf.yml +0 -0
  165. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/.mc/config.json +1 -0
  166. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/claude_v2.png +0 -0
  167. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/connector-api.jpg +0 -0
  168. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/connector-chat-sdk.jpg +0 -0
  169. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/connector-coze.png +0 -0
  170. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/deepseek_v2.png +0 -0
  171. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/default_agent_icon.png +0 -0
  172. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/default_app_icon.png +0 -0
  173. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/default_database_icon.png +0 -0
  174. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/default_dataset_icon.png +0 -0
  175. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/default_prompt_icon.png +0 -0
  176. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/default_workflow_icon.png +0 -0
  177. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/doubao_v2.png +0 -0
  178. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/gemini_v2.png +0 -0
  179. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/image_kn_default_icon.png +0 -0
  180. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/ollama.png +0 -0
  181. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/openai_v2.png +0 -0
  182. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/plugin_default_icon.png +0 -0
  183. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/qwen_v2.png +0 -0
  184. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_10coz_folder.png +0 -0
  185. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_11coz_trans_switch.png +0 -0
  186. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_12coz_location.png +0 -0
  187. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_13coz_link.png +0 -0
  188. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_14coz_clock.png +0 -0
  189. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_1coz_ai.png +0 -0
  190. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_2icon_ai_writing.png +0 -0
  191. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_3coz_imageflow.png +0 -0
  192. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_4icon_aisearch.png +0 -0
  193. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_5icon_summary.png +0 -0
  194. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_6icon_digest.png +0 -0
  195. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_7icon_video.png +0 -0
  196. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_8icon_audio.png +0 -0
  197. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/shortcut_9coz_variables.png +0 -0
  198. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/table_kn_default_icon.png +0 -0
  199. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/team_default_icon.png +0 -0
  200. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/template_7416518827749425204.png +0 -0
  201. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/template_7418535986059067392.png +0 -0
  202. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/text_kn_default_icon.png +0 -0
  203. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/default_icon/user_default_icon.png +0 -0
  204. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_ai_ppt.jpeg +0 -0
  205. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_bocha_search.jpeg +0 -0
  206. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_chat_ppt.png +0 -0
  207. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_chestnut_sign.png +0 -0
  208. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_constellation.png +0 -0
  209. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_gaode_map.jpeg +0 -0
  210. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_image_compression.jpeg +0 -0
  211. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_lark_authentication_authorization.png +0 -0
  212. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_lark_base.png +0 -0
  213. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_lark_calendar.png +0 -0
  214. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_lark_docx.png +0 -0
  215. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_lark_message.png +0 -0
  216. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_lark_sheet.png +0 -0
  217. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_lark_task.png +0 -0
  218. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_lark_wiki.png +0 -0
  219. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_library_search.png +0 -0
  220. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_liepin.png +0 -0
  221. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_maker_smart_design.png +0 -0
  222. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_sky_eye_check.jpeg +0 -0
  223. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_sohu_hot_news.png +0 -0
  224. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_wolfram_alpha.png +0 -0
  225. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/minio/official_plugin_icon/plugin_worth_buying.jpeg +0 -0
  226. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/mysql/schema.sql +836 -0
  227. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/mysql/sql_init.sql +666 -0
  228. iamt/composes/5558AIWORKFLOW/coze_studio/volumes/rocketmq/broker.conf +28 -0
  229. iamt/composes/5558AIWORKFLOW/dify/.env +1090 -0
  230. iamt/composes/5558AIWORKFLOW/dify/.rdm.md +11 -0
  231. iamt/composes/5558AIWORKFLOW/dify/certbot/README.md +76 -0
  232. iamt/composes/5558AIWORKFLOW/dify/certbot/docker-entrypoint.sh +30 -0
  233. iamt/composes/5558AIWORKFLOW/dify/certbot/update-cert.template.txt +19 -0
  234. iamt/composes/5558AIWORKFLOW/dify/couchbase-server/Dockerfile +4 -0
  235. iamt/composes/5558AIWORKFLOW/dify/couchbase-server/init-cbserver.sh +44 -0
  236. iamt/composes/5558AIWORKFLOW/dify/docker-compose.yml +1174 -0
  237. iamt/composes/5558AIWORKFLOW/dify/elasticsearch/docker-entrypoint.sh +25 -0
  238. iamt/composes/5558AIWORKFLOW/dify/image.png +0 -0
  239. iamt/composes/5558AIWORKFLOW/dify/nginx/conf.d/default.conf.template +48 -0
  240. iamt/composes/5558AIWORKFLOW/dify/nginx/docker-entrypoint.sh +42 -0
  241. iamt/composes/5558AIWORKFLOW/dify/nginx/https.conf.template +9 -0
  242. iamt/composes/5558AIWORKFLOW/dify/nginx/nginx.conf.template +34 -0
  243. iamt/composes/5558AIWORKFLOW/dify/nginx/proxy.conf.template +11 -0
  244. iamt/composes/5558AIWORKFLOW/dify/nginx/ssl/.gitkeep +0 -0
  245. iamt/composes/5558AIWORKFLOW/dify/pgvector/docker-entrypoint.sh +24 -0
  246. iamt/composes/5558AIWORKFLOW/dify/ssrf_proxy/docker-entrypoint.sh +42 -0
  247. iamt/composes/5558AIWORKFLOW/dify/ssrf_proxy/squid.conf.template +56 -0
  248. iamt/composes/5558AIWORKFLOW/dify/startupscripts/init.sh +13 -0
  249. iamt/composes/5558AIWORKFLOW/dify/startupscripts/init_user.script +10 -0
  250. iamt/composes/5558AIWORKFLOW/dify/tidb/config/pd.toml +4 -0
  251. iamt/composes/5558AIWORKFLOW/dify/tidb/config/tiflash-learner.toml +13 -0
  252. iamt/composes/5558AIWORKFLOW/dify/tidb/config/tiflash.toml +19 -0
  253. iamt/composes/5558AIWORKFLOW/dify/tidb/docker-compose.yaml +62 -0
  254. iamt/composes/5558AIWORKFLOW/dify/volumes/myscale/config/users.d/custom_users_config.xml +17 -0
  255. iamt/composes/5558AIWORKFLOW/dify/volumes/oceanbase/init.d/vec_memory.sql +1 -0
  256. iamt/composes/5558AIWORKFLOW/dify/volumes/opensearch/opensearch_dashboards.yml +222 -0
  257. iamt/composes/5558AIWORKFLOW/dify/volumes/sandbox/conf/config.yaml +14 -0
  258. iamt/composes/5558AIWORKFLOW/dify/volumes/sandbox/conf/config.yaml.example +35 -0
  259. iamt/composes/5558AIWORKFLOW/dify/volumes/sandbox/dependencies/python-requirements.txt +0 -0
  260. iamt/composes/5558AIWORKFLOW/fastgpt/.rdm.md +14 -0
  261. iamt/composes/5558AIWORKFLOW/fastgpt/docker-compose-pgvector.yml +177 -0
  262. iamt/composes/5558AIWORKFLOW/langflow/.rdm.md +9 -0
  263. iamt/composes/5558AIWORKFLOW/langflow/docker-compose.yml +30 -0
  264. iamt/composes/5558AIWORKFLOW/n8n/.env +6 -0
  265. iamt/composes/5558AIWORKFLOW/n8n/.rdm.md +24 -0
  266. iamt/composes/5558AIWORKFLOW/n8n/docker-compose.yml +52 -0
  267. iamt/composes/5558AIWORKFLOW/n8n/init-data.sh +13 -0
  268. iamt/composes/5558AIWORKFLOW/n8n/n8n_storage/.gitkeep +0 -0
  269. iamt/composes/5559MJAPI/midjourney-proxy/.rdm.md +10 -0
  270. iamt/composes/5559MJAPI/midjourney-proxy/docker-compose.yml +0 -0
  271. iamt/composes/5559MJAPI/midjourney-proxy2/.rdm.md +5 -0
  272. iamt/composes/5559MJAPI/midjourney-proxy2/docker-compose.yml +21 -0
  273. iamt/composes/5655PROXY/3xui/.rdm.md +12 -0
  274. iamt/composes/5655PROXY/3xui/docker-compose.yml +15 -0
  275. iamt/composes/5655PROXY/hui/.rdm.md +6 -0
  276. iamt/composes/5655PROXY/hui/docker-compose.yml +18 -0
  277. iamt/composes/5655PROXY/mihomo/.rdm.config.md +17 -0
  278. iamt/composes/5655PROXY/mihomo/.rdm.md +40 -0
  279. iamt/composes/5655PROXY/mihomo/clash_meta_config/config.yaml +584 -0
  280. iamt/composes/5655PROXY/mihomo/clash_meta_config/geoip.metadb +0 -0
  281. iamt/composes/5655PROXY/mihomo/clash_meta_config/sub1.yaml +7 -0
  282. iamt/composes/5655PROXY/mihomo/clash_meta_config/sub2.yaml +56 -0
  283. iamt/composes/5655PROXY/mihomo/docker-compose.yml +33 -0
  284. iamt/composes/5655PROXY/nginx/.rdm +2 -0
  285. iamt/composes/5655PROXY/nginx/docker-compose.yml +21 -0
  286. iamt/composes/5655PROXY/sub-web/.rdm.md +9 -0
  287. iamt/composes/5655PROXY/sub2clash/.rdm.md +3 -0
  288. iamt/composes/5655PROXY/sub2clash/docker-compose.yml +21 -0
  289. iamt/composes/5655PROXY/subconverter/.rdm.md +4 -0
  290. iamt/composes/5655PROXY/v2ray/.rdm.md +3 -0
  291. iamt/composes/5655PROXY/v2raya/.rdm.md +33 -0
  292. iamt/composes/5655PROXY/v2raya/docker-compose.yml +19 -0
  293. iamt/composes/5655PROXY/xui/.rdm.md +3 -0
  294. iamt/composes/5755COMFYUI/akegarasu_lora-scripts/.rdm.md +18 -0
  295. iamt/composes/5755COMFYUI/akegarasu_lora-scripts/Dockerfile-for-Mainland-China +42 -0
  296. iamt/composes/5755COMFYUI/akegarasu_lora-scripts/docker-compose.yml +39 -0
  297. iamt/composes/5755COMFYUI/comfyui_boot/.rdm.md +29 -0
  298. iamt/composes/5755COMFYUI/comfyui_boot/docker-compose.yml +0 -0
  299. iamt/composes/5755COMFYUI/comfyui_boot_cu121/.env +1 -0
  300. iamt/composes/5755COMFYUI/comfyui_boot_cu121/.rdm.md +20 -0
  301. iamt/composes/5755COMFYUI/comfyui_boot_cu121/docker-compose.yml +45 -0
  302. iamt/composes/5755COMFYUI/comfyui_boot_cu121/storage/.gitkeep +0 -0
  303. iamt/composes/5755COMFYUI/comfyui_boot_cu124-cn/.rdm.md +22 -0
  304. iamt/composes/5755COMFYUI/comfyui_boot_cu124-cn/docker-compose.yml +31 -0
  305. iamt/composes/5755COMFYUI/comfyui_boot_minimal/.rdm.md +26 -0
  306. iamt/composes/5755COMFYUI/comfyui_boot_minimal/docker-compose.yml +0 -0
  307. iamt/composes/5755COMFYUI/comfyui_boot_slim/.env +0 -0
  308. iamt/composes/5755COMFYUI/comfyui_boot_slim/.rdm.md +23 -0
  309. iamt/composes/5755COMFYUI/comfyui_boot_slim/docker-compose.yml +24 -0
  310. iamt/composes/5755COMFYUI/swarmui/.rdm.md +5 -0
  311. iamt/composes/5755COMFYUI/swarmui/docker-compose.yml +38 -0
  312. iamt/composes/5855MEDIA/any-listen/.rdm.md +7 -0
  313. iamt/composes/5855MEDIA/any-listen/data/config.cjs +20 -0
  314. iamt/composes/5855MEDIA/any-listen/docker-compose.yml +10 -0
  315. iamt/composes/5855MEDIA/blackcandy/.rdm.md +1 -0
  316. iamt/composes/5855MEDIA/koel/.rdm.md +17 -0
  317. iamt/composes/5855MEDIA/koel/docker-compose.yml +41 -0
  318. iamt/composes/5855MEDIA/navidrome/.rdm.md +15 -0
  319. iamt/composes/5855MEDIA/navidrome/docker-compose.yml +15 -0
  320. iamt/composes/5955BACKUP/gobackup/.rdm.md +9 -0
  321. iamt/composes/5955BACKUP/gobackup/docker-compose.yml +19 -0
  322. iamt/composes/5955BACKUP/gobackup/gobackup/gobackup.yml +5 -0
  323. iamt/composes/5955BACKUP/rclone/.rdm.md +6 -0
  324. iamt/composes/5955BACKUP/rclone/docker-compose.yml +0 -0
  325. iamt/composes/5965SYNC/verysync/.rdm.md +16 -0
  326. iamt/composes/5965SYNC/verysync/docker-compose.yml +22 -0
  327. iamt/composes/6055DATABASE/adminer/.rdm.md +13 -0
  328. iamt/composes/6055DATABASE/cloudbeaver/.rdm.md +10 -0
  329. iamt/composes/6055DATABASE/mongodb/.env +7 -0
  330. iamt/composes/6055DATABASE/mongodb/.rdm.md +8 -0
  331. iamt/composes/6055DATABASE/mongodb/docker-compose.yml +24 -0
  332. iamt/composes/6055DATABASE/mongodbExpress/.env +10 -0
  333. iamt/composes/6055DATABASE/mongodbExpress/.rdm.md +14 -0
  334. iamt/composes/6055DATABASE/mongodbExpress/docker-compose.yml +24 -0
  335. iamt/composes/6055DATABASE/mysql/.env +0 -0
  336. iamt/composes/6055DATABASE/mysql/.rdm.md +0 -0
  337. iamt/composes/6055DATABASE/mysql/docker-compose.yml +26 -0
  338. iamt/composes/6055DATABASE/mysql/my.cnf +107 -0
  339. iamt/composes/6155AUTH/authentik/.env +10 -0
  340. iamt/composes/6155AUTH/authentik/.rdm.md +7 -0
  341. iamt/composes/6155AUTH/authentik/docker-compose.yml +90 -0
  342. iamt/composes/6155AUTH/casdoor/conf/app.conf +30 -0
  343. iamt/composes/6155AUTH/casdoor/docker-compose.yml +20 -0
  344. iamt/composes/6255Monitor/dcgm_exporter/.rdm.md +5 -0
  345. iamt/composes/6255Monitor/dcgm_exporter/docker-compose.yml +34 -0
  346. iamt/composes/6255Monitor/grafana/.env +5 -0
  347. iamt/composes/6255Monitor/grafana/.rdm.md +0 -0
  348. iamt/composes/6255Monitor/grafana/docker-compose.yml +22 -0
  349. iamt/composes/6255Monitor/node_exporter/.env +1 -0
  350. iamt/composes/6255Monitor/node_exporter/docker-compose.yml +19 -0
  351. iamt/composes/6255Monitor/prometheus/.env +6 -0
  352. iamt/composes/6255Monitor/prometheus/.rdm.md +8 -0
  353. iamt/composes/6255Monitor/prometheus/conf/prometheus.yml +39 -0
  354. iamt/composes/6255Monitor/prometheus/docker-compose.yml +28 -0
  355. iamt/composes/6255Monitor/prometheus/prometheus/.gitkeep +0 -0
  356. iamt/composes/6355SSL/certbot/.rdm.md +4 -0
  357. iamt/composes/6355SSL/certd/.rdm.md +4 -0
  358. iamt/composes/6355SSL/certimate/.rdm.md +23 -0
  359. iamt/composes/6355SSL/certimate/docker-compose.yml +17 -0
  360. iamt/composes/6455Storage/fileBrowser/.env +5 -0
  361. iamt/composes/6455Storage/fileBrowser/.rdm.md +17 -0
  362. iamt/composes/6455Storage/fileBrowser/docker-compose.yml +14 -0
  363. iamt/composes/6455Storage/fileBrowser/filebrowser.db +0 -0
  364. iamt/composes/6455Storage/fileBrowser/settings.json +8 -0
  365. iamt/composes/6455Storage/kskypro/.env +3 -0
  366. iamt/composes/6455Storage/kskypro/.rdm.md +30 -0
  367. iamt/composes/6455Storage/kskypro/buildimg/000-default.conf.template +45 -0
  368. iamt/composes/6455Storage/kskypro/buildimg/Dockerfile +97 -0
  369. iamt/composes/6455Storage/kskypro/buildimg/LICENSE +661 -0
  370. iamt/composes/6455Storage/kskypro/buildimg/entrypoint.sh +29 -0
  371. iamt/composes/6455Storage/kskypro/buildimg/ports.conf.template +2 -0
  372. iamt/composes/6455Storage/kskypro/buildimg/ssl/certs/ssl-cert-snakeoil.pem +21 -0
  373. iamt/composes/6455Storage/kskypro/buildimg/ssl/private/ssl-cert-snakeoil.key +28 -0
  374. iamt/composes/6455Storage/kskypro/docker-compose.yml +43 -0
  375. iamt/composes/6455Storage/kskypro/env.conf +43 -0
  376. iamt/composes/6455Storage/kskypro/mysql/conf/.gitkeep +0 -0
  377. iamt/composes/6455Storage/kskypro/mysql/data/.gitkeep +0 -0
  378. iamt/composes/6455Storage/kskypro/mysql/log/.gitkeep +0 -0
  379. iamt/composes/6455Storage/lskypro/.rdm.md +15 -0
  380. iamt/composes/6455Storage/lskypro/Dockerfile +12 -0
  381. iamt/composes/6455Storage/lskypro/docker-compose.yml +51 -0
  382. iamt/composes/6455Storage/minio/.rdm.md +1 -0
  383. iamt/composes/6455Storage/minio/docker-compose.yml +31 -0
  384. iamt/composes/6455Storage/nextcloud/.rdm.md +0 -0
  385. iamt/composes/6455Storage/nextcloud/docker-compose.yml +25 -0
  386. iamt/composes/6455Storage/seafile/.env +46 -0
  387. iamt/composes/6455Storage/seafile/.rdm.md +31 -0
  388. iamt/composes/6455Storage/seafile/caddy.yml +26 -0
  389. iamt/composes/6455Storage/seafile/seadoc.yml +39 -0
  390. iamt/composes/6455Storage/seafile/seafile-server.yml +79 -0
  391. iamt/composes/6555DNS/ddnsgo/.env +8 -0
  392. iamt/composes/6555DNS/ddnsgo/.rdm.md +7 -0
  393. iamt/composes/6555DNS/ddnsgo/docker-compose.yml +17 -0
  394. iamt/composes/6555DNS/lucky/.rdm.md +4 -0
  395. iamt/composes/6555DNS/lucky/docker-compose.yml +14 -0
  396. iamt/composes/6655CONTAINER/harbor/.rdm.md +1 -0
  397. iamt/composes/6755SHOP/dujiaoka/.rdm.md +10 -0
  398. iamt/composes/6755SHOP/dujiaoka/docker-compose.yml +37 -0
  399. iamt/composes/6755SHOP/dujiaoka/env.conf +46 -0
  400. iamt/composes/6755SHOP/dujiaoka/storage/.gitkeep +0 -0
  401. iamt/composes/6755SHOP/dujiaoka/uploads/.gitkeep +0 -0
  402. iamt/composes/6755SHOP/dujiaoka2/.rdm.md +3 -0
  403. iamt/composes/8888Others/apitable/docker-compose.yml +233 -0
  404. iamt/composes/8888Others/changeDetect/README +18 -0
  405. iamt/composes/8888Others/changeDetect/docker-compose.yml +44 -0
  406. iamt/composes/8888Others/codeServer/.rdm.md +7 -0
  407. iamt/composes/8888Others/codeServer/docker-compose.yml +39 -0
  408. iamt/composes/8888Others/douyin_tiktok_download_api/.rdm.md +19 -0
  409. iamt/composes/8888Others/douyin_tiktok_download_api/config.yaml +32 -0
  410. iamt/composes/8888Others/douyin_tiktok_download_api/docker-compose.yml +17 -0
  411. iamt/composes/8888Others/kasmweb_chrome/.rdm.md +19 -0
  412. iamt/composes/8888Others/kasmweb_chrome/docker-compose.yml +17 -0
  413. iamt/composes/8888Others/meilisearch/.env +10 -0
  414. iamt/composes/8888Others/meilisearch/config/config.toml +132 -0
  415. iamt/composes/8888Others/meilisearch/docker-compose.yml +34 -0
  416. iamt/composes/8888Others/memcached/.env +8 -0
  417. iamt/composes/8888Others/memcached/docker-compose.yml +20 -0
  418. iamt/composes/8888Others/minio/docker-compose.yml +20 -0
  419. iamt/composes/8888Others/minio/minio +9 -0
  420. iamt/composes/8888Others/neko/README.md +11 -0
  421. iamt/composes/8888Others/neko/docker-compose.yml +16 -0
  422. iamt/composes/8888Others/ocrmypdf/README.md +14 -0
  423. iamt/composes/8888Others/outline/docker-compose.yml +76 -0
  424. iamt/composes/8888Others/outline/docker.env +164 -0
  425. iamt/composes/8888Others/outline/redis.conf +0 -0
  426. iamt/composes/8888Others/pandas_ai/.rdm.md +5 -0
  427. iamt/composes/8888Others/pandas_ai/docker-compose.yml +49 -0
  428. iamt/composes/8888Others/rancher/.rdm.md +4 -0
  429. iamt/composes/8888Others/rustdesk/.env +10 -0
  430. iamt/composes/8888Others/rustdesk/docker-compose.yml +29 -0
  431. iamt/composes/8888Others/ttrss/docker-compose.yml +74 -0
  432. iamt/composes/8888Others/vultrCLI/.rdm.md +9 -0
  433. iamt/composes/8888Others/wewerss/docker-compose.yml +44 -0
  434. iamt/dcd/dcd.py +337 -0
  435. iamt/decorators/singleton.py +224 -0
  436. iamt/modules/_utils/_utils.py +1 -0
  437. iamt/modules/_utils/arch.py +22 -0
  438. iamt/modules/_utils/cleanup_network_config.py +68 -0
  439. iamt/modules/_utils/github.py +123 -0
  440. iamt/modules/_utils/setup_apt_sources.py +94 -0
  441. iamt/modules/_utils/steps.py +26 -0
  442. iamt/modules/claudecode/claudecode.py +0 -0
  443. iamt/modules/dcdtask/dcdtask.py +164 -0
  444. iamt/modules/docker/docker.py +370 -0
  445. iamt/modules/docker/roles/role.py +54 -0
  446. iamt/modules/docker/templates/daemon/daemon_multi_mirrors.json +21 -0
  447. iamt/modules/docker/templates/gpgkey/debian_gpgkey +62 -0
  448. iamt/modules/docker/templates/gpgkey/ubuntu_gpgkey +62 -0
  449. iamt/modules/github/ghcli.py +197 -0
  450. iamt/modules/nvm/nvm.py +183 -0
  451. iamt/modules/nvm/roles/role.py +24 -0
  452. iamt/modules/runlinetask/runlinetask.py +22 -0
  453. iamt/modules/ubuntud/antigravity.py +191 -0
  454. iamt/modules/ubuntud/chrome.py +111 -0
  455. iamt/modules/ubuntud/fcitx5.py +0 -0
  456. iamt/modules/ubuntud/ibus.py +53 -0
  457. iamt/modules/ubuntud/kiro.py +41 -0
  458. iamt/modules/ubuntud/rime_ice.py +173 -0
  459. iamt/modules/ubuntud/roles/role.py +28 -0
  460. iamt/modules/ubuntud/templates/ibus/ibus_rime.custom.yaml +3 -0
  461. iamt/modules/ubuntud/v2ray-core.py +238 -0
  462. iamt/modules/ubuntud/v2rayN.py +127 -0
  463. iamt/modules/ubuntud/vscode.py +162 -0
  464. iamt/modules/uv/roles/role.py +56 -0
  465. iamt/modules/uv/templates/uv.toml +5 -0
  466. iamt/modules/uv/uv.py +315 -0
  467. iamt/modules/vagrant/templates/Vagrantfile +25 -0
  468. iamt/modules/vagrant/vagrant.py +91 -0
  469. iamt/modules/vboxinit/base_box_init.py +142 -0
  470. iamt/modules/vboxinit/roles/role.py +15 -0
  471. iamt/role/role.py +134 -0
  472. iamt/run_file/run_file.py +121 -0
  473. iamt/run_line/commands.py +70 -0
  474. iamt/run_line/run_line.py +78 -0
  475. iamt/task/task.py +108 -0
  476. iamt/utils/__init__.py +6 -0
  477. iamt/utils/config_saver.py +90 -0
  478. iamt/utils/task_tracker.py +136 -0
  479. iamt-1.1.27.dist-info/METADATA +19 -0
  480. iamt-1.1.27.dist-info/RECORD +482 -0
  481. iamt-1.1.27.dist-info/WHEEL +4 -0
  482. iamt-1.1.27.dist-info/entry_points.txt +5 -0
@@ -0,0 +1,4057 @@
1
+ table "agent_to_database" {
2
+ schema = schema.opencoze
3
+ comment = "agent_to_database info"
4
+ collate = "utf8mb4_general_ci"
5
+ column "id" {
6
+ null = false
7
+ type = bigint
8
+ unsigned = true
9
+ comment = "ID"
10
+ }
11
+ column "agent_id" {
12
+ null = false
13
+ type = bigint
14
+ unsigned = true
15
+ comment = "Agent ID"
16
+ }
17
+ column "database_id" {
18
+ null = false
19
+ type = bigint
20
+ unsigned = true
21
+ comment = "ID of database_info"
22
+ }
23
+ column "is_draft" {
24
+ null = false
25
+ type = bool
26
+ comment = "Is draft"
27
+ }
28
+ column "prompt_disable" {
29
+ null = false
30
+ type = bool
31
+ default = 0
32
+ comment = "Support prompt calls: 1 not supported, 0 supported"
33
+ }
34
+ primary_key {
35
+ columns = [column.id]
36
+ }
37
+ index "uniq_agent_db_draft" {
38
+ unique = true
39
+ columns = [column.agent_id, column.database_id, column.is_draft]
40
+ }
41
+ }
42
+ table "agent_tool_draft" {
43
+ schema = schema.opencoze
44
+ comment = "Draft Agent Tool"
45
+ column "id" {
46
+ null = false
47
+ type = bigint
48
+ default = 0
49
+ unsigned = true
50
+ comment = "Primary Key ID"
51
+ }
52
+ column "agent_id" {
53
+ null = false
54
+ type = bigint
55
+ default = 0
56
+ unsigned = true
57
+ comment = "Agent ID"
58
+ }
59
+ column "plugin_id" {
60
+ null = false
61
+ type = bigint
62
+ default = 0
63
+ unsigned = true
64
+ comment = "Plugin ID"
65
+ }
66
+ column "tool_id" {
67
+ null = false
68
+ type = bigint
69
+ default = 0
70
+ unsigned = true
71
+ comment = "Tool ID"
72
+ }
73
+ column "created_at" {
74
+ null = false
75
+ type = bigint
76
+ default = 0
77
+ unsigned = true
78
+ comment = "Create Time in Milliseconds"
79
+ }
80
+ column "sub_url" {
81
+ null = false
82
+ type = varchar(512)
83
+ default = ""
84
+ comment = "Sub URL Path"
85
+ }
86
+ column "method" {
87
+ null = false
88
+ type = varchar(64)
89
+ default = ""
90
+ comment = "HTTP Request Method"
91
+ }
92
+ column "tool_name" {
93
+ null = false
94
+ type = varchar(255)
95
+ default = ""
96
+ comment = "Tool Name"
97
+ }
98
+ column "tool_version" {
99
+ null = false
100
+ type = varchar(255)
101
+ default = ""
102
+ comment = "Tool Version, e.g. v1.0.0"
103
+ }
104
+ column "operation" {
105
+ null = true
106
+ type = json
107
+ comment = "Tool Openapi Operation Schema"
108
+ }
109
+ primary_key {
110
+ columns = [column.id]
111
+ }
112
+ index "idx_agent_plugin_tool" {
113
+ columns = [column.agent_id, column.plugin_id, column.tool_id]
114
+ }
115
+ index "idx_agent_tool_bind" {
116
+ columns = [column.agent_id, column.created_at]
117
+ }
118
+ index "uniq_idx_agent_tool_id" {
119
+ unique = true
120
+ columns = [column.agent_id, column.tool_id]
121
+ }
122
+ index "uniq_idx_agent_tool_name" {
123
+ unique = true
124
+ columns = [column.agent_id, column.tool_name]
125
+ }
126
+ }
127
+ table "agent_tool_version" {
128
+ schema = schema.opencoze
129
+ comment = "Agent Tool Version"
130
+ column "id" {
131
+ null = false
132
+ type = bigint
133
+ default = 0
134
+ unsigned = true
135
+ comment = "Primary Key ID"
136
+ }
137
+ column "agent_id" {
138
+ null = false
139
+ type = bigint
140
+ default = 0
141
+ unsigned = true
142
+ comment = "Agent ID"
143
+ }
144
+ column "plugin_id" {
145
+ null = false
146
+ type = bigint
147
+ default = 0
148
+ unsigned = true
149
+ comment = "Plugin ID"
150
+ }
151
+ column "tool_id" {
152
+ null = false
153
+ type = bigint
154
+ default = 0
155
+ unsigned = true
156
+ comment = "Tool ID"
157
+ }
158
+ column "agent_version" {
159
+ null = false
160
+ type = varchar(255)
161
+ default = ""
162
+ comment = "Agent Tool Version"
163
+ }
164
+ column "tool_name" {
165
+ null = false
166
+ type = varchar(255)
167
+ default = ""
168
+ comment = "Tool Name"
169
+ }
170
+ column "tool_version" {
171
+ null = false
172
+ type = varchar(255)
173
+ default = ""
174
+ comment = "Tool Version, e.g. v1.0.0"
175
+ }
176
+ column "sub_url" {
177
+ null = false
178
+ type = varchar(512)
179
+ default = ""
180
+ comment = "Sub URL Path"
181
+ }
182
+ column "method" {
183
+ null = false
184
+ type = varchar(64)
185
+ default = ""
186
+ comment = "HTTP Request Method"
187
+ }
188
+ column "operation" {
189
+ null = true
190
+ type = json
191
+ comment = "Tool Openapi Operation Schema"
192
+ }
193
+ column "created_at" {
194
+ null = false
195
+ type = bigint
196
+ default = 0
197
+ unsigned = true
198
+ comment = "Create Time in Milliseconds"
199
+ }
200
+ primary_key {
201
+ columns = [column.id]
202
+ }
203
+ index "idx_agent_tool_id_created_at" {
204
+ columns = [column.agent_id, column.tool_id, column.created_at]
205
+ }
206
+ index "idx_agent_tool_name_created_at" {
207
+ columns = [column.agent_id, column.tool_name, column.created_at]
208
+ }
209
+ index "uniq_idx_agent_tool_id_agent_version" {
210
+ unique = true
211
+ columns = [column.agent_id, column.tool_id, column.agent_version]
212
+ }
213
+ index "uniq_idx_agent_tool_name_agent_version" {
214
+ unique = true
215
+ columns = [column.agent_id, column.tool_name, column.agent_version]
216
+ }
217
+ }
218
+ table "api_key" {
219
+ schema = schema.opencoze
220
+ comment = "api key table"
221
+ column "id" {
222
+ null = false
223
+ type = bigint
224
+ unsigned = true
225
+ comment = "Primary Key ID"
226
+ auto_increment = true
227
+ }
228
+ column "api_key" {
229
+ null = false
230
+ type = varchar(255)
231
+ default = ""
232
+ comment = "API Key hash"
233
+ }
234
+ column "name" {
235
+ null = false
236
+ type = varchar(255)
237
+ default = ""
238
+ comment = "API Key Name"
239
+ }
240
+ column "status" {
241
+ null = false
242
+ type = tinyint
243
+ default = 0
244
+ comment = "0 normal, 1 deleted"
245
+ }
246
+ column "user_id" {
247
+ null = false
248
+ type = bigint
249
+ default = 0
250
+ comment = "API Key Owner"
251
+ }
252
+ column "expired_at" {
253
+ null = false
254
+ type = bigint
255
+ default = 0
256
+ comment = "API Key Expired Time"
257
+ }
258
+ column "created_at" {
259
+ null = false
260
+ type = bigint
261
+ default = 0
262
+ unsigned = true
263
+ comment = "Create Time in Milliseconds"
264
+ }
265
+ column "updated_at" {
266
+ null = false
267
+ type = bigint
268
+ default = 0
269
+ unsigned = true
270
+ comment = "Update Time in Milliseconds"
271
+ }
272
+ column "last_used_at" {
273
+ null = false
274
+ type = bigint
275
+ default = 0
276
+ comment = "Used Time in Milliseconds"
277
+ }
278
+ primary_key {
279
+ columns = [column.id]
280
+ }
281
+ }
282
+ table "app_connector_release_ref" {
283
+ schema = schema.opencoze
284
+ comment = "Connector Release Record Reference"
285
+ column "id" {
286
+ null = false
287
+ type = bigint
288
+ default = 0
289
+ unsigned = true
290
+ comment = "Primary Key"
291
+ }
292
+ column "record_id" {
293
+ null = false
294
+ type = bigint
295
+ default = 0
296
+ unsigned = true
297
+ comment = "Publish Record ID"
298
+ }
299
+ column "connector_id" {
300
+ null = true
301
+ type = bigint
302
+ unsigned = true
303
+ comment = "Publish Connector ID"
304
+ }
305
+ column "publish_config" {
306
+ null = true
307
+ type = json
308
+ comment = "Publish Configuration"
309
+ }
310
+ column "publish_status" {
311
+ null = false
312
+ type = tinyint
313
+ default = 0
314
+ comment = "Publish Status"
315
+ }
316
+ column "created_at" {
317
+ null = false
318
+ type = bigint
319
+ default = 0
320
+ unsigned = true
321
+ comment = "Create Time in Milliseconds"
322
+ }
323
+ column "updated_at" {
324
+ null = false
325
+ type = bigint
326
+ default = 0
327
+ unsigned = true
328
+ comment = "Update Time in Milliseconds"
329
+ }
330
+ primary_key {
331
+ columns = [column.id]
332
+ }
333
+ index "uniq_record_connector" {
334
+ unique = true
335
+ columns = [column.record_id, column.connector_id]
336
+ }
337
+ }
338
+ table "app_draft" {
339
+ schema = schema.opencoze
340
+ comment = "Draft Application"
341
+ column "id" {
342
+ null = false
343
+ type = bigint
344
+ default = 0
345
+ unsigned = true
346
+ comment = "APP ID"
347
+ }
348
+ column "space_id" {
349
+ null = false
350
+ type = bigint
351
+ default = 0
352
+ unsigned = true
353
+ comment = "Space ID"
354
+ }
355
+ column "owner_id" {
356
+ null = false
357
+ type = bigint
358
+ default = 0
359
+ unsigned = true
360
+ comment = "Owner ID"
361
+ }
362
+ column "icon_uri" {
363
+ null = false
364
+ type = varchar(512)
365
+ default = ""
366
+ comment = "Icon URI"
367
+ }
368
+ column "name" {
369
+ null = false
370
+ type = varchar(255)
371
+ default = ""
372
+ comment = "Application Name"
373
+ }
374
+ column "description" {
375
+ null = true
376
+ type = text
377
+ comment = "Application Description"
378
+ }
379
+ column "created_at" {
380
+ null = false
381
+ type = bigint
382
+ default = 0
383
+ unsigned = true
384
+ comment = "Create Time in Milliseconds"
385
+ }
386
+ column "updated_at" {
387
+ null = false
388
+ type = bigint
389
+ default = 0
390
+ unsigned = true
391
+ comment = "Update Time in Milliseconds"
392
+ }
393
+ column "deleted_at" {
394
+ null = true
395
+ type = datetime
396
+ comment = "Delete Time"
397
+ }
398
+ primary_key {
399
+ columns = [column.id]
400
+ }
401
+ }
402
+ table "app_release_record" {
403
+ schema = schema.opencoze
404
+ comment = "Application Release Record"
405
+ column "id" {
406
+ null = false
407
+ type = bigint
408
+ default = 0
409
+ unsigned = true
410
+ comment = "Publish Record ID"
411
+ }
412
+ column "app_id" {
413
+ null = false
414
+ type = bigint
415
+ default = 0
416
+ unsigned = true
417
+ comment = "Application ID"
418
+ }
419
+ column "space_id" {
420
+ null = false
421
+ type = bigint
422
+ default = 0
423
+ unsigned = true
424
+ comment = "Space ID"
425
+ }
426
+ column "owner_id" {
427
+ null = false
428
+ type = bigint
429
+ default = 0
430
+ unsigned = true
431
+ comment = "Owner ID"
432
+ }
433
+ column "icon_uri" {
434
+ null = false
435
+ type = varchar(512)
436
+ default = ""
437
+ comment = "Icon URI"
438
+ }
439
+ column "name" {
440
+ null = false
441
+ type = varchar(255)
442
+ default = ""
443
+ comment = "Application Name"
444
+ }
445
+ column "description" {
446
+ null = true
447
+ type = text
448
+ comment = "Application Description"
449
+ }
450
+ column "connector_ids" {
451
+ null = true
452
+ type = json
453
+ comment = "Publish Connector IDs"
454
+ }
455
+ column "extra_info" {
456
+ null = true
457
+ type = json
458
+ comment = "Publish Extra Info"
459
+ }
460
+ column "version" {
461
+ null = false
462
+ type = varchar(255)
463
+ default = ""
464
+ comment = "Release Version"
465
+ }
466
+ column "version_desc" {
467
+ null = true
468
+ type = text
469
+ comment = "Version Description"
470
+ }
471
+ column "publish_status" {
472
+ null = false
473
+ type = tinyint
474
+ default = 0
475
+ comment = "Publish Status"
476
+ }
477
+ column "publish_at" {
478
+ null = false
479
+ type = bigint
480
+ default = 0
481
+ unsigned = true
482
+ comment = "Publish Time in Milliseconds"
483
+ }
484
+ column "created_at" {
485
+ null = false
486
+ type = bigint
487
+ default = 0
488
+ unsigned = true
489
+ comment = "Create Time in Milliseconds"
490
+ }
491
+ column "updated_at" {
492
+ null = false
493
+ type = bigint
494
+ default = 0
495
+ unsigned = true
496
+ comment = "Update Time in Milliseconds"
497
+ }
498
+ primary_key {
499
+ columns = [column.id]
500
+ }
501
+ index "idx_app_publish_at" {
502
+ columns = [column.app_id, column.publish_at]
503
+ }
504
+ index "uniq_idx_app_version_connector" {
505
+ unique = true
506
+ columns = [column.app_id, column.version]
507
+ }
508
+ }
509
+ table "connector_workflow_version" {
510
+ schema = schema.opencoze
511
+ column "id" {
512
+ null = false
513
+ type = bigint
514
+ unsigned = true
515
+ comment = "id"
516
+ auto_increment = true
517
+ }
518
+ column "app_id" {
519
+ null = false
520
+ type = bigint
521
+ unsigned = true
522
+ comment = "app id"
523
+ }
524
+ column "connector_id" {
525
+ null = false
526
+ type = bigint
527
+ unsigned = true
528
+ comment = "connector id"
529
+ }
530
+ column "workflow_id" {
531
+ null = false
532
+ type = bigint
533
+ unsigned = true
534
+ comment = "workflow id"
535
+ }
536
+ column "version" {
537
+ null = false
538
+ type = varchar(256)
539
+ comment = "version"
540
+ }
541
+ column "created_at" {
542
+ null = false
543
+ type = bigint
544
+ unsigned = true
545
+ comment = "create time in millisecond"
546
+ }
547
+ primary_key {
548
+ columns = [column.id]
549
+ }
550
+ index "idx_connector_id_workflow_id_create_at" {
551
+ columns = [column.connector_id, column.workflow_id, column.created_at]
552
+ }
553
+ index "idx_connector_id_workflow_id_version" {
554
+ unique = true
555
+ columns = [column.connector_id, column.workflow_id, column.version]
556
+ }
557
+ }
558
+ table "conversation" {
559
+ schema = schema.opencoze
560
+ comment = "会话信息表"
561
+ column "id" {
562
+ null = false
563
+ type = bigint
564
+ unsigned = true
565
+ comment = "主键ID"
566
+ auto_increment = true
567
+ }
568
+ column "connector_id" {
569
+ null = false
570
+ type = bigint
571
+ default = 0
572
+ unsigned = true
573
+ comment = "业务线 ID"
574
+ }
575
+ column "agent_id" {
576
+ null = false
577
+ type = bigint
578
+ default = 0
579
+ comment = "agent_id"
580
+ }
581
+ column "scene" {
582
+ null = false
583
+ type = tinyint
584
+ default = 0
585
+ comment = "会话场景"
586
+ }
587
+ column "section_id" {
588
+ null = false
589
+ type = bigint
590
+ default = 0
591
+ unsigned = true
592
+ comment = "最新section_id"
593
+ }
594
+ column "creator_id" {
595
+ null = true
596
+ type = bigint
597
+ default = 0
598
+ unsigned = true
599
+ comment = "创建者id"
600
+ }
601
+ column "ext" {
602
+ null = true
603
+ type = text
604
+ comment = "扩展字段"
605
+ }
606
+ column "status" {
607
+ null = false
608
+ type = tinyint
609
+ default = 1
610
+ comment = "status: 1-normal 2-deleted"
611
+ }
612
+ column "created_at" {
613
+ null = false
614
+ type = bigint
615
+ default = 0
616
+ unsigned = true
617
+ comment = "创建时间"
618
+ }
619
+ column "updated_at" {
620
+ null = false
621
+ type = bigint
622
+ default = 0
623
+ unsigned = true
624
+ comment = "更新时间"
625
+ }
626
+ primary_key {
627
+ columns = [column.id]
628
+ }
629
+ index "idx_connector_bot_status" {
630
+ columns = [column.connector_id, column.agent_id, column.creator_id]
631
+ }
632
+ }
633
+ table "data_copy_task" {
634
+ schema = schema.opencoze
635
+ comment = "data方向复制任务记录表"
636
+ collate = "utf8mb4_general_ci"
637
+ column "master_task_id" {
638
+ null = false
639
+ type = varchar(128)
640
+ default = ""
641
+ comment = "复制任务ID"
642
+ }
643
+ column "origin_data_id" {
644
+ null = false
645
+ type = bigint
646
+ default = 0
647
+ unsigned = true
648
+ comment = "源id"
649
+ }
650
+ column "target_data_id" {
651
+ null = false
652
+ type = bigint
653
+ default = 0
654
+ unsigned = true
655
+ comment = "目标id"
656
+ }
657
+ column "origin_space_id" {
658
+ null = false
659
+ type = bigint
660
+ default = 0
661
+ unsigned = true
662
+ comment = "源团队空间"
663
+ }
664
+ column "target_space_id" {
665
+ null = false
666
+ type = bigint
667
+ default = 0
668
+ unsigned = true
669
+ comment = "目标团队空间"
670
+ }
671
+ column "origin_user_id" {
672
+ null = false
673
+ type = bigint
674
+ default = 0
675
+ unsigned = true
676
+ comment = "源用户ID"
677
+ }
678
+ column "target_user_id" {
679
+ null = false
680
+ type = bigint
681
+ default = 0
682
+ unsigned = true
683
+ comment = "目标用户ID"
684
+ }
685
+ column "origin_app_id" {
686
+ null = false
687
+ type = bigint
688
+ default = 0
689
+ unsigned = true
690
+ comment = "源AppID"
691
+ }
692
+ column "target_app_id" {
693
+ null = false
694
+ type = bigint
695
+ default = 0
696
+ unsigned = true
697
+ comment = "目标AppID"
698
+ }
699
+ column "data_type" {
700
+ null = false
701
+ type = tinyint
702
+ default = 0
703
+ unsigned = true
704
+ comment = "数据类型 1:knowledge, 2:database"
705
+ }
706
+ column "ext_info" {
707
+ null = false
708
+ type = varchar(255)
709
+ default = ""
710
+ comment = "存储额外信息"
711
+ }
712
+ column "start_time" {
713
+ null = false
714
+ type = bigint
715
+ default = 0
716
+ comment = "任务开始时间"
717
+ }
718
+ column "finish_time" {
719
+ null = true
720
+ type = bigint
721
+ comment = "任务结束时间"
722
+ }
723
+ column "status" {
724
+ null = false
725
+ type = tinyint
726
+ default = 1
727
+ comment = "1:创建 2:执行中 3:成功 4:失败"
728
+ }
729
+ column "error_msg" {
730
+ null = true
731
+ type = varchar(128)
732
+ comment = "错误信息"
733
+ }
734
+ column "id" {
735
+ null = false
736
+ type = bigint
737
+ unsigned = true
738
+ comment = "ID"
739
+ auto_increment = true
740
+ }
741
+ primary_key {
742
+ columns = [column.id]
743
+ }
744
+ index "uniq_master_task_id_origin_data_id_data_type" {
745
+ unique = true
746
+ columns = [column.master_task_id, column.origin_data_id, column.data_type]
747
+ }
748
+ }
749
+ table "draft_database_info" {
750
+ schema = schema.opencoze
751
+ comment = "draft database info"
752
+ collate = "utf8mb4_general_ci"
753
+ column "id" {
754
+ null = false
755
+ type = bigint
756
+ unsigned = true
757
+ comment = "ID"
758
+ }
759
+ column "app_id" {
760
+ null = true
761
+ type = bigint
762
+ unsigned = true
763
+ comment = "App ID"
764
+ }
765
+ column "space_id" {
766
+ null = false
767
+ type = bigint
768
+ unsigned = true
769
+ comment = "Space ID"
770
+ }
771
+ column "related_online_id" {
772
+ null = false
773
+ type = bigint
774
+ unsigned = true
775
+ comment = "The primary key ID of online_database_info table"
776
+ }
777
+ column "is_visible" {
778
+ null = false
779
+ type = tinyint
780
+ default = 1
781
+ comment = "Visibility: 0 invisible, 1 visible"
782
+ }
783
+ column "prompt_disabled" {
784
+ null = false
785
+ type = tinyint
786
+ default = 0
787
+ comment = "Support prompt calls: 1 not supported, 0 supported"
788
+ }
789
+ column "table_name" {
790
+ null = false
791
+ type = varchar(255)
792
+ comment = "Table name"
793
+ }
794
+ column "table_desc" {
795
+ null = true
796
+ type = varchar(256)
797
+ comment = "Table description"
798
+ }
799
+ column "table_field" {
800
+ null = true
801
+ type = text
802
+ comment = "Table field info"
803
+ }
804
+ column "creator_id" {
805
+ null = false
806
+ type = bigint
807
+ default = 0
808
+ comment = "Creator ID"
809
+ }
810
+ column "icon_uri" {
811
+ null = false
812
+ type = varchar(255)
813
+ comment = "Icon Uri"
814
+ }
815
+ column "physical_table_name" {
816
+ null = true
817
+ type = varchar(255)
818
+ comment = "The name of the real physical table"
819
+ }
820
+ column "rw_mode" {
821
+ null = false
822
+ type = bigint
823
+ default = 1
824
+ comment = "Read and write permission modes: 1. Limited read and write mode 2. Read-only mode 3. Full read and write mode"
825
+ }
826
+ column "created_at" {
827
+ null = false
828
+ type = bigint
829
+ default = 0
830
+ unsigned = true
831
+ comment = "Create Time in Milliseconds"
832
+ }
833
+ column "updated_at" {
834
+ null = false
835
+ type = bigint
836
+ default = 0
837
+ unsigned = true
838
+ comment = "Update Time in Milliseconds"
839
+ }
840
+ column "deleted_at" {
841
+ null = true
842
+ type = datetime
843
+ comment = "Delete Time"
844
+ }
845
+ primary_key {
846
+ columns = [column.id]
847
+ }
848
+ index "idx_space_app_creator_deleted" {
849
+ columns = [column.space_id, column.app_id, column.creator_id, column.deleted_at]
850
+ }
851
+ }
852
+ table "knowledge" {
853
+ schema = schema.opencoze
854
+ comment = "知识库表"
855
+ column "id" {
856
+ null = false
857
+ type = bigint
858
+ unsigned = true
859
+ comment = "主键ID"
860
+ }
861
+ column "name" {
862
+ null = false
863
+ type = varchar(150)
864
+ default = ""
865
+ comment = "名称"
866
+ }
867
+ column "app_id" {
868
+ null = false
869
+ type = bigint
870
+ default = 0
871
+ comment = "项目ID,标识该资源是否是项目独有"
872
+ }
873
+ column "creator_id" {
874
+ null = false
875
+ type = bigint
876
+ default = 0
877
+ unsigned = true
878
+ comment = "ID"
879
+ }
880
+ column "space_id" {
881
+ null = false
882
+ type = bigint
883
+ default = 0
884
+ unsigned = true
885
+ comment = "空间ID"
886
+ }
887
+ column "created_at" {
888
+ null = false
889
+ type = bigint
890
+ default = 0
891
+ unsigned = true
892
+ comment = "Create Time in Milliseconds"
893
+ }
894
+ column "updated_at" {
895
+ null = false
896
+ type = bigint
897
+ default = 0
898
+ unsigned = true
899
+ comment = "Update Time in Milliseconds"
900
+ }
901
+ column "deleted_at" {
902
+ null = true
903
+ type = datetime(3)
904
+ comment = "Delete Time in Milliseconds"
905
+ }
906
+ column "status" {
907
+ null = false
908
+ type = tinyint
909
+ default = 1
910
+ comment = "0 初始化, 1 生效 2 失效"
911
+ }
912
+ column "description" {
913
+ null = true
914
+ type = text
915
+ comment = "描述"
916
+ }
917
+ column "icon_uri" {
918
+ null = true
919
+ type = varchar(150)
920
+ comment = "头像uri"
921
+ }
922
+ column "format_type" {
923
+ null = false
924
+ type = tinyint
925
+ default = 0
926
+ comment = "0:文本 1:表格 2:图片"
927
+ }
928
+ primary_key {
929
+ columns = [column.id]
930
+ }
931
+ index "idx_app_id" {
932
+ columns = [column.app_id]
933
+ }
934
+ index "idx_creator_id" {
935
+ columns = [column.creator_id]
936
+ }
937
+ index "idx_space_id_deleted_at_updated_at" {
938
+ columns = [column.space_id, column.deleted_at, column.updated_at]
939
+ }
940
+ }
941
+ table "knowledge_document" {
942
+ schema = schema.opencoze
943
+ comment = "知识库文档表"
944
+ column "id" {
945
+ null = false
946
+ type = bigint
947
+ unsigned = true
948
+ comment = "主键ID"
949
+ }
950
+ column "knowledge_id" {
951
+ null = false
952
+ type = bigint
953
+ default = 0
954
+ unsigned = true
955
+ comment = "所属knowledge的ID"
956
+ }
957
+ column "name" {
958
+ null = false
959
+ type = varchar(150)
960
+ default = ""
961
+ comment = "文档名称"
962
+ }
963
+ column "file_extension" {
964
+ null = false
965
+ type = varchar(20)
966
+ default = "0"
967
+ comment = "文档类型, txt/pdf/csv/..."
968
+ }
969
+ column "document_type" {
970
+ null = false
971
+ type = int
972
+ default = 0
973
+ comment = "文档类型: 0:文本 1:表格 2:图片"
974
+ }
975
+ column "uri" {
976
+ null = true
977
+ type = text
978
+ comment = "资源uri"
979
+ }
980
+ column "size" {
981
+ null = false
982
+ type = bigint
983
+ default = 0
984
+ unsigned = true
985
+ comment = "文档大小"
986
+ }
987
+ column "slice_count" {
988
+ null = false
989
+ type = bigint
990
+ default = 0
991
+ unsigned = true
992
+ comment = "分片数量"
993
+ }
994
+ column "char_count" {
995
+ null = false
996
+ type = bigint
997
+ default = 0
998
+ unsigned = true
999
+ comment = "字符数"
1000
+ }
1001
+ column "creator_id" {
1002
+ null = false
1003
+ type = bigint
1004
+ default = 0
1005
+ unsigned = true
1006
+ comment = "创建者ID"
1007
+ }
1008
+ column "space_id" {
1009
+ null = false
1010
+ type = bigint
1011
+ default = 0
1012
+ comment = "空间id"
1013
+ }
1014
+ column "created_at" {
1015
+ null = false
1016
+ type = bigint
1017
+ default = 0
1018
+ unsigned = true
1019
+ comment = "Create Time in Milliseconds"
1020
+ }
1021
+ column "updated_at" {
1022
+ null = false
1023
+ type = bigint
1024
+ default = 0
1025
+ unsigned = true
1026
+ comment = "Update Time in Milliseconds"
1027
+ }
1028
+ column "deleted_at" {
1029
+ null = true
1030
+ type = datetime(3)
1031
+ comment = "Delete Time in Milliseconds"
1032
+ }
1033
+ column "source_type" {
1034
+ null = false
1035
+ type = int
1036
+ default = 0
1037
+ comment = "0:本地文件上传, 2:自定义文本"
1038
+ }
1039
+ column "status" {
1040
+ null = false
1041
+ type = int
1042
+ default = 0
1043
+ comment = "状态"
1044
+ }
1045
+ column "fail_reason" {
1046
+ null = true
1047
+ type = text
1048
+ comment = "失败原因"
1049
+ }
1050
+ column "parse_rule" {
1051
+ null = true
1052
+ type = json
1053
+ comment = "解析+切片规则"
1054
+ }
1055
+ column "table_info" {
1056
+ null = true
1057
+ type = json
1058
+ comment = "表格信息"
1059
+ }
1060
+ primary_key {
1061
+ columns = [column.id]
1062
+ }
1063
+ index "idx_creator_id" {
1064
+ columns = [column.creator_id]
1065
+ }
1066
+ index "idx_knowledge_id_deleted_at_updated_at" {
1067
+ columns = [column.knowledge_id, column.deleted_at, column.updated_at]
1068
+ }
1069
+ }
1070
+ table "knowledge_document_review" {
1071
+ schema = schema.opencoze
1072
+ comment = "文档审阅表"
1073
+ column "id" {
1074
+ null = false
1075
+ type = bigint
1076
+ default = 0
1077
+ unsigned = true
1078
+ comment = "主键ID"
1079
+ }
1080
+ column "knowledge_id" {
1081
+ null = false
1082
+ type = bigint
1083
+ default = 0
1084
+ unsigned = true
1085
+ comment = "knowledge id"
1086
+ }
1087
+ column "space_id" {
1088
+ null = false
1089
+ type = bigint
1090
+ default = 0
1091
+ comment = "空间id"
1092
+ }
1093
+ column "name" {
1094
+ null = false
1095
+ type = varchar(150)
1096
+ default = ""
1097
+ comment = "文档名称"
1098
+ }
1099
+ column "type" {
1100
+ null = false
1101
+ type = varchar(10)
1102
+ default = "0"
1103
+ comment = "文档类型"
1104
+ }
1105
+ column "uri" {
1106
+ null = true
1107
+ type = text
1108
+ comment = "资源标识"
1109
+ }
1110
+ column "format_type" {
1111
+ null = false
1112
+ type = tinyint
1113
+ default = 0
1114
+ unsigned = true
1115
+ comment = "0 文本, 1 表格, 2 图片"
1116
+ }
1117
+ column "status" {
1118
+ null = false
1119
+ type = tinyint
1120
+ default = 0
1121
+ unsigned = true
1122
+ comment = "0 处理中,1 已完成,2 失败,3 失效"
1123
+ }
1124
+ column "chunk_resp_uri" {
1125
+ null = true
1126
+ type = text
1127
+ comment = "预切片tos资源标识"
1128
+ }
1129
+ column "deleted_at" {
1130
+ null = true
1131
+ type = datetime(3)
1132
+ comment = "Delete Time in Milliseconds"
1133
+ }
1134
+ column "created_at" {
1135
+ null = false
1136
+ type = bigint
1137
+ default = 0
1138
+ unsigned = true
1139
+ comment = "Create Time in Milliseconds"
1140
+ }
1141
+ column "updated_at" {
1142
+ null = false
1143
+ type = bigint
1144
+ default = 0
1145
+ unsigned = true
1146
+ comment = "Update Time in Milliseconds"
1147
+ }
1148
+ column "creator_id" {
1149
+ null = false
1150
+ type = bigint
1151
+ default = 0
1152
+ comment = "创建者ID"
1153
+ }
1154
+ primary_key {
1155
+ columns = [column.id]
1156
+ }
1157
+ index "idx_dataset_id" {
1158
+ columns = [column.knowledge_id, column.status, column.updated_at]
1159
+ }
1160
+ index "idx_uri" {
1161
+ on {
1162
+ column = column.uri
1163
+ prefix = 100
1164
+ }
1165
+ }
1166
+ }
1167
+ table "knowledge_document_slice" {
1168
+ schema = schema.opencoze
1169
+ comment = "知识库文件切片表"
1170
+ column "id" {
1171
+ null = false
1172
+ type = bigint
1173
+ default = 0
1174
+ unsigned = true
1175
+ comment = "主键ID"
1176
+ }
1177
+ column "knowledge_id" {
1178
+ null = false
1179
+ type = bigint
1180
+ default = 0
1181
+ unsigned = true
1182
+ comment = "knowledge id"
1183
+ }
1184
+ column "document_id" {
1185
+ null = false
1186
+ type = bigint
1187
+ default = 0
1188
+ unsigned = true
1189
+ comment = "document id"
1190
+ }
1191
+ column "content" {
1192
+ null = true
1193
+ type = text
1194
+ comment = "切片内容"
1195
+ }
1196
+ column "sequence" {
1197
+ null = false
1198
+ type = decimal(20,5)
1199
+ unsigned = false
1200
+ comment = "切片顺序号, 从1开始"
1201
+ }
1202
+ column "created_at" {
1203
+ null = false
1204
+ type = bigint
1205
+ default = 0
1206
+ unsigned = true
1207
+ comment = "Create Time in Milliseconds"
1208
+ }
1209
+ column "updated_at" {
1210
+ null = false
1211
+ type = bigint
1212
+ default = 0
1213
+ unsigned = true
1214
+ comment = "Update Time in Milliseconds"
1215
+ }
1216
+ column "deleted_at" {
1217
+ null = true
1218
+ type = datetime(3)
1219
+ comment = "Delete Time in Milliseconds"
1220
+ }
1221
+ column "creator_id" {
1222
+ null = false
1223
+ type = bigint
1224
+ default = 0
1225
+ comment = "创建者ID"
1226
+ }
1227
+ column "space_id" {
1228
+ null = false
1229
+ type = bigint
1230
+ default = 0
1231
+ comment = "空间ID"
1232
+ }
1233
+ column "status" {
1234
+ null = false
1235
+ type = int
1236
+ default = 0
1237
+ comment = "状态"
1238
+ }
1239
+ column "fail_reason" {
1240
+ null = true
1241
+ type = text
1242
+ comment = "失败原因"
1243
+ }
1244
+ column "hit" {
1245
+ null = false
1246
+ type = bigint
1247
+ default = 0
1248
+ unsigned = true
1249
+ comment = "命中次数"
1250
+ }
1251
+ primary_key {
1252
+ columns = [column.id]
1253
+ }
1254
+ index "idx_document_id_deleted_at_sequence" {
1255
+ columns = [column.document_id, column.deleted_at, column.sequence]
1256
+ }
1257
+ index "idx_knowledge_id_document_id" {
1258
+ columns = [column.knowledge_id, column.document_id]
1259
+ }
1260
+ index "idx_sequence" {
1261
+ columns = [column.sequence]
1262
+ }
1263
+ }
1264
+ table "message" {
1265
+ schema = schema.opencoze
1266
+ comment = "消息表"
1267
+ column "id" {
1268
+ null = false
1269
+ type = bigint
1270
+ unsigned = true
1271
+ comment = "主键ID"
1272
+ auto_increment = true
1273
+ }
1274
+ column "run_id" {
1275
+ null = false
1276
+ type = bigint
1277
+ default = 0
1278
+ unsigned = true
1279
+ comment = "对应的run_id"
1280
+ }
1281
+ column "conversation_id" {
1282
+ null = false
1283
+ type = bigint
1284
+ default = 0
1285
+ unsigned = true
1286
+ comment = "conversation id"
1287
+ }
1288
+ column "user_id" {
1289
+ null = false
1290
+ type = varchar(60)
1291
+ default = ""
1292
+ comment = "user id"
1293
+ }
1294
+ column "agent_id" {
1295
+ null = false
1296
+ type = bigint
1297
+ default = 0
1298
+ unsigned = true
1299
+ comment = "agent_id"
1300
+ }
1301
+ column "role" {
1302
+ null = false
1303
+ type = varchar(100)
1304
+ default = ""
1305
+ comment = "角色: user、assistant、system"
1306
+ }
1307
+ column "content_type" {
1308
+ null = false
1309
+ type = varchar(100)
1310
+ default = ""
1311
+ comment = "内容类型 1 text"
1312
+ }
1313
+ column "content" {
1314
+ null = true
1315
+ type = mediumtext
1316
+ comment = "内容"
1317
+ }
1318
+ column "message_type" {
1319
+ null = false
1320
+ type = varchar(100)
1321
+ default = ""
1322
+ comment = "消息类型:"
1323
+ }
1324
+ column "display_content" {
1325
+ null = true
1326
+ type = text
1327
+ comment = "展示内容"
1328
+ }
1329
+ column "ext" {
1330
+ null = true
1331
+ type = text
1332
+ comment = "message 扩展字段"
1333
+ collate = "utf8mb4_general_ci"
1334
+ }
1335
+ column "section_id" {
1336
+ null = true
1337
+ type = bigint
1338
+ unsigned = true
1339
+ comment = "段落id"
1340
+ }
1341
+ column "broken_position" {
1342
+ null = true
1343
+ type = int
1344
+ default = -1
1345
+ comment = "打断位置"
1346
+ }
1347
+ column "status" {
1348
+ null = false
1349
+ type = tinyint
1350
+ default = 0
1351
+ unsigned = true
1352
+ comment = "消息状态 1 Available 2 Deleted 3 Replaced 4 Broken 5 Failed 6 Streaming 7 Pending"
1353
+ }
1354
+ column "model_content" {
1355
+ null = true
1356
+ type = mediumtext
1357
+ comment = "模型输入内容"
1358
+ }
1359
+ column "meta_info" {
1360
+ null = true
1361
+ type = text
1362
+ comment = "引用、高亮等文本标记信息"
1363
+ }
1364
+ column "reasoning_content" {
1365
+ null = true
1366
+ type = text
1367
+ comment = "思考内容"
1368
+ collate = "utf8mb4_general_ci"
1369
+ }
1370
+ column "created_at" {
1371
+ null = false
1372
+ type = bigint
1373
+ default = 0
1374
+ unsigned = true
1375
+ comment = "创建时间"
1376
+ }
1377
+ column "updated_at" {
1378
+ null = false
1379
+ type = bigint
1380
+ default = 0
1381
+ unsigned = true
1382
+ comment = "更新时间"
1383
+ }
1384
+ primary_key {
1385
+ columns = [column.id]
1386
+ }
1387
+ index "idx_conversation_id" {
1388
+ columns = [column.conversation_id]
1389
+ }
1390
+ index "idx_run_id" {
1391
+ columns = [column.run_id]
1392
+ }
1393
+ }
1394
+ table "model_entity" {
1395
+ schema = schema.opencoze
1396
+ comment = "模型信息"
1397
+ column "id" {
1398
+ null = false
1399
+ type = bigint
1400
+ unsigned = true
1401
+ comment = "主键ID"
1402
+ }
1403
+ column "meta_id" {
1404
+ null = false
1405
+ type = bigint
1406
+ unsigned = true
1407
+ comment = "模型元信息 id"
1408
+ }
1409
+ column "name" {
1410
+ null = false
1411
+ type = varchar(128)
1412
+ comment = "名称"
1413
+ }
1414
+ column "description" {
1415
+ null = true
1416
+ type = text
1417
+ comment = "描述"
1418
+ }
1419
+ column "default_params" {
1420
+ null = true
1421
+ type = json
1422
+ comment = "默认参数"
1423
+ }
1424
+ column "scenario" {
1425
+ null = false
1426
+ type = bigint
1427
+ unsigned = true
1428
+ comment = "模型应用场景"
1429
+ }
1430
+ column "status" {
1431
+ null = false
1432
+ type = int
1433
+ default = 1
1434
+ comment = "模型状态"
1435
+ }
1436
+ column "created_at" {
1437
+ null = false
1438
+ type = bigint
1439
+ default = 0
1440
+ unsigned = true
1441
+ comment = "Create Time in Milliseconds"
1442
+ }
1443
+ column "updated_at" {
1444
+ null = false
1445
+ type = bigint
1446
+ default = 0
1447
+ unsigned = true
1448
+ comment = "Update Time in Milliseconds"
1449
+ }
1450
+ column "deleted_at" {
1451
+ null = true
1452
+ type = bigint
1453
+ unsigned = true
1454
+ comment = "Delete Time in Milliseconds"
1455
+ }
1456
+ primary_key {
1457
+ columns = [column.id]
1458
+ }
1459
+ index "idx_scenario" {
1460
+ columns = [column.scenario]
1461
+ }
1462
+ index "idx_status" {
1463
+ columns = [column.status]
1464
+ }
1465
+ }
1466
+ table "model_meta" {
1467
+ schema = schema.opencoze
1468
+ comment = "模型元信息"
1469
+ column "id" {
1470
+ null = false
1471
+ type = bigint
1472
+ unsigned = true
1473
+ comment = "主键ID"
1474
+ }
1475
+ column "model_name" {
1476
+ null = false
1477
+ type = varchar(128)
1478
+ comment = "模型名称"
1479
+ }
1480
+ column "protocol" {
1481
+ null = false
1482
+ type = varchar(128)
1483
+ comment = "模型协议"
1484
+ }
1485
+ column "icon_uri" {
1486
+ null = false
1487
+ type = varchar(255)
1488
+ default = ""
1489
+ comment = "Icon URI"
1490
+ }
1491
+ column "capability" {
1492
+ null = true
1493
+ type = json
1494
+ comment = "模型能力"
1495
+ }
1496
+ column "conn_config" {
1497
+ null = true
1498
+ type = json
1499
+ comment = "模型连接配置"
1500
+ }
1501
+ column "status" {
1502
+ null = false
1503
+ type = int
1504
+ default = 1
1505
+ comment = "模型状态"
1506
+ }
1507
+ column "description" {
1508
+ null = false
1509
+ type = varchar(2048)
1510
+ default = ""
1511
+ comment = "模型描述"
1512
+ }
1513
+ column "created_at" {
1514
+ null = false
1515
+ type = bigint
1516
+ default = 0
1517
+ unsigned = true
1518
+ comment = "Create Time in Milliseconds"
1519
+ }
1520
+ column "updated_at" {
1521
+ null = false
1522
+ type = bigint
1523
+ default = 0
1524
+ unsigned = true
1525
+ comment = "Update Time in Milliseconds"
1526
+ }
1527
+ column "deleted_at" {
1528
+ null = true
1529
+ type = bigint
1530
+ unsigned = true
1531
+ comment = "Delete Time in Milliseconds"
1532
+ }
1533
+ column "icon_url" {
1534
+ null = false
1535
+ type = varchar(255)
1536
+ default = ""
1537
+ comment = "Icon URL"
1538
+ }
1539
+ primary_key {
1540
+ columns = [column.id]
1541
+ }
1542
+ index "idx_status" {
1543
+ columns = [column.status]
1544
+ }
1545
+ }
1546
+ table "node_execution" {
1547
+ schema = schema.opencoze
1548
+ comment = "node 节点运行记录,用于记录每次workflow执行时,每个节点的状态信息"
1549
+ collate = "utf8mb4_0900_ai_ci"
1550
+ column "id" {
1551
+ null = false
1552
+ type = bigint
1553
+ unsigned = true
1554
+ comment = "node execution id"
1555
+ }
1556
+ column "execute_id" {
1557
+ null = false
1558
+ type = bigint
1559
+ unsigned = true
1560
+ comment = "the workflow execute id this node execution belongs to"
1561
+ }
1562
+ column "node_id" {
1563
+ null = false
1564
+ type = varchar(128)
1565
+ comment = "node key"
1566
+ collate = "utf8mb4_unicode_ci"
1567
+ }
1568
+ column "node_name" {
1569
+ null = false
1570
+ type = varchar(128)
1571
+ comment = "name of the node"
1572
+ collate = "utf8mb4_unicode_ci"
1573
+ }
1574
+ column "node_type" {
1575
+ null = false
1576
+ type = varchar(128)
1577
+ comment = "the type of the node, in string"
1578
+ collate = "utf8mb4_unicode_ci"
1579
+ }
1580
+ column "created_at" {
1581
+ null = false
1582
+ type = bigint
1583
+ unsigned = true
1584
+ comment = "create time in millisecond"
1585
+ }
1586
+ column "status" {
1587
+ null = false
1588
+ type = tinyint
1589
+ unsigned = true
1590
+ comment = "1=waiting 2=running 3=success 4=fail"
1591
+ }
1592
+ column "duration" {
1593
+ null = true
1594
+ type = bigint
1595
+ unsigned = true
1596
+ comment = "execution duration in millisecond"
1597
+ }
1598
+ column "input" {
1599
+ null = true
1600
+ type = mediumtext
1601
+ comment = "actual input of the node"
1602
+ collate = "utf8mb4_unicode_ci"
1603
+ }
1604
+ column "output" {
1605
+ null = true
1606
+ type = mediumtext
1607
+ comment = "actual output of the node"
1608
+ collate = "utf8mb4_unicode_ci"
1609
+ }
1610
+ column "raw_output" {
1611
+ null = true
1612
+ type = mediumtext
1613
+ comment = "the original output of the node"
1614
+ collate = "utf8mb4_unicode_ci"
1615
+ }
1616
+ column "error_info" {
1617
+ null = true
1618
+ type = mediumtext
1619
+ comment = "error info"
1620
+ collate = "utf8mb4_unicode_ci"
1621
+ }
1622
+ column "error_level" {
1623
+ null = true
1624
+ type = varchar(32)
1625
+ comment = "level of the error"
1626
+ collate = "utf8mb4_unicode_ci"
1627
+ }
1628
+ column "input_tokens" {
1629
+ null = true
1630
+ type = bigint
1631
+ unsigned = true
1632
+ comment = "number of input tokens"
1633
+ }
1634
+ column "output_tokens" {
1635
+ null = true
1636
+ type = bigint
1637
+ unsigned = true
1638
+ comment = "number of output tokens"
1639
+ }
1640
+ column "updated_at" {
1641
+ null = true
1642
+ type = bigint
1643
+ unsigned = true
1644
+ comment = "update time in millisecond"
1645
+ }
1646
+ column "composite_node_index" {
1647
+ null = true
1648
+ type = bigint
1649
+ unsigned = true
1650
+ comment = "loop or batch's execution index"
1651
+ }
1652
+ column "composite_node_items" {
1653
+ null = true
1654
+ type = mediumtext
1655
+ comment = "the items extracted from parent composite node for this index"
1656
+ collate = "utf8mb4_unicode_ci"
1657
+ }
1658
+ column "parent_node_id" {
1659
+ null = true
1660
+ type = varchar(128)
1661
+ comment = "when as inner node for loop or batch, this is the parent node's key"
1662
+ collate = "utf8mb4_unicode_ci"
1663
+ }
1664
+ column "sub_execute_id" {
1665
+ null = true
1666
+ type = bigint
1667
+ unsigned = true
1668
+ comment = "if this node is sub_workflow, the exe id of the sub workflow"
1669
+ }
1670
+ column "extra" {
1671
+ null = true
1672
+ type = mediumtext
1673
+ comment = "extra info"
1674
+ collate = "utf8mb4_unicode_ci"
1675
+ }
1676
+ primary_key {
1677
+ columns = [column.id]
1678
+ }
1679
+ index "idx_execute_id_node_id" {
1680
+ columns = [column.execute_id, column.node_id]
1681
+ }
1682
+ index "idx_execute_id_parent_node_id" {
1683
+ columns = [column.execute_id, column.parent_node_id]
1684
+ }
1685
+ }
1686
+ table "online_database_info" {
1687
+ schema = schema.opencoze
1688
+ comment = "online database info"
1689
+ collate = "utf8mb4_general_ci"
1690
+ column "id" {
1691
+ null = false
1692
+ type = bigint
1693
+ unsigned = true
1694
+ comment = "ID"
1695
+ }
1696
+ column "app_id" {
1697
+ null = true
1698
+ type = bigint
1699
+ unsigned = true
1700
+ comment = "App ID"
1701
+ }
1702
+ column "space_id" {
1703
+ null = false
1704
+ type = bigint
1705
+ unsigned = true
1706
+ comment = "Space ID"
1707
+ }
1708
+ column "related_draft_id" {
1709
+ null = false
1710
+ type = bigint
1711
+ unsigned = true
1712
+ comment = "The primary key ID of draft_database_info table"
1713
+ }
1714
+ column "is_visible" {
1715
+ null = false
1716
+ type = tinyint
1717
+ default = 1
1718
+ comment = "Visibility: 0 invisible, 1 visible"
1719
+ }
1720
+ column "prompt_disabled" {
1721
+ null = false
1722
+ type = tinyint
1723
+ default = 0
1724
+ comment = "Support prompt calls: 1 not supported, 0 supported"
1725
+ }
1726
+ column "table_name" {
1727
+ null = false
1728
+ type = varchar(255)
1729
+ comment = "Table name"
1730
+ }
1731
+ column "table_desc" {
1732
+ null = true
1733
+ type = varchar(256)
1734
+ comment = "Table description"
1735
+ }
1736
+ column "table_field" {
1737
+ null = true
1738
+ type = text
1739
+ comment = "Table field info"
1740
+ }
1741
+ column "creator_id" {
1742
+ null = false
1743
+ type = bigint
1744
+ default = 0
1745
+ comment = "Creator ID"
1746
+ }
1747
+ column "icon_uri" {
1748
+ null = false
1749
+ type = varchar(255)
1750
+ comment = "Icon Uri"
1751
+ }
1752
+ column "physical_table_name" {
1753
+ null = true
1754
+ type = varchar(255)
1755
+ comment = "The name of the real physical table"
1756
+ }
1757
+ column "rw_mode" {
1758
+ null = false
1759
+ type = bigint
1760
+ default = 1
1761
+ comment = "Read and write permission modes: 1. Limited read and write mode 2. Read-only mode 3. Full read and write mode"
1762
+ }
1763
+ column "created_at" {
1764
+ null = false
1765
+ type = bigint
1766
+ default = 0
1767
+ unsigned = true
1768
+ comment = "Create Time in Milliseconds"
1769
+ }
1770
+ column "updated_at" {
1771
+ null = false
1772
+ type = bigint
1773
+ default = 0
1774
+ unsigned = true
1775
+ comment = "Update Time in Milliseconds"
1776
+ }
1777
+ column "deleted_at" {
1778
+ null = true
1779
+ type = datetime
1780
+ comment = "Delete Time"
1781
+ }
1782
+ primary_key {
1783
+ columns = [column.id]
1784
+ }
1785
+ index "idx_space_app_creator_deleted" {
1786
+ columns = [column.space_id, column.app_id, column.creator_id, column.deleted_at]
1787
+ }
1788
+ }
1789
+ table "plugin" {
1790
+ schema = schema.opencoze
1791
+ comment = "Latest Plugin"
1792
+ column "id" {
1793
+ null = false
1794
+ type = bigint
1795
+ default = 0
1796
+ unsigned = true
1797
+ comment = "Plugin ID"
1798
+ }
1799
+ column "space_id" {
1800
+ null = false
1801
+ type = bigint
1802
+ default = 0
1803
+ unsigned = true
1804
+ comment = "Space ID"
1805
+ }
1806
+ column "developer_id" {
1807
+ null = false
1808
+ type = bigint
1809
+ default = 0
1810
+ unsigned = true
1811
+ comment = "Developer ID"
1812
+ }
1813
+ column "app_id" {
1814
+ null = false
1815
+ type = bigint
1816
+ default = 0
1817
+ unsigned = true
1818
+ comment = "Application ID"
1819
+ }
1820
+ column "icon_uri" {
1821
+ null = false
1822
+ type = varchar(512)
1823
+ default = ""
1824
+ comment = "Icon URI"
1825
+ }
1826
+ column "server_url" {
1827
+ null = false
1828
+ type = varchar(512)
1829
+ default = ""
1830
+ comment = "Server URL"
1831
+ }
1832
+ column "plugin_type" {
1833
+ null = false
1834
+ type = tinyint
1835
+ default = 0
1836
+ comment = "Plugin Type, 1:http, 6:local"
1837
+ }
1838
+ column "created_at" {
1839
+ null = false
1840
+ type = bigint
1841
+ default = 0
1842
+ unsigned = true
1843
+ comment = "Create Time in Milliseconds"
1844
+ }
1845
+ column "updated_at" {
1846
+ null = false
1847
+ type = bigint
1848
+ default = 0
1849
+ unsigned = true
1850
+ comment = "Update Time in Milliseconds"
1851
+ }
1852
+ column "version" {
1853
+ null = false
1854
+ type = varchar(255)
1855
+ default = ""
1856
+ comment = "Plugin Version, e.g. v1.0.0"
1857
+ }
1858
+ column "version_desc" {
1859
+ null = true
1860
+ type = text
1861
+ comment = "Plugin Version Description"
1862
+ }
1863
+ column "manifest" {
1864
+ null = true
1865
+ type = json
1866
+ comment = "Plugin Manifest"
1867
+ }
1868
+ column "openapi_doc" {
1869
+ null = true
1870
+ type = json
1871
+ comment = "OpenAPI Document, only stores the root"
1872
+ }
1873
+ primary_key {
1874
+ columns = [column.id]
1875
+ }
1876
+ index "idx_space_created_at" {
1877
+ columns = [column.space_id, column.created_at]
1878
+ }
1879
+ index "idx_space_updated_at" {
1880
+ columns = [column.space_id, column.updated_at]
1881
+ }
1882
+ }
1883
+ table "plugin_draft" {
1884
+ schema = schema.opencoze
1885
+ comment = "Draft Plugin"
1886
+ column "id" {
1887
+ null = false
1888
+ type = bigint
1889
+ default = 0
1890
+ unsigned = true
1891
+ comment = "Plugin ID"
1892
+ }
1893
+ column "space_id" {
1894
+ null = false
1895
+ type = bigint
1896
+ default = 0
1897
+ unsigned = true
1898
+ comment = "Space ID"
1899
+ }
1900
+ column "developer_id" {
1901
+ null = false
1902
+ type = bigint
1903
+ default = 0
1904
+ unsigned = true
1905
+ comment = "Developer ID"
1906
+ }
1907
+ column "app_id" {
1908
+ null = false
1909
+ type = bigint
1910
+ default = 0
1911
+ unsigned = true
1912
+ comment = "Application ID"
1913
+ }
1914
+ column "icon_uri" {
1915
+ null = false
1916
+ type = varchar(512)
1917
+ default = ""
1918
+ comment = "Icon URI"
1919
+ }
1920
+ column "server_url" {
1921
+ null = false
1922
+ type = varchar(512)
1923
+ default = ""
1924
+ comment = "Server URL"
1925
+ }
1926
+ column "plugin_type" {
1927
+ null = false
1928
+ type = tinyint
1929
+ default = 0
1930
+ comment = "Plugin Type, 1:http, 6:local"
1931
+ }
1932
+ column "created_at" {
1933
+ null = false
1934
+ type = bigint
1935
+ default = 0
1936
+ unsigned = true
1937
+ comment = "Create Time in Milliseconds"
1938
+ }
1939
+ column "updated_at" {
1940
+ null = false
1941
+ type = bigint
1942
+ default = 0
1943
+ unsigned = true
1944
+ comment = "Update Time in Milliseconds"
1945
+ }
1946
+ column "deleted_at" {
1947
+ null = true
1948
+ type = datetime
1949
+ comment = "Delete Time"
1950
+ }
1951
+ column "manifest" {
1952
+ null = true
1953
+ type = json
1954
+ comment = "Plugin Manifest"
1955
+ }
1956
+ column "openapi_doc" {
1957
+ null = true
1958
+ type = json
1959
+ comment = "OpenAPI Document, only stores the root"
1960
+ }
1961
+ primary_key {
1962
+ columns = [column.id]
1963
+ }
1964
+ index "idx_app_id" {
1965
+ columns = [column.app_id, column.id]
1966
+ }
1967
+ index "idx_space_app_created_at" {
1968
+ columns = [column.space_id, column.app_id, column.created_at]
1969
+ }
1970
+ index "idx_space_app_updated_at" {
1971
+ columns = [column.space_id, column.app_id, column.updated_at]
1972
+ }
1973
+ }
1974
+ table "plugin_oauth_auth" {
1975
+ schema = schema.opencoze
1976
+ comment = "Plugin OAuth Authorization Code Info"
1977
+ column "id" {
1978
+ null = false
1979
+ type = bigint
1980
+ default = 0
1981
+ unsigned = true
1982
+ comment = "Primary Key"
1983
+ }
1984
+ column "user_id" {
1985
+ null = false
1986
+ type = varchar(255)
1987
+ default = ""
1988
+ comment = "User ID"
1989
+ }
1990
+ column "plugin_id" {
1991
+ null = false
1992
+ type = bigint
1993
+ default = 0
1994
+ comment = "Plugin ID"
1995
+ }
1996
+ column "is_draft" {
1997
+ null = false
1998
+ type = bool
1999
+ default = 0
2000
+ comment = "Is Draft Plugin"
2001
+ }
2002
+ column "oauth_config" {
2003
+ null = true
2004
+ type = json
2005
+ comment = "Authorization Code OAuth Config"
2006
+ }
2007
+ column "access_token" {
2008
+ null = false
2009
+ type = text
2010
+ comment = "Access Token"
2011
+ }
2012
+ column "refresh_token" {
2013
+ null = false
2014
+ type = text
2015
+ comment = "Refresh Token"
2016
+ }
2017
+ column "token_expired_at" {
2018
+ null = true
2019
+ type = bigint
2020
+ comment = "Token Expired in Milliseconds"
2021
+ }
2022
+ column "next_token_refresh_at" {
2023
+ null = true
2024
+ type = bigint
2025
+ comment = "Next Token Refresh Time in Milliseconds"
2026
+ }
2027
+ column "last_active_at" {
2028
+ null = true
2029
+ type = bigint
2030
+ comment = "Last active time in Milliseconds"
2031
+ }
2032
+ column "created_at" {
2033
+ null = false
2034
+ type = bigint
2035
+ default = 0
2036
+ unsigned = true
2037
+ comment = "Create Time in Milliseconds"
2038
+ }
2039
+ column "updated_at" {
2040
+ null = false
2041
+ type = bigint
2042
+ default = 0
2043
+ unsigned = true
2044
+ comment = "Update Time in Milliseconds"
2045
+ }
2046
+ primary_key {
2047
+ columns = [column.id]
2048
+ }
2049
+ index "idx_last_active_at" {
2050
+ columns = [column.last_active_at]
2051
+ }
2052
+ index "idx_last_token_expired_at" {
2053
+ columns = [column.token_expired_at]
2054
+ }
2055
+ index "idx_next_token_refresh_at" {
2056
+ columns = [column.next_token_refresh_at]
2057
+ }
2058
+ index "uniq_idx_user_plugin_is_draft" {
2059
+ unique = true
2060
+ columns = [column.user_id, column.plugin_id, column.is_draft]
2061
+ }
2062
+ }
2063
+ table "plugin_version" {
2064
+ schema = schema.opencoze
2065
+ comment = "Plugin Version"
2066
+ column "id" {
2067
+ null = false
2068
+ type = bigint
2069
+ default = 0
2070
+ unsigned = true
2071
+ comment = "Primary Key ID"
2072
+ }
2073
+ column "space_id" {
2074
+ null = false
2075
+ type = bigint
2076
+ default = 0
2077
+ unsigned = true
2078
+ comment = "Space ID"
2079
+ }
2080
+ column "developer_id" {
2081
+ null = false
2082
+ type = bigint
2083
+ default = 0
2084
+ unsigned = true
2085
+ comment = "Developer ID"
2086
+ }
2087
+ column "plugin_id" {
2088
+ null = false
2089
+ type = bigint
2090
+ default = 0
2091
+ unsigned = true
2092
+ comment = "Plugin ID"
2093
+ }
2094
+ column "app_id" {
2095
+ null = false
2096
+ type = bigint
2097
+ default = 0
2098
+ unsigned = true
2099
+ comment = "Application ID"
2100
+ }
2101
+ column "icon_uri" {
2102
+ null = false
2103
+ type = varchar(512)
2104
+ default = ""
2105
+ comment = "Icon URI"
2106
+ }
2107
+ column "server_url" {
2108
+ null = false
2109
+ type = varchar(512)
2110
+ default = ""
2111
+ comment = "Server URL"
2112
+ }
2113
+ column "plugin_type" {
2114
+ null = false
2115
+ type = tinyint
2116
+ default = 0
2117
+ comment = "Plugin Type, 1:http, 6:local"
2118
+ }
2119
+ column "version" {
2120
+ null = false
2121
+ type = varchar(255)
2122
+ default = ""
2123
+ comment = "Plugin Version, e.g. v1.0.0"
2124
+ }
2125
+ column "version_desc" {
2126
+ null = true
2127
+ type = text
2128
+ comment = "Plugin Version Description"
2129
+ }
2130
+ column "manifest" {
2131
+ null = true
2132
+ type = json
2133
+ comment = "Plugin Manifest"
2134
+ }
2135
+ column "openapi_doc" {
2136
+ null = true
2137
+ type = json
2138
+ comment = "OpenAPI Document, only stores the root"
2139
+ }
2140
+ column "created_at" {
2141
+ null = false
2142
+ type = bigint
2143
+ default = 0
2144
+ unsigned = true
2145
+ comment = "Create Time in Milliseconds"
2146
+ }
2147
+ column "deleted_at" {
2148
+ null = true
2149
+ type = datetime
2150
+ comment = "Delete Time"
2151
+ }
2152
+ primary_key {
2153
+ columns = [column.id]
2154
+ }
2155
+ index "uniq_idx_plugin_version" {
2156
+ unique = true
2157
+ columns = [column.plugin_id, column.version]
2158
+ }
2159
+ }
2160
+ table "prompt_resource" {
2161
+ schema = schema.opencoze
2162
+ comment = "prompt_resource"
2163
+ collate = "utf8mb4_0900_ai_ci"
2164
+ column "id" {
2165
+ null = false
2166
+ type = bigint
2167
+ unsigned = true
2168
+ comment = "主键ID"
2169
+ auto_increment = true
2170
+ }
2171
+ column "space_id" {
2172
+ null = false
2173
+ type = bigint
2174
+ comment = "空间ID"
2175
+ }
2176
+ column "name" {
2177
+ null = false
2178
+ type = varchar(255)
2179
+ comment = "名称"
2180
+ }
2181
+ column "description" {
2182
+ null = false
2183
+ type = varchar(255)
2184
+ comment = "描述"
2185
+ }
2186
+ column "prompt_text" {
2187
+ null = true
2188
+ type = mediumtext
2189
+ comment = "prompt正文"
2190
+ }
2191
+ column "status" {
2192
+ null = false
2193
+ type = int
2194
+ comment = "状态,0无效,1有效"
2195
+ }
2196
+ column "creator_id" {
2197
+ null = false
2198
+ type = bigint
2199
+ comment = "创建者ID"
2200
+ }
2201
+ column "created_at" {
2202
+ null = false
2203
+ type = bigint
2204
+ default = 0
2205
+ unsigned = true
2206
+ comment = "创建时间"
2207
+ }
2208
+ column "updated_at" {
2209
+ null = false
2210
+ type = bigint
2211
+ default = 0
2212
+ unsigned = true
2213
+ comment = "更新时间"
2214
+ }
2215
+ primary_key {
2216
+ columns = [column.id]
2217
+ }
2218
+ index "idx_creator_id" {
2219
+ columns = [column.creator_id]
2220
+ }
2221
+ }
2222
+ table "run_record" {
2223
+ schema = schema.opencoze
2224
+ comment = "执行记录表"
2225
+ column "id" {
2226
+ null = false
2227
+ type = bigint
2228
+ unsigned = true
2229
+ comment = "主键ID"
2230
+ }
2231
+ column "conversation_id" {
2232
+ null = false
2233
+ type = bigint
2234
+ default = 0
2235
+ unsigned = true
2236
+ comment = "会话 ID"
2237
+ }
2238
+ column "section_id" {
2239
+ null = false
2240
+ type = bigint
2241
+ default = 0
2242
+ unsigned = true
2243
+ comment = "section ID"
2244
+ }
2245
+ column "agent_id" {
2246
+ null = false
2247
+ type = bigint
2248
+ default = 0
2249
+ unsigned = true
2250
+ comment = "agent_id"
2251
+ }
2252
+ column "user_id" {
2253
+ null = false
2254
+ type = varchar(255)
2255
+ default = ""
2256
+ comment = "user id"
2257
+ }
2258
+ column "source" {
2259
+ null = false
2260
+ type = tinyint
2261
+ default = 0
2262
+ unsigned = true
2263
+ comment = "执行来源 0 API,"
2264
+ }
2265
+ column "status" {
2266
+ null = false
2267
+ type = varchar(255)
2268
+ default = ""
2269
+ comment = "状态,0 Unknown, 1-Created,2-InProgress,3-Completed,4-Failed,5-Expired,6-Cancelled,7-RequiresAction"
2270
+ }
2271
+ column "creator_id" {
2272
+ null = false
2273
+ type = bigint
2274
+ default = 0
2275
+ comment = "创建者标识"
2276
+ }
2277
+ column "created_at" {
2278
+ null = false
2279
+ type = bigint
2280
+ default = 0
2281
+ unsigned = true
2282
+ comment = "创建时间"
2283
+ }
2284
+ column "updated_at" {
2285
+ null = false
2286
+ type = bigint
2287
+ default = 0
2288
+ unsigned = true
2289
+ comment = "更新时间"
2290
+ }
2291
+ column "failed_at" {
2292
+ null = false
2293
+ type = bigint
2294
+ default = 0
2295
+ unsigned = true
2296
+ comment = "失败时间"
2297
+ }
2298
+ column "last_error" {
2299
+ null = true
2300
+ type = text
2301
+ comment = "error message"
2302
+ collate = "utf8mb4_general_ci"
2303
+ }
2304
+ column "completed_at" {
2305
+ null = false
2306
+ type = bigint
2307
+ default = 0
2308
+ unsigned = true
2309
+ comment = "结束时间"
2310
+ }
2311
+ column "chat_request" {
2312
+ null = true
2313
+ type = text
2314
+ comment = "保存原始请求的部分字段"
2315
+ collate = "utf8mb4_general_ci"
2316
+ }
2317
+ column "ext" {
2318
+ null = true
2319
+ type = text
2320
+ comment = "扩展字段"
2321
+ collate = "utf8mb4_general_ci"
2322
+ }
2323
+ column "usage" {
2324
+ null = true
2325
+ type = json
2326
+ comment = "usage"
2327
+ }
2328
+ primary_key {
2329
+ columns = [column.id]
2330
+ }
2331
+ index "idx_c_s" {
2332
+ columns = [column.conversation_id, column.section_id]
2333
+ }
2334
+ }
2335
+ table "shortcut_command" {
2336
+ schema = schema.opencoze
2337
+ comment = "bot快捷指令表"
2338
+ collate = "utf8mb4_general_ci"
2339
+ column "id" {
2340
+ null = false
2341
+ type = bigint
2342
+ unsigned = true
2343
+ comment = "主键ID"
2344
+ auto_increment = true
2345
+ }
2346
+ column "object_id" {
2347
+ null = false
2348
+ type = bigint
2349
+ default = 0
2350
+ unsigned = true
2351
+ comment = "实体ID,该实体可用这个指令"
2352
+ }
2353
+ column "command_id" {
2354
+ null = false
2355
+ type = bigint
2356
+ default = 0
2357
+ unsigned = true
2358
+ comment = "命令ID"
2359
+ }
2360
+ column "command_name" {
2361
+ null = false
2362
+ type = varchar(255)
2363
+ default = ""
2364
+ comment = "命令名称"
2365
+ }
2366
+ column "shortcut_command" {
2367
+ null = false
2368
+ type = varchar(255)
2369
+ default = ""
2370
+ comment = "快捷指令"
2371
+ }
2372
+ column "description" {
2373
+ null = false
2374
+ type = varchar(2000)
2375
+ default = ""
2376
+ comment = "命令描述"
2377
+ }
2378
+ column "send_type" {
2379
+ null = false
2380
+ type = tinyint
2381
+ default = 0
2382
+ unsigned = true
2383
+ comment = "发送类型 0:query 1:panel"
2384
+ }
2385
+ column "tool_type" {
2386
+ null = false
2387
+ type = tinyint
2388
+ default = 0
2389
+ unsigned = true
2390
+ comment = "使用工具的type 1:workFlow 2:插件"
2391
+ }
2392
+ column "work_flow_id" {
2393
+ null = false
2394
+ type = bigint
2395
+ default = 0
2396
+ unsigned = true
2397
+ comment = "使用workFlow的id"
2398
+ }
2399
+ column "plugin_id" {
2400
+ null = false
2401
+ type = bigint
2402
+ default = 0
2403
+ unsigned = true
2404
+ comment = "使用插件的id"
2405
+ }
2406
+ column "plugin_tool_name" {
2407
+ null = false
2408
+ type = varchar(255)
2409
+ default = ""
2410
+ comment = "使用插件的api_name"
2411
+ }
2412
+ column "template_query" {
2413
+ null = true
2414
+ type = text
2415
+ comment = "query模板"
2416
+ }
2417
+ column "components" {
2418
+ null = true
2419
+ type = json
2420
+ comment = "panel参数"
2421
+ }
2422
+ column "card_schema" {
2423
+ null = true
2424
+ type = text
2425
+ comment = "卡片schema"
2426
+ }
2427
+ column "tool_info" {
2428
+ null = true
2429
+ type = json
2430
+ comment = "工具信息 包含name+变量列表"
2431
+ }
2432
+ column "status" {
2433
+ null = false
2434
+ type = tinyint
2435
+ default = 0
2436
+ unsigned = true
2437
+ comment = "状态,0无效,1有效"
2438
+ }
2439
+ column "creator_id" {
2440
+ null = true
2441
+ type = bigint
2442
+ default = 0
2443
+ unsigned = true
2444
+ comment = "创建者ID"
2445
+ }
2446
+ column "is_online" {
2447
+ null = false
2448
+ type = tinyint
2449
+ default = 0
2450
+ unsigned = true
2451
+ comment = "是否为线上信息 0草稿 1线上"
2452
+ }
2453
+ column "created_at" {
2454
+ null = false
2455
+ type = bigint
2456
+ default = 0
2457
+ comment = "创建时间"
2458
+ }
2459
+ column "updated_at" {
2460
+ null = false
2461
+ type = bigint
2462
+ default = 0
2463
+ comment = "更新时间"
2464
+ }
2465
+ column "agent_id" {
2466
+ null = false
2467
+ type = bigint
2468
+ default = 0
2469
+ unsigned = true
2470
+ comment = "multi的指令时,该指令由哪个节点执行"
2471
+ }
2472
+ column "shortcut_icon" {
2473
+ null = true
2474
+ type = json
2475
+ comment = "快捷指令图标"
2476
+ }
2477
+ column "plugin_tool_id" {
2478
+ null = false
2479
+ type = bigint
2480
+ default = 0
2481
+ comment = "tool_id"
2482
+ }
2483
+ primary_key {
2484
+ columns = [column.id]
2485
+ }
2486
+ index "uniq_object_command_id_type" {
2487
+ unique = true
2488
+ columns = [column.object_id, column.command_id, column.is_online]
2489
+ }
2490
+ }
2491
+ table "single_agent_draft" {
2492
+ schema = schema.opencoze
2493
+ comment = "Single Agent Draft Copy Table"
2494
+ column "id" {
2495
+ null = false
2496
+ type = bigint
2497
+ unsigned = true
2498
+ comment = "Primary Key ID"
2499
+ auto_increment = true
2500
+ }
2501
+ column "agent_id" {
2502
+ null = false
2503
+ type = bigint
2504
+ default = 0
2505
+ comment = "Agent ID"
2506
+ }
2507
+ column "creator_id" {
2508
+ null = false
2509
+ type = bigint
2510
+ default = 0
2511
+ comment = "Creator ID"
2512
+ }
2513
+ column "space_id" {
2514
+ null = false
2515
+ type = bigint
2516
+ default = 0
2517
+ comment = "Space ID"
2518
+ }
2519
+ column "name" {
2520
+ null = false
2521
+ type = varchar(255)
2522
+ default = ""
2523
+ comment = "Agent Name"
2524
+ }
2525
+ column "description" {
2526
+ null = false
2527
+ type = text
2528
+ comment = "Agent Description"
2529
+ }
2530
+ column "icon_uri" {
2531
+ null = false
2532
+ type = varchar(255)
2533
+ default = ""
2534
+ comment = "Icon URI"
2535
+ }
2536
+ column "created_at" {
2537
+ null = false
2538
+ type = bigint
2539
+ default = 0
2540
+ unsigned = true
2541
+ comment = "Create Time in Milliseconds"
2542
+ }
2543
+ column "updated_at" {
2544
+ null = false
2545
+ type = bigint
2546
+ default = 0
2547
+ unsigned = true
2548
+ comment = "Update Time in Milliseconds"
2549
+ }
2550
+ column "deleted_at" {
2551
+ null = true
2552
+ type = datetime(3)
2553
+ comment = "delete time in millisecond"
2554
+ }
2555
+ column "variables_meta_id" {
2556
+ null = true
2557
+ type = bigint
2558
+ comment = "variables meta 表 ID"
2559
+ }
2560
+ column "model_info" {
2561
+ null = true
2562
+ type = json
2563
+ comment = "Model Configuration Information"
2564
+ }
2565
+ column "onboarding_info" {
2566
+ null = true
2567
+ type = json
2568
+ comment = "Onboarding Information"
2569
+ }
2570
+ column "prompt" {
2571
+ null = true
2572
+ type = json
2573
+ comment = "Agent Prompt Configuration"
2574
+ }
2575
+ column "plugin" {
2576
+ null = true
2577
+ type = json
2578
+ comment = "Agent Plugin Base Configuration"
2579
+ }
2580
+ column "knowledge" {
2581
+ null = true
2582
+ type = json
2583
+ comment = "Agent Knowledge Base Configuration"
2584
+ }
2585
+ column "workflow" {
2586
+ null = true
2587
+ type = json
2588
+ comment = "Agent Workflow Configuration"
2589
+ }
2590
+ column "suggest_reply" {
2591
+ null = true
2592
+ type = json
2593
+ comment = "Suggested Replies"
2594
+ }
2595
+ column "jump_config" {
2596
+ null = true
2597
+ type = json
2598
+ comment = "Jump Configuration"
2599
+ }
2600
+ column "background_image_info_list" {
2601
+ null = true
2602
+ type = json
2603
+ comment = "Background image"
2604
+ }
2605
+ column "database_config" {
2606
+ null = true
2607
+ type = json
2608
+ comment = "Agent Database Base Configuration"
2609
+ }
2610
+ column "shortcut_command" {
2611
+ null = true
2612
+ type = json
2613
+ comment = "shortcut command"
2614
+ }
2615
+ primary_key {
2616
+ columns = [column.id]
2617
+ }
2618
+ index "idx_creator_id" {
2619
+ columns = [column.creator_id]
2620
+ }
2621
+ index "uniq_agent_id" {
2622
+ unique = true
2623
+ columns = [column.agent_id]
2624
+ }
2625
+ }
2626
+ table "single_agent_publish" {
2627
+ schema = schema.opencoze
2628
+ comment = "bot 渠道和发布版本流水表"
2629
+ column "id" {
2630
+ null = false
2631
+ type = bigint
2632
+ unsigned = true
2633
+ comment = "主键id"
2634
+ auto_increment = true
2635
+ }
2636
+ column "agent_id" {
2637
+ null = false
2638
+ type = bigint
2639
+ default = 0
2640
+ unsigned = true
2641
+ comment = "agent_id"
2642
+ }
2643
+ column "publish_id" {
2644
+ null = false
2645
+ type = varchar(50)
2646
+ default = ""
2647
+ comment = "发布 id"
2648
+ collate = "utf8mb4_general_ci"
2649
+ }
2650
+ column "connector_ids" {
2651
+ null = true
2652
+ type = json
2653
+ comment = "发布的 connector_ids"
2654
+ }
2655
+ column "version" {
2656
+ null = false
2657
+ type = varchar(255)
2658
+ default = ""
2659
+ comment = "Agent Version"
2660
+ }
2661
+ column "publish_info" {
2662
+ null = true
2663
+ type = text
2664
+ comment = "发布信息"
2665
+ collate = "utf8mb4_general_ci"
2666
+ }
2667
+ column "publish_time" {
2668
+ null = false
2669
+ type = bigint
2670
+ default = 0
2671
+ unsigned = true
2672
+ comment = "发布时间"
2673
+ }
2674
+ column "created_at" {
2675
+ null = false
2676
+ type = bigint
2677
+ default = 0
2678
+ unsigned = true
2679
+ comment = "Create Time in Milliseconds"
2680
+ }
2681
+ column "updated_at" {
2682
+ null = false
2683
+ type = bigint
2684
+ default = 0
2685
+ unsigned = true
2686
+ comment = "Update Time in Milliseconds"
2687
+ }
2688
+ column "creator_id" {
2689
+ null = false
2690
+ type = bigint
2691
+ default = 0
2692
+ unsigned = true
2693
+ comment = "发布人 user_id"
2694
+ }
2695
+ column "status" {
2696
+ null = false
2697
+ type = tinyint
2698
+ default = 0
2699
+ comment = "状态 0:使用中 1:删除 3:禁用"
2700
+ }
2701
+ column "extra" {
2702
+ null = true
2703
+ type = json
2704
+ comment = "扩展字段"
2705
+ }
2706
+ primary_key {
2707
+ columns = [column.id]
2708
+ }
2709
+ index "idx_agent_id_version" {
2710
+ columns = [column.agent_id, column.version]
2711
+ }
2712
+ index "idx_creator_id" {
2713
+ columns = [column.creator_id]
2714
+ }
2715
+ index "idx_publish_id" {
2716
+ columns = [column.publish_id]
2717
+ }
2718
+ }
2719
+ table "single_agent_version" {
2720
+ schema = schema.opencoze
2721
+ comment = "Single Agent Version Copy Table"
2722
+ column "id" {
2723
+ null = false
2724
+ type = bigint
2725
+ unsigned = true
2726
+ comment = "Primary Key ID"
2727
+ auto_increment = true
2728
+ }
2729
+ column "agent_id" {
2730
+ null = false
2731
+ type = bigint
2732
+ default = 0
2733
+ comment = "Agent ID"
2734
+ }
2735
+ column "creator_id" {
2736
+ null = false
2737
+ type = bigint
2738
+ default = 0
2739
+ comment = "Creator ID"
2740
+ }
2741
+ column "space_id" {
2742
+ null = false
2743
+ type = bigint
2744
+ default = 0
2745
+ comment = "Space ID"
2746
+ }
2747
+ column "name" {
2748
+ null = false
2749
+ type = varchar(255)
2750
+ default = ""
2751
+ comment = "Agent Name"
2752
+ }
2753
+ column "description" {
2754
+ null = false
2755
+ type = text
2756
+ comment = "Agent Description"
2757
+ }
2758
+ column "icon_uri" {
2759
+ null = false
2760
+ type = varchar(255)
2761
+ default = ""
2762
+ comment = "Icon URI"
2763
+ }
2764
+ column "created_at" {
2765
+ null = false
2766
+ type = bigint
2767
+ default = 0
2768
+ unsigned = true
2769
+ comment = "Create Time in Milliseconds"
2770
+ }
2771
+ column "updated_at" {
2772
+ null = false
2773
+ type = bigint
2774
+ default = 0
2775
+ unsigned = true
2776
+ comment = "Update Time in Milliseconds"
2777
+ }
2778
+ column "deleted_at" {
2779
+ null = true
2780
+ type = datetime(3)
2781
+ comment = "delete time in millisecond"
2782
+ }
2783
+ column "variables_meta_id" {
2784
+ null = true
2785
+ type = bigint
2786
+ comment = "variables meta 表 ID"
2787
+ }
2788
+ column "model_info" {
2789
+ null = true
2790
+ type = json
2791
+ comment = "Model Configuration Information"
2792
+ }
2793
+ column "onboarding_info" {
2794
+ null = true
2795
+ type = json
2796
+ comment = "Onboarding Information"
2797
+ }
2798
+ column "prompt" {
2799
+ null = true
2800
+ type = json
2801
+ comment = "Agent Prompt Configuration"
2802
+ }
2803
+ column "plugin" {
2804
+ null = true
2805
+ type = json
2806
+ comment = "Agent Plugin Base Configuration"
2807
+ }
2808
+ column "knowledge" {
2809
+ null = true
2810
+ type = json
2811
+ comment = "Agent Knowledge Base Configuration"
2812
+ }
2813
+ column "workflow" {
2814
+ null = true
2815
+ type = json
2816
+ comment = "Agent Workflow Configuration"
2817
+ }
2818
+ column "suggest_reply" {
2819
+ null = true
2820
+ type = json
2821
+ comment = "Suggested Replies"
2822
+ }
2823
+ column "jump_config" {
2824
+ null = true
2825
+ type = json
2826
+ comment = "Jump Configuration"
2827
+ }
2828
+ column "connector_id" {
2829
+ null = false
2830
+ type = bigint
2831
+ unsigned = true
2832
+ comment = "Connector ID"
2833
+ }
2834
+ column "version" {
2835
+ null = false
2836
+ type = varchar(255)
2837
+ default = ""
2838
+ comment = "Agent Version"
2839
+ }
2840
+ column "background_image_info_list" {
2841
+ null = true
2842
+ type = json
2843
+ comment = "Background image"
2844
+ }
2845
+ column "database_config" {
2846
+ null = true
2847
+ type = json
2848
+ comment = "Agent Database Base Configuration"
2849
+ }
2850
+ column "shortcut_command" {
2851
+ null = true
2852
+ type = json
2853
+ comment = "shortcut command"
2854
+ }
2855
+ primary_key {
2856
+ columns = [column.id]
2857
+ }
2858
+ index "idx_creator_id" {
2859
+ columns = [column.creator_id]
2860
+ }
2861
+ index "uniq_agent_id_and_version_connector_id" {
2862
+ unique = true
2863
+ columns = [column.agent_id, column.version, column.connector_id]
2864
+ }
2865
+ }
2866
+ table "space" {
2867
+ schema = schema.opencoze
2868
+ comment = "Space Table"
2869
+ column "id" {
2870
+ null = false
2871
+ type = bigint
2872
+ unsigned = true
2873
+ comment = "Primary Key ID, Space ID"
2874
+ auto_increment = true
2875
+ }
2876
+ column "owner_id" {
2877
+ null = false
2878
+ type = bigint
2879
+ default = 0
2880
+ unsigned = true
2881
+ comment = "Owner ID"
2882
+ }
2883
+ column "name" {
2884
+ null = false
2885
+ type = varchar(200)
2886
+ default = ""
2887
+ comment = "Space Name"
2888
+ }
2889
+ column "description" {
2890
+ null = false
2891
+ type = varchar(2000)
2892
+ default = ""
2893
+ comment = "Space Description"
2894
+ }
2895
+ column "icon_uri" {
2896
+ null = false
2897
+ type = varchar(200)
2898
+ default = ""
2899
+ comment = "Icon URI"
2900
+ }
2901
+ column "creator_id" {
2902
+ null = false
2903
+ type = bigint
2904
+ default = 0
2905
+ unsigned = true
2906
+ comment = "Creator ID"
2907
+ }
2908
+ column "created_at" {
2909
+ null = false
2910
+ type = bigint
2911
+ default = 0
2912
+ unsigned = true
2913
+ comment = "Creation Time (Milliseconds)"
2914
+ }
2915
+ column "updated_at" {
2916
+ null = false
2917
+ type = bigint
2918
+ default = 0
2919
+ unsigned = true
2920
+ comment = "Update Time (Milliseconds)"
2921
+ }
2922
+ column "deleted_at" {
2923
+ null = true
2924
+ type = bigint
2925
+ unsigned = true
2926
+ comment = "Deletion Time (Milliseconds)"
2927
+ }
2928
+ primary_key {
2929
+ columns = [column.id]
2930
+ }
2931
+ index "idx_creator_id" {
2932
+ columns = [column.creator_id]
2933
+ }
2934
+ index "idx_owner_id" {
2935
+ columns = [column.owner_id]
2936
+ }
2937
+ }
2938
+ table "space_user" {
2939
+ schema = schema.opencoze
2940
+ comment = "Space Member Table"
2941
+ column "id" {
2942
+ null = false
2943
+ type = bigint
2944
+ unsigned = true
2945
+ comment = "Primary Key ID, Auto Increment"
2946
+ auto_increment = true
2947
+ }
2948
+ column "space_id" {
2949
+ null = false
2950
+ type = bigint
2951
+ default = 0
2952
+ unsigned = true
2953
+ comment = "Space ID"
2954
+ }
2955
+ column "user_id" {
2956
+ null = false
2957
+ type = bigint
2958
+ default = 0
2959
+ unsigned = true
2960
+ comment = "User ID"
2961
+ }
2962
+ column "role_type" {
2963
+ null = false
2964
+ type = int
2965
+ default = 3
2966
+ comment = "Role Type: 1.owner 2.admin 3.member"
2967
+ }
2968
+ column "created_at" {
2969
+ null = false
2970
+ type = bigint
2971
+ default = 0
2972
+ unsigned = true
2973
+ comment = "Creation Time (Milliseconds)"
2974
+ }
2975
+ column "updated_at" {
2976
+ null = false
2977
+ type = bigint
2978
+ default = 0
2979
+ unsigned = true
2980
+ comment = "Update Time (Milliseconds)"
2981
+ }
2982
+ primary_key {
2983
+ columns = [column.id]
2984
+ }
2985
+ index "idx_user_id" {
2986
+ columns = [column.user_id]
2987
+ }
2988
+ index "uniq_space_user" {
2989
+ unique = true
2990
+ columns = [column.space_id, column.user_id]
2991
+ }
2992
+ }
2993
+ table "template" {
2994
+ schema = schema.opencoze
2995
+ comment = "Template Info Table"
2996
+ column "id" {
2997
+ null = false
2998
+ type = bigint
2999
+ unsigned = true
3000
+ comment = "Primary Key ID"
3001
+ auto_increment = true
3002
+ }
3003
+ column "agent_id" {
3004
+ null = false
3005
+ type = bigint
3006
+ default = 0
3007
+ comment = "Agent ID"
3008
+ }
3009
+ column "workflow_id" {
3010
+ null = false
3011
+ type = bigint
3012
+ default = 0
3013
+ comment = "Workflow ID"
3014
+ }
3015
+ column "space_id" {
3016
+ null = false
3017
+ type = bigint
3018
+ default = 0
3019
+ comment = "Space ID"
3020
+ }
3021
+ column "created_at" {
3022
+ null = false
3023
+ type = bigint
3024
+ default = 0
3025
+ unsigned = true
3026
+ comment = "Create Time in Milliseconds"
3027
+ }
3028
+ column "heat" {
3029
+ null = false
3030
+ type = bigint
3031
+ default = 0
3032
+ unsigned = true
3033
+ comment = "Heat"
3034
+ }
3035
+ column "product_entity_type" {
3036
+ null = false
3037
+ type = bigint
3038
+ default = 0
3039
+ unsigned = true
3040
+ comment = "Product Entity Type"
3041
+ }
3042
+ column "meta_info" {
3043
+ null = true
3044
+ type = json
3045
+ comment = "Meta Info"
3046
+ }
3047
+ column "agent_extra" {
3048
+ null = true
3049
+ type = json
3050
+ comment = "Agent Extra Info"
3051
+ }
3052
+ column "workflow_extra" {
3053
+ null = true
3054
+ type = json
3055
+ comment = "Workflow Extra Info"
3056
+ }
3057
+ column "project_extra" {
3058
+ null = true
3059
+ type = json
3060
+ comment = "Project Extra Info"
3061
+ }
3062
+ primary_key {
3063
+ columns = [column.id]
3064
+ }
3065
+ index "uniq_agent_id" {
3066
+ unique = true
3067
+ columns = [column.agent_id]
3068
+ }
3069
+ }
3070
+ table "tool" {
3071
+ schema = schema.opencoze
3072
+ comment = "Latest Tool"
3073
+ column "id" {
3074
+ null = false
3075
+ type = bigint
3076
+ default = 0
3077
+ unsigned = true
3078
+ comment = "Tool ID"
3079
+ }
3080
+ column "plugin_id" {
3081
+ null = false
3082
+ type = bigint
3083
+ default = 0
3084
+ unsigned = true
3085
+ comment = "Plugin ID"
3086
+ }
3087
+ column "created_at" {
3088
+ null = false
3089
+ type = bigint
3090
+ default = 0
3091
+ unsigned = true
3092
+ comment = "Create Time in Milliseconds"
3093
+ }
3094
+ column "updated_at" {
3095
+ null = false
3096
+ type = bigint
3097
+ default = 0
3098
+ unsigned = true
3099
+ comment = "Update Time in Milliseconds"
3100
+ }
3101
+ column "version" {
3102
+ null = false
3103
+ type = varchar(255)
3104
+ default = ""
3105
+ comment = "Tool Version, e.g. v1.0.0"
3106
+ }
3107
+ column "sub_url" {
3108
+ null = false
3109
+ type = varchar(512)
3110
+ default = ""
3111
+ comment = "Sub URL Path"
3112
+ }
3113
+ column "method" {
3114
+ null = false
3115
+ type = varchar(64)
3116
+ default = ""
3117
+ comment = "HTTP Request Method"
3118
+ }
3119
+ column "operation" {
3120
+ null = true
3121
+ type = json
3122
+ comment = "Tool Openapi Operation Schema"
3123
+ }
3124
+ column "activated_status" {
3125
+ null = false
3126
+ type = tinyint
3127
+ default = 0
3128
+ unsigned = true
3129
+ comment = "0:activated; 1:deactivated"
3130
+ }
3131
+ primary_key {
3132
+ columns = [column.id]
3133
+ }
3134
+ index "idx_plugin_activated_status" {
3135
+ columns = [column.plugin_id, column.activated_status]
3136
+ }
3137
+ index "uniq_idx_plugin_sub_url_method" {
3138
+ unique = true
3139
+ columns = [column.plugin_id, column.sub_url, column.method]
3140
+ }
3141
+ }
3142
+ table "tool_draft" {
3143
+ schema = schema.opencoze
3144
+ comment = "Draft Tool"
3145
+ column "id" {
3146
+ null = false
3147
+ type = bigint
3148
+ default = 0
3149
+ unsigned = true
3150
+ comment = "Tool ID"
3151
+ }
3152
+ column "plugin_id" {
3153
+ null = false
3154
+ type = bigint
3155
+ default = 0
3156
+ unsigned = true
3157
+ comment = "Plugin ID"
3158
+ }
3159
+ column "created_at" {
3160
+ null = false
3161
+ type = bigint
3162
+ default = 0
3163
+ unsigned = true
3164
+ comment = "Create Time in Milliseconds"
3165
+ }
3166
+ column "updated_at" {
3167
+ null = false
3168
+ type = bigint
3169
+ default = 0
3170
+ unsigned = true
3171
+ comment = "Update Time in Milliseconds"
3172
+ }
3173
+ column "sub_url" {
3174
+ null = false
3175
+ type = varchar(512)
3176
+ default = ""
3177
+ comment = "Sub URL Path"
3178
+ }
3179
+ column "method" {
3180
+ null = false
3181
+ type = varchar(64)
3182
+ default = ""
3183
+ comment = "HTTP Request Method"
3184
+ }
3185
+ column "operation" {
3186
+ null = true
3187
+ type = json
3188
+ comment = "Tool Openapi Operation Schema"
3189
+ }
3190
+ column "debug_status" {
3191
+ null = false
3192
+ type = tinyint
3193
+ default = 0
3194
+ unsigned = true
3195
+ comment = "0:not pass; 1:pass"
3196
+ }
3197
+ column "activated_status" {
3198
+ null = false
3199
+ type = tinyint
3200
+ default = 0
3201
+ unsigned = true
3202
+ comment = "0:activated; 1:deactivated"
3203
+ }
3204
+ primary_key {
3205
+ columns = [column.id]
3206
+ }
3207
+ index "idx_plugin_created_at_id" {
3208
+ columns = [column.plugin_id, column.created_at, column.id]
3209
+ }
3210
+ index "uniq_idx_plugin_sub_url_method" {
3211
+ unique = true
3212
+ columns = [column.plugin_id, column.sub_url, column.method]
3213
+ }
3214
+ }
3215
+ table "tool_version" {
3216
+ schema = schema.opencoze
3217
+ comment = "Tool Version"
3218
+ column "id" {
3219
+ null = false
3220
+ type = bigint
3221
+ default = 0
3222
+ unsigned = true
3223
+ comment = "Primary Key ID"
3224
+ }
3225
+ column "tool_id" {
3226
+ null = false
3227
+ type = bigint
3228
+ default = 0
3229
+ unsigned = true
3230
+ comment = "Tool ID"
3231
+ }
3232
+ column "plugin_id" {
3233
+ null = false
3234
+ type = bigint
3235
+ default = 0
3236
+ unsigned = true
3237
+ comment = "Plugin ID"
3238
+ }
3239
+ column "version" {
3240
+ null = false
3241
+ type = varchar(255)
3242
+ default = ""
3243
+ comment = "Tool Version, e.g. v1.0.0"
3244
+ }
3245
+ column "sub_url" {
3246
+ null = false
3247
+ type = varchar(512)
3248
+ default = ""
3249
+ comment = "Sub URL Path"
3250
+ }
3251
+ column "method" {
3252
+ null = false
3253
+ type = varchar(64)
3254
+ default = ""
3255
+ comment = "HTTP Request Method"
3256
+ }
3257
+ column "operation" {
3258
+ null = true
3259
+ type = json
3260
+ comment = "Tool Openapi Operation Schema"
3261
+ }
3262
+ column "created_at" {
3263
+ null = false
3264
+ type = bigint
3265
+ default = 0
3266
+ unsigned = true
3267
+ comment = "Create Time in Milliseconds"
3268
+ }
3269
+ column "deleted_at" {
3270
+ null = true
3271
+ type = datetime
3272
+ comment = "Delete Time"
3273
+ }
3274
+ primary_key {
3275
+ columns = [column.id]
3276
+ }
3277
+ index "uniq_idx_tool_version" {
3278
+ unique = true
3279
+ columns = [column.tool_id, column.version]
3280
+ }
3281
+ }
3282
+ table "user" {
3283
+ schema = schema.opencoze
3284
+ comment = "User Table"
3285
+ column "id" {
3286
+ null = false
3287
+ type = bigint
3288
+ unsigned = true
3289
+ comment = "Primary Key ID"
3290
+ auto_increment = true
3291
+ }
3292
+ column "name" {
3293
+ null = false
3294
+ type = varchar(128)
3295
+ default = ""
3296
+ comment = "User Nickname"
3297
+ }
3298
+ column "unique_name" {
3299
+ null = false
3300
+ type = varchar(128)
3301
+ default = ""
3302
+ comment = "User Unique Name"
3303
+ }
3304
+ column "email" {
3305
+ null = false
3306
+ type = varchar(128)
3307
+ default = ""
3308
+ comment = "Email"
3309
+ }
3310
+ column "password" {
3311
+ null = false
3312
+ type = varchar(128)
3313
+ default = ""
3314
+ comment = "Password (Encrypted)"
3315
+ }
3316
+ column "description" {
3317
+ null = false
3318
+ type = varchar(512)
3319
+ default = ""
3320
+ comment = "User Description"
3321
+ }
3322
+ column "icon_uri" {
3323
+ null = false
3324
+ type = varchar(512)
3325
+ default = ""
3326
+ comment = "Avatar URI"
3327
+ }
3328
+ column "user_verified" {
3329
+ null = false
3330
+ type = bool
3331
+ default = 0
3332
+ comment = "User Verification Status"
3333
+ }
3334
+ column "locale" {
3335
+ null = false
3336
+ type = varchar(128)
3337
+ default = ""
3338
+ comment = "Locale"
3339
+ }
3340
+ column "session_key" {
3341
+ null = false
3342
+ type = varchar(256)
3343
+ default = ""
3344
+ comment = "Session Key"
3345
+ }
3346
+ column "created_at" {
3347
+ null = false
3348
+ type = bigint
3349
+ default = 0
3350
+ unsigned = true
3351
+ comment = "Creation Time (Milliseconds)"
3352
+ }
3353
+ column "updated_at" {
3354
+ null = false
3355
+ type = bigint
3356
+ default = 0
3357
+ unsigned = true
3358
+ comment = "Update Time (Milliseconds)"
3359
+ }
3360
+ column "deleted_at" {
3361
+ null = true
3362
+ type = bigint
3363
+ unsigned = true
3364
+ comment = "Deletion Time (Milliseconds)"
3365
+ }
3366
+ primary_key {
3367
+ columns = [column.id]
3368
+ }
3369
+ index "idx_session_key" {
3370
+ columns = [column.session_key]
3371
+ }
3372
+ index "uniq_email" {
3373
+ unique = true
3374
+ columns = [column.email]
3375
+ }
3376
+ index "uniq_unique_name" {
3377
+ unique = true
3378
+ columns = [column.unique_name]
3379
+ }
3380
+ }
3381
+ table "variable_instance" {
3382
+ schema = schema.opencoze
3383
+ comment = "KV Memory"
3384
+ collate = "utf8mb4_0900_ai_ci"
3385
+ column "id" {
3386
+ null = false
3387
+ type = bigint
3388
+ default = 0
3389
+ unsigned = true
3390
+ comment = "主键ID"
3391
+ }
3392
+ column "biz_type" {
3393
+ null = false
3394
+ type = tinyint
3395
+ unsigned = true
3396
+ comment = "1 for agent,2 for app"
3397
+ }
3398
+ column "biz_id" {
3399
+ null = false
3400
+ type = varchar(128)
3401
+ default = ""
3402
+ comment = "1 for agent_id,2 for app_id"
3403
+ }
3404
+ column "version" {
3405
+ null = false
3406
+ type = varchar(255)
3407
+ comment = "agent or project 版本,为空代表草稿态"
3408
+ }
3409
+ column "keyword" {
3410
+ null = false
3411
+ type = varchar(255)
3412
+ comment = "记忆的KEY"
3413
+ }
3414
+ column "type" {
3415
+ null = false
3416
+ type = tinyint
3417
+ comment = "记忆类型 1 KV 2 list"
3418
+ }
3419
+ column "content" {
3420
+ null = true
3421
+ type = text
3422
+ comment = "记忆内容"
3423
+ }
3424
+ column "connector_uid" {
3425
+ null = false
3426
+ type = varchar(255)
3427
+ comment = "二方用户ID"
3428
+ }
3429
+ column "connector_id" {
3430
+ null = false
3431
+ type = bigint
3432
+ comment = "二方id, e.g. coze = 10000010"
3433
+ }
3434
+ column "created_at" {
3435
+ null = false
3436
+ type = bigint
3437
+ default = 0
3438
+ unsigned = true
3439
+ comment = "创建时间"
3440
+ }
3441
+ column "updated_at" {
3442
+ null = false
3443
+ type = bigint
3444
+ default = 0
3445
+ unsigned = true
3446
+ comment = "更新时间"
3447
+ }
3448
+ primary_key {
3449
+ columns = [column.id]
3450
+ }
3451
+ index "idx_connector_key" {
3452
+ columns = [column.biz_id, column.biz_type, column.version, column.connector_uid, column.connector_id]
3453
+ }
3454
+ }
3455
+ table "variables_meta" {
3456
+ schema = schema.opencoze
3457
+ comment = "KV Memory meta"
3458
+ collate = "utf8mb4_0900_ai_ci"
3459
+ column "id" {
3460
+ null = false
3461
+ type = bigint
3462
+ default = 0
3463
+ unsigned = true
3464
+ comment = "主键ID"
3465
+ }
3466
+ column "creator_id" {
3467
+ null = false
3468
+ type = bigint
3469
+ unsigned = true
3470
+ comment = "创建者ID"
3471
+ }
3472
+ column "biz_type" {
3473
+ null = false
3474
+ type = tinyint
3475
+ unsigned = true
3476
+ comment = "1 for agent,2 for app"
3477
+ }
3478
+ column "biz_id" {
3479
+ null = false
3480
+ type = varchar(128)
3481
+ default = ""
3482
+ comment = "1 for agent_id,2 for app_id"
3483
+ }
3484
+ column "variable_list" {
3485
+ null = true
3486
+ type = json
3487
+ comment = "变量配置的json数据"
3488
+ }
3489
+ column "created_at" {
3490
+ null = false
3491
+ type = bigint
3492
+ default = 0
3493
+ unsigned = true
3494
+ comment = "create time"
3495
+ }
3496
+ column "updated_at" {
3497
+ null = false
3498
+ type = bigint
3499
+ default = 0
3500
+ unsigned = true
3501
+ comment = "update time"
3502
+ }
3503
+ column "version" {
3504
+ null = false
3505
+ type = varchar(255)
3506
+ comment = "project版本,为空代表草稿态"
3507
+ }
3508
+ primary_key {
3509
+ columns = [column.id]
3510
+ }
3511
+ index "idx_user_key" {
3512
+ columns = [column.creator_id]
3513
+ }
3514
+ index "uniq_project_key" {
3515
+ unique = true
3516
+ columns = [column.biz_id, column.biz_type, column.version]
3517
+ }
3518
+ }
3519
+ table "workflow_draft" {
3520
+ schema = schema.opencoze
3521
+ comment = "workflow 画布草稿表,用于记录workflow最新的草稿画布信息"
3522
+ column "id" {
3523
+ null = false
3524
+ type = bigint
3525
+ unsigned = true
3526
+ comment = "workflow ID"
3527
+ }
3528
+ column "canvas" {
3529
+ null = false
3530
+ type = mediumtext
3531
+ comment = "前端 schema"
3532
+ }
3533
+ column "input_params" {
3534
+ null = true
3535
+ type = mediumtext
3536
+ comment = " 入参 schema"
3537
+ }
3538
+ column "output_params" {
3539
+ null = true
3540
+ type = mediumtext
3541
+ comment = " 出参 schema"
3542
+ }
3543
+ column "test_run_success" {
3544
+ null = false
3545
+ type = bool
3546
+ default = 0
3547
+ comment = "0 未运行, 1 运行成功"
3548
+ }
3549
+ column "modified" {
3550
+ null = false
3551
+ type = bool
3552
+ default = 0
3553
+ comment = "0 未被修改, 1 已被修改"
3554
+ }
3555
+ column "updated_at" {
3556
+ null = true
3557
+ type = bigint
3558
+ unsigned = true
3559
+ }
3560
+ column "deleted_at" {
3561
+ null = true
3562
+ type = datetime(3)
3563
+ }
3564
+ column "commit_id" {
3565
+ null = false
3566
+ type = varchar(255)
3567
+ comment = "used to uniquely identify a draft snapshot"
3568
+ }
3569
+ primary_key {
3570
+ columns = [column.id]
3571
+ }
3572
+ index "idx_updated_at" {
3573
+ on {
3574
+ desc = true
3575
+ column = column.updated_at
3576
+ }
3577
+ }
3578
+ }
3579
+ table "workflow_execution" {
3580
+ schema = schema.opencoze
3581
+ comment = "workflow 执行记录表,用于记录每次workflow执行时的状态"
3582
+ column "id" {
3583
+ null = false
3584
+ type = bigint
3585
+ unsigned = true
3586
+ comment = "execute id"
3587
+ }
3588
+ column "workflow_id" {
3589
+ null = false
3590
+ type = bigint
3591
+ unsigned = true
3592
+ comment = "workflow_id"
3593
+ }
3594
+ column "version" {
3595
+ null = true
3596
+ type = varchar(50)
3597
+ comment = "workflow version. empty if is draft"
3598
+ }
3599
+ column "space_id" {
3600
+ null = false
3601
+ type = bigint
3602
+ unsigned = true
3603
+ comment = "the space id the workflow belongs to"
3604
+ }
3605
+ column "mode" {
3606
+ null = false
3607
+ type = tinyint
3608
+ unsigned = true
3609
+ comment = "the execution mode: 1. debug run 2. release run 3. node debug"
3610
+ }
3611
+ column "operator_id" {
3612
+ null = false
3613
+ type = bigint
3614
+ unsigned = true
3615
+ comment = "the user id that runs this workflow"
3616
+ }
3617
+ column "connector_id" {
3618
+ null = true
3619
+ type = bigint
3620
+ unsigned = true
3621
+ comment = "the connector on which this execution happened"
3622
+ }
3623
+ column "connector_uid" {
3624
+ null = true
3625
+ type = varchar(64)
3626
+ comment = "user id of the connector"
3627
+ }
3628
+ column "created_at" {
3629
+ null = false
3630
+ type = bigint
3631
+ unsigned = true
3632
+ comment = "create time in millisecond"
3633
+ }
3634
+ column "log_id" {
3635
+ null = true
3636
+ type = varchar(128)
3637
+ comment = "log id"
3638
+ }
3639
+ column "status" {
3640
+ null = true
3641
+ type = tinyint
3642
+ unsigned = true
3643
+ comment = "1=running 2=success 3=fail 4=interrupted"
3644
+ }
3645
+ column "duration" {
3646
+ null = true
3647
+ type = bigint
3648
+ unsigned = true
3649
+ comment = "execution duration in millisecond"
3650
+ }
3651
+ column "input" {
3652
+ null = true
3653
+ type = mediumtext
3654
+ comment = "actual input of this execution"
3655
+ }
3656
+ column "output" {
3657
+ null = true
3658
+ type = mediumtext
3659
+ comment = "the actual output of this execution"
3660
+ }
3661
+ column "error_code" {
3662
+ null = true
3663
+ type = varchar(255)
3664
+ comment = "error code if any"
3665
+ }
3666
+ column "fail_reason" {
3667
+ null = true
3668
+ type = mediumtext
3669
+ comment = "the reason for failure"
3670
+ }
3671
+ column "input_tokens" {
3672
+ null = true
3673
+ type = bigint
3674
+ unsigned = true
3675
+ comment = "number of input tokens"
3676
+ }
3677
+ column "output_tokens" {
3678
+ null = true
3679
+ type = bigint
3680
+ unsigned = true
3681
+ comment = "number of output tokens"
3682
+ }
3683
+ column "updated_at" {
3684
+ null = true
3685
+ type = bigint
3686
+ unsigned = true
3687
+ comment = "update time in millisecond"
3688
+ }
3689
+ column "root_execution_id" {
3690
+ null = true
3691
+ type = bigint
3692
+ unsigned = true
3693
+ comment = "the top level execution id. Null if this is the root"
3694
+ }
3695
+ column "parent_node_id" {
3696
+ null = true
3697
+ type = varchar(128)
3698
+ comment = "the node key for the sub_workflow node that executes this workflow"
3699
+ }
3700
+ column "app_id" {
3701
+ null = true
3702
+ type = bigint
3703
+ unsigned = true
3704
+ comment = "app id this workflow execution belongs to"
3705
+ }
3706
+ column "node_count" {
3707
+ null = true
3708
+ type = mediumint
3709
+ unsigned = true
3710
+ comment = "the total node count of the workflow"
3711
+ }
3712
+ column "resume_event_id" {
3713
+ null = true
3714
+ type = bigint
3715
+ unsigned = true
3716
+ comment = "the current event ID which is resuming"
3717
+ }
3718
+ column "agent_id" {
3719
+ null = true
3720
+ type = bigint
3721
+ unsigned = true
3722
+ comment = "the agent that this execution binds to"
3723
+ }
3724
+ column "sync_pattern" {
3725
+ null = true
3726
+ type = tinyint
3727
+ unsigned = true
3728
+ comment = "the sync pattern 1. sync 2. async 3. stream"
3729
+ }
3730
+ column "commit_id" {
3731
+ null = true
3732
+ type = varchar(255)
3733
+ comment = "draft commit id this execution belongs to"
3734
+ }
3735
+ primary_key {
3736
+ columns = [column.id]
3737
+ }
3738
+ index "idx_workflow_id_version_mode_created_at" {
3739
+ columns = [column.workflow_id, column.version, column.mode, column.created_at]
3740
+ }
3741
+ }
3742
+ table "workflow_meta" {
3743
+ schema = schema.opencoze
3744
+ comment = "workflow 元信息表,用于记录workflow基本的元信息"
3745
+ column "id" {
3746
+ null = false
3747
+ type = bigint
3748
+ unsigned = true
3749
+ comment = "workflow id"
3750
+ }
3751
+ column "name" {
3752
+ null = false
3753
+ type = varchar(256)
3754
+ comment = "workflow name"
3755
+ }
3756
+ column "description" {
3757
+ null = false
3758
+ type = varchar(2000)
3759
+ comment = "workflow description"
3760
+ }
3761
+ column "icon_uri" {
3762
+ null = false
3763
+ type = varchar(256)
3764
+ comment = "icon uri"
3765
+ }
3766
+ column "status" {
3767
+ null = false
3768
+ type = tinyint
3769
+ unsigned = true
3770
+ comment = "0:未发布过, 1:已发布过"
3771
+ }
3772
+ column "content_type" {
3773
+ null = false
3774
+ type = tinyint
3775
+ unsigned = true
3776
+ comment = "0用户 1官方"
3777
+ }
3778
+ column "mode" {
3779
+ null = false
3780
+ type = tinyint
3781
+ unsigned = true
3782
+ comment = "0:workflow, 3:chat_flow"
3783
+ }
3784
+ column "created_at" {
3785
+ null = false
3786
+ type = bigint
3787
+ unsigned = true
3788
+ comment = "create time in millisecond"
3789
+ }
3790
+ column "updated_at" {
3791
+ null = true
3792
+ type = bigint
3793
+ unsigned = true
3794
+ comment = "update time in millisecond"
3795
+ }
3796
+ column "deleted_at" {
3797
+ null = true
3798
+ type = datetime(3)
3799
+ comment = "delete time in millisecond"
3800
+ }
3801
+ column "creator_id" {
3802
+ null = false
3803
+ type = bigint
3804
+ unsigned = true
3805
+ comment = "user id for creator"
3806
+ }
3807
+ column "tag" {
3808
+ null = true
3809
+ type = tinyint
3810
+ unsigned = true
3811
+ comment = "template tag: Tag: 1=All, 2=Hot, 3=Information, 4=Music, 5=Picture, 6=UtilityTool, 7=Life, 8=Traval, 9=Network, 10=System, 11=Movie, 12=Office, 13=Shopping, 14=Education, 15=Health, 16=Social, 17=Entertainment, 18=Finance, 100=Hidden"
3812
+ }
3813
+ column "author_id" {
3814
+ null = false
3815
+ type = bigint
3816
+ unsigned = true
3817
+ comment = "原作者用户 ID"
3818
+ }
3819
+ column "space_id" {
3820
+ null = false
3821
+ type = bigint
3822
+ unsigned = true
3823
+ comment = " 空间 ID"
3824
+ }
3825
+ column "updater_id" {
3826
+ null = true
3827
+ type = bigint
3828
+ unsigned = true
3829
+ comment = " 更新元信息的用户 ID"
3830
+ }
3831
+ column "source_id" {
3832
+ null = true
3833
+ type = bigint
3834
+ unsigned = true
3835
+ comment = " 复制来源的 workflow ID"
3836
+ }
3837
+ column "app_id" {
3838
+ null = true
3839
+ type = bigint
3840
+ unsigned = true
3841
+ comment = "应用 ID"
3842
+ }
3843
+ column "latest_version" {
3844
+ null = true
3845
+ type = varchar(50)
3846
+ comment = "the version of the most recent publish"
3847
+ }
3848
+ column "latest_version_ts" {
3849
+ null = true
3850
+ type = bigint
3851
+ unsigned = true
3852
+ comment = "create time of latest version"
3853
+ }
3854
+ primary_key {
3855
+ columns = [column.id]
3856
+ }
3857
+ index "idx_app_id" {
3858
+ columns = [column.app_id]
3859
+ }
3860
+ index "idx_latest_version_ts" {
3861
+ on {
3862
+ desc = true
3863
+ column = column.latest_version_ts
3864
+ }
3865
+ }
3866
+ index "idx_space_id_app_id_status_latest_version_ts" {
3867
+ columns = [column.space_id, column.app_id, column.status, column.latest_version_ts]
3868
+ }
3869
+ }
3870
+ table "workflow_reference" {
3871
+ schema = schema.opencoze
3872
+ comment = "workflow 关联关系表,用于记录workflow 直接互相引用关系"
3873
+ column "id" {
3874
+ null = false
3875
+ type = bigint
3876
+ unsigned = true
3877
+ comment = "workflow id"
3878
+ }
3879
+ column "referred_id" {
3880
+ null = false
3881
+ type = bigint
3882
+ unsigned = true
3883
+ comment = "the id of the workflow that is referred by other entities"
3884
+ }
3885
+ column "referring_id" {
3886
+ null = false
3887
+ type = bigint
3888
+ unsigned = true
3889
+ comment = "the entity id that refers this workflow"
3890
+ }
3891
+ column "refer_type" {
3892
+ null = false
3893
+ type = tinyint
3894
+ unsigned = true
3895
+ comment = "1 subworkflow 2 tool"
3896
+ }
3897
+ column "referring_biz_type" {
3898
+ null = false
3899
+ type = tinyint
3900
+ unsigned = true
3901
+ comment = "the biz type the referring entity belongs to: 1. workflow 2. agent"
3902
+ }
3903
+ column "created_at" {
3904
+ null = false
3905
+ type = bigint
3906
+ unsigned = true
3907
+ comment = "create time in millisecond"
3908
+ }
3909
+ column "status" {
3910
+ null = false
3911
+ type = tinyint
3912
+ unsigned = true
3913
+ comment = "whether this reference currently takes effect. 0: disabled 1: enabled"
3914
+ }
3915
+ column "deleted_at" {
3916
+ null = true
3917
+ type = datetime(3)
3918
+ }
3919
+ primary_key {
3920
+ columns = [column.id]
3921
+ }
3922
+ index "idx_referred_id_referring_biz_type_status" {
3923
+ columns = [column.referred_id, column.referring_biz_type, column.status]
3924
+ }
3925
+ index "idx_referring_id_status" {
3926
+ columns = [column.referring_id, column.status]
3927
+ }
3928
+ index "uniq_referred_id_referring_id_refer_type" {
3929
+ unique = true
3930
+ columns = [column.referred_id, column.referring_id, column.refer_type]
3931
+ }
3932
+ }
3933
+ table "workflow_snapshot" {
3934
+ schema = schema.opencoze
3935
+ comment = "snapshot for executed workflow draft"
3936
+ column "workflow_id" {
3937
+ null = false
3938
+ type = bigint
3939
+ unsigned = true
3940
+ comment = "workflow id this snapshot belongs to"
3941
+ }
3942
+ column "commit_id" {
3943
+ null = false
3944
+ type = varchar(255)
3945
+ comment = "the commit id of the workflow draft"
3946
+ }
3947
+ column "canvas" {
3948
+ null = false
3949
+ type = mediumtext
3950
+ comment = "frontend schema for this snapshot"
3951
+ }
3952
+ column "input_params" {
3953
+ null = true
3954
+ type = mediumtext
3955
+ comment = "input parameter info"
3956
+ }
3957
+ column "output_params" {
3958
+ null = true
3959
+ type = mediumtext
3960
+ comment = "output parameter info"
3961
+ }
3962
+ column "created_at" {
3963
+ null = false
3964
+ type = bigint
3965
+ unsigned = true
3966
+ }
3967
+ column "id" {
3968
+ null = false
3969
+ type = bigint
3970
+ unsigned = true
3971
+ comment = "ID"
3972
+ auto_increment = true
3973
+ }
3974
+ primary_key {
3975
+ columns = [column.id]
3976
+ }
3977
+ index "uniq_workflow_id_commit_id" {
3978
+ unique = true
3979
+ columns = [column.workflow_id, column.commit_id]
3980
+ }
3981
+ }
3982
+ table "workflow_version" {
3983
+ schema = schema.opencoze
3984
+ comment = "workflow 画布版本信息表,用于记录不同版本的画布信息"
3985
+ column "id" {
3986
+ null = false
3987
+ type = bigint
3988
+ unsigned = true
3989
+ comment = "ID"
3990
+ auto_increment = true
3991
+ }
3992
+ column "workflow_id" {
3993
+ null = false
3994
+ type = bigint
3995
+ unsigned = true
3996
+ comment = "workflow id"
3997
+ }
3998
+ column "version" {
3999
+ null = false
4000
+ type = varchar(50)
4001
+ comment = "发布版本"
4002
+ }
4003
+ column "version_description" {
4004
+ null = false
4005
+ type = varchar(2000)
4006
+ comment = "版本描述"
4007
+ }
4008
+ column "canvas" {
4009
+ null = false
4010
+ type = mediumtext
4011
+ comment = "前端 schema"
4012
+ }
4013
+ column "input_params" {
4014
+ null = true
4015
+ type = mediumtext
4016
+ }
4017
+ column "output_params" {
4018
+ null = true
4019
+ type = mediumtext
4020
+ }
4021
+ column "creator_id" {
4022
+ null = false
4023
+ type = bigint
4024
+ unsigned = true
4025
+ comment = "发布用户 ID"
4026
+ }
4027
+ column "created_at" {
4028
+ null = false
4029
+ type = bigint
4030
+ unsigned = true
4031
+ comment = "创建时间毫秒时间戳"
4032
+ }
4033
+ column "deleted_at" {
4034
+ null = true
4035
+ type = datetime(3)
4036
+ comment = "删除毫秒时间戳"
4037
+ }
4038
+ column "commit_id" {
4039
+ null = false
4040
+ type = varchar(255)
4041
+ comment = "the commit id corresponding to this version"
4042
+ }
4043
+ primary_key {
4044
+ columns = [column.id]
4045
+ }
4046
+ index "idx_id_created_at" {
4047
+ columns = [column.workflow_id, column.created_at]
4048
+ }
4049
+ index "uniq_workflow_id_version" {
4050
+ unique = true
4051
+ columns = [column.workflow_id, column.version]
4052
+ }
4053
+ }
4054
+ schema "opencoze" {
4055
+ charset = "utf8mb4"
4056
+ collate = "utf8mb4_unicode_ci"
4057
+ }