@lobehub/chat 1.90.4 → 1.91.1
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.
- package/CHANGELOG.md +58 -0
- package/changelog/v1.json +21 -0
- package/docs/changelog/2023-09-09-plugin-system.mdx +2 -3
- package/docs/changelog/2023-11-14-gpt4-vision.mdx +4 -6
- package/docs/changelog/2023-11-19-tts-stt.mdx +2 -3
- package/docs/changelog/2023-12-22-dalle-3.mdx +2 -5
- package/docs/changelog/2023-12-22-dalle-3.zh-CN.mdx +2 -2
- package/docs/changelog/2024-02-08-sso-oauth.mdx +2 -2
- package/docs/changelog/2024-06-19-lobe-chat-v1.mdx +2 -3
- package/docs/changelog/2024-06-19-lobe-chat-v1.zh-CN.mdx +2 -2
- package/docs/changelog/2024-07-19-gpt-4o-mini.mdx +2 -3
- package/docs/changelog/2024-07-19-gpt-4o-mini.zh-CN.mdx +2 -2
- package/docs/changelog/2024-08-02-lobe-chat-database-docker.mdx +2 -3
- package/docs/changelog/2024-08-21-file-upload-and-knowledge-base.mdx +4 -5
- package/docs/changelog/2024-09-13-openai-o1-models.mdx +2 -2
- package/docs/changelog/2024-09-20-artifacts.mdx +2 -3
- package/docs/changelog/2024-09-20-artifacts.zh-CN.mdx +2 -2
- package/docs/changelog/2024-10-27-pin-assistant.mdx +2 -3
- package/docs/changelog/2024-11-06-share-text-json.mdx +2 -4
- package/docs/changelog/2024-11-06-share-text-json.zh-CN.mdx +2 -2
- package/docs/changelog/2024-11-25-november-providers.mdx +2 -2
- package/docs/changelog/2024-11-27-forkable-chat.mdx +2 -2
- package/docs/changelog/2025-01-03-user-profile.mdx +2 -2
- package/docs/changelog/2025-01-22-new-ai-provider.mdx +2 -2
- package/docs/changelog/2025-02-02-deepseek-r1.mdx +4 -4
- package/docs/development/basic/add-new-authentication-providers.zh-CN.mdx +1 -2
- package/docs/development/basic/chat-api.mdx +2 -4
- package/docs/development/basic/chat-api.zh-CN.mdx +2 -4
- package/docs/development/internationalization/internationalization-implementation.mdx +10 -10
- package/docs/development/internationalization/internationalization-implementation.zh-CN.mdx +10 -10
- package/docs/self-hosting/advanced/analytics.mdx +2 -2
- package/docs/self-hosting/advanced/auth/clerk.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/auth0.mdx +2 -3
- package/docs/self-hosting/advanced/auth/next-auth/authelia.mdx +2 -3
- package/docs/self-hosting/advanced/auth/next-auth/authentik.mdx +2 -3
- package/docs/self-hosting/advanced/auth/next-auth/casdoor.mdx +4 -7
- package/docs/self-hosting/advanced/auth/next-auth/casdoor.zh-CN.mdx +0 -3
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.mdx +2 -3
- package/docs/self-hosting/advanced/auth/next-auth/cloudflare-zero-trust.zh-CN.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/github.mdx +2 -3
- package/docs/self-hosting/advanced/auth/next-auth/keycloak.mdx +12 -6
- package/docs/self-hosting/advanced/auth/next-auth/keycloak.zh-CN.mdx +5 -1
- package/docs/self-hosting/advanced/auth/next-auth/logto.mdx +8 -14
- package/docs/self-hosting/advanced/auth/next-auth/logto.zh-CN.mdx +6 -12
- package/docs/self-hosting/advanced/auth/next-auth/microsoft-entra-id.mdx +2 -3
- package/docs/self-hosting/advanced/auth/next-auth/wechat.mdx +2 -2
- package/docs/self-hosting/advanced/auth/next-auth/zitadel.mdx +2 -3
- package/docs/self-hosting/advanced/auth.mdx +2 -3
- package/docs/self-hosting/advanced/desktop.mdx +2 -1
- package/docs/self-hosting/advanced/desktop.zh-CN.mdx +1 -3
- package/docs/self-hosting/advanced/feature-flags.mdx +2 -3
- package/docs/self-hosting/advanced/knowledge-base.mdx +4 -3
- package/docs/self-hosting/advanced/model-list.mdx +11 -10
- package/docs/self-hosting/advanced/model-list.zh-CN.mdx +10 -9
- package/docs/self-hosting/advanced/observability/langfuse.mdx +2 -3
- package/docs/self-hosting/advanced/online-search.mdx +11 -10
- package/docs/self-hosting/advanced/online-search.zh-CN.mdx +7 -7
- package/docs/self-hosting/advanced/s3/tencent-cloud.mdx +2 -2
- package/docs/self-hosting/advanced/settings-url-share.mdx +2 -3
- package/docs/self-hosting/advanced/upstream-sync.mdx +2 -3
- package/docs/self-hosting/advanced/webrtc.mdx +2 -2
- package/docs/self-hosting/environment-variables/analytics.mdx +2 -3
- package/docs/self-hosting/environment-variables/auth.mdx +2 -3
- package/docs/self-hosting/environment-variables/basic.mdx +4 -5
- package/docs/self-hosting/environment-variables/basic.zh-CN.mdx +2 -2
- package/docs/self-hosting/environment-variables/model-provider.mdx +2 -3
- package/docs/self-hosting/environment-variables/s3.mdx +3 -5
- package/docs/self-hosting/environment-variables.mdx +2 -2
- package/docs/self-hosting/examples/azure-openai.mdx +2 -2
- package/docs/self-hosting/examples/ollama.mdx +2 -3
- package/docs/self-hosting/faq/no-v1-suffix.mdx +4 -4
- package/docs/self-hosting/faq/proxy-with-unable-to-verify-leaf-signature.mdx +2 -3
- package/docs/self-hosting/platform/alibaba-cloud.mdx +2 -3
- package/docs/self-hosting/platform/btpanel.mdx +5 -5
- package/docs/self-hosting/platform/btpanel.zh-CN.mdx +4 -3
- package/docs/self-hosting/platform/docker-compose.mdx +2 -3
- package/docs/self-hosting/platform/docker-compose.zh-CN.mdx +0 -2
- package/docs/self-hosting/platform/docker.mdx +2 -2
- package/docs/self-hosting/platform/netlify.mdx +2 -4
- package/docs/self-hosting/platform/netlify.zh-CN.mdx +2 -2
- package/docs/self-hosting/platform/railway.mdx +2 -3
- package/docs/self-hosting/platform/repocloud.mdx +2 -3
- package/docs/self-hosting/platform/sealos.mdx +2 -2
- package/docs/self-hosting/platform/tencentcloud-lighthouse.mdx +2 -3
- package/docs/self-hosting/platform/vercel.mdx +2 -3
- package/docs/self-hosting/platform/zeabur.mdx +2 -2
- package/docs/self-hosting/server-database/docker-compose.mdx +65 -44
- package/docs/self-hosting/server-database/docker-compose.zh-CN.mdx +48 -55
- package/docs/self-hosting/server-database/docker.mdx +2 -2
- package/docs/self-hosting/server-database/docker.zh-CN.mdx +2 -2
- package/docs/self-hosting/server-database/dokploy.mdx +4 -5
- package/docs/self-hosting/server-database/dokploy.zh-CN.mdx +137 -138
- package/docs/self-hosting/server-database/netlify.mdx +2 -2
- package/docs/self-hosting/server-database/netlify.zh-CN.mdx +2 -2
- package/docs/self-hosting/server-database/railway.mdx +2 -2
- package/docs/self-hosting/server-database/repocloud.mdx +2 -2
- package/docs/self-hosting/server-database/sealos.mdx +4 -5
- package/docs/self-hosting/server-database/sealos.zh-CN.mdx +18 -20
- package/docs/self-hosting/server-database/vercel.mdx +5 -3
- package/docs/self-hosting/server-database/vercel.zh-CN.mdx +2 -2
- package/docs/self-hosting/server-database/zeabur.mdx +2 -2
- package/docs/self-hosting/server-database.mdx +1 -1
- package/docs/self-hosting/server-database.zh-CN.mdx +2 -1
- package/docs/self-hosting/start.mdx +2 -2
- package/docs/self-hosting/start.zh-CN.mdx +2 -2
- package/docs/usage/agents/agent-organization.mdx +2 -2
- package/docs/usage/agents/concepts.mdx +4 -5
- package/docs/usage/agents/concepts.zh-CN.mdx +2 -2
- package/docs/usage/agents/custom-agent.mdx +3 -4
- package/docs/usage/agents/custom-agent.zh-CN.mdx +1 -1
- package/docs/usage/agents/model.mdx +5 -5
- package/docs/usage/agents/model.zh-CN.mdx +3 -5
- package/docs/usage/agents/prompt.mdx +4 -5
- package/docs/usage/agents/topics.mdx +3 -4
- package/docs/usage/agents/topics.zh-CN.mdx +1 -1
- package/docs/usage/features/agent-market.mdx +3 -11
- package/docs/usage/features/agent-market.zh-CN.mdx +2 -7
- package/docs/usage/features/artifacts.mdx +2 -2
- package/docs/usage/features/auth.mdx +2 -3
- package/docs/usage/features/cot.mdx +2 -2
- package/docs/usage/features/database.mdx +2 -2
- package/docs/usage/features/knowledge-base.mdx +4 -3
- package/docs/usage/features/knowledge-base.zh-CN.mdx +2 -1
- package/docs/usage/features/local-llm.mdx +2 -3
- package/docs/usage/features/mobile.mdx +2 -2
- package/docs/usage/features/more.mdx +2 -3
- package/docs/usage/features/multi-ai-providers.mdx +2 -3
- package/docs/usage/features/plugin-system.mdx +3 -11
- package/docs/usage/features/plugin-system.zh-CN.mdx +1 -8
- package/docs/usage/features/pwa.mdx +4 -4
- package/docs/usage/features/pwa.zh-CN.mdx +2 -1
- package/docs/usage/features/text-to-image.mdx +3 -11
- package/docs/usage/features/text-to-image.zh-CN.mdx +3 -10
- package/docs/usage/features/theme.mdx +2 -3
- package/docs/usage/features/tts.mdx +3 -11
- package/docs/usage/features/tts.zh-CN.mdx +1 -8
- package/docs/usage/features/vision.mdx +3 -11
- package/docs/usage/features/vision.zh-CN.mdx +1 -8
- package/docs/usage/foundation/basic.mdx +2 -3
- package/docs/usage/foundation/share.mdx +2 -3
- package/docs/usage/foundation/text2image.mdx +2 -2
- package/docs/usage/foundation/translate.mdx +2 -2
- package/docs/usage/foundation/tts-stt.mdx +2 -2
- package/docs/usage/foundation/vision.mdx +2 -3
- package/docs/usage/plugins/basic-usage.mdx +2 -3
- package/docs/usage/plugins/custom-plugin.mdx +2 -2
- package/docs/usage/plugins/development.mdx +2 -4
- package/docs/usage/plugins/store.mdx +2 -2
- package/docs/usage/providers/ai21.mdx +2 -2
- package/docs/usage/providers/anthropic.mdx +2 -3
- package/docs/usage/providers/anthropic.zh-CN.mdx +2 -2
- package/docs/usage/providers/azure.mdx +2 -3
- package/docs/usage/providers/azureai.mdx +4 -2
- package/docs/usage/providers/azureai.zh-CN.mdx +2 -1
- package/docs/usage/providers/baichuan.mdx +2 -3
- package/docs/usage/providers/bedrock.mdx +2 -3
- package/docs/usage/providers/cloudflare.mdx +3 -2
- package/docs/usage/providers/deepseek.mdx +2 -2
- package/docs/usage/providers/fireworksai.mdx +2 -2
- package/docs/usage/providers/giteeai.mdx +2 -2
- package/docs/usage/providers/github.mdx +1 -1
- package/docs/usage/providers/github.zh-CN.mdx +1 -1
- package/docs/usage/providers/google.mdx +2 -3
- package/docs/usage/providers/groq.mdx +2 -2
- package/docs/usage/providers/hunyuan.mdx +2 -2
- package/docs/usage/providers/infiniai.zh-CN.mdx +3 -1
- package/docs/usage/providers/internlm.mdx +2 -2
- package/docs/usage/providers/jina.mdx +4 -3
- package/docs/usage/providers/jina.zh-CN.mdx +2 -2
- package/docs/usage/providers/lmstudio.mdx +2 -2
- package/docs/usage/providers/lmstudio.zh-CN.mdx +2 -4
- package/docs/usage/providers/minimax.mdx +2 -3
- package/docs/usage/providers/minimax.zh-CN.mdx +2 -2
- package/docs/usage/providers/mistral.mdx +2 -3
- package/docs/usage/providers/modelscope.mdx +4 -0
- package/docs/usage/providers/modelscope.zh-CN.mdx +4 -0
- package/docs/usage/providers/moonshot.mdx +2 -3
- package/docs/usage/providers/novita.mdx +2 -3
- package/docs/usage/providers/novita.zh-CN.mdx +2 -2
- package/docs/usage/providers/nvidia.mdx +3 -2
- package/docs/usage/providers/ollama/gemma.mdx +2 -3
- package/docs/usage/providers/ollama/gemma.zh-CN.mdx +2 -2
- package/docs/usage/providers/ollama.mdx +2 -2
- package/docs/usage/providers/openai.mdx +5 -5
- package/docs/usage/providers/openai.zh-CN.mdx +3 -3
- package/docs/usage/providers/openrouter.mdx +2 -3
- package/docs/usage/providers/perplexity.mdx +2 -2
- package/docs/usage/providers/ppio.mdx +5 -6
- package/docs/usage/providers/ppio.zh-CN.mdx +6 -6
- package/docs/usage/providers/qiniu.mdx +6 -6
- package/docs/usage/providers/qiniu.zh-CN.mdx +2 -1
- package/docs/usage/providers/qwen.mdx +2 -4
- package/docs/usage/providers/sambanova.mdx +2 -1
- package/docs/usage/providers/sensenova.mdx +2 -2
- package/docs/usage/providers/siliconcloud.mdx +2 -2
- package/docs/usage/providers/stepfun.mdx +2 -3
- package/docs/usage/providers/taichu.mdx +2 -3
- package/docs/usage/providers/togetherai.mdx +2 -2
- package/docs/usage/providers/vllm.mdx +15 -12
- package/docs/usage/providers/vllm.zh-CN.mdx +9 -7
- package/docs/usage/providers/volcengine.mdx +16 -14
- package/docs/usage/providers/wenxin.mdx +2 -2
- package/docs/usage/providers/xai.mdx +2 -2
- package/docs/usage/providers/zeroone.mdx +2 -3
- package/docs/usage/providers/zeroone.zh-CN.mdx +2 -2
- package/docs/usage/providers/zhipu.mdx +2 -3
- package/docs/usage/providers/zhipu.zh-CN.mdx +1 -1
- package/docs/usage/providers.mdx +2 -3
- package/docs/usage/start.mdx +2 -3
- package/docs/usage/tools-calling/anthropic.mdx +2 -2
- package/docs/usage/tools-calling/anthropic.zh-CN.mdx +2 -2
- package/docs/usage/tools-calling/google.mdx +2 -2
- package/docs/usage/tools-calling/google.zh-CN.mdx +4 -4
- package/docs/usage/tools-calling/groq.zh-CN.mdx +2 -2
- package/docs/usage/tools-calling/openai.mdx +2 -2
- package/docs/usage/tools-calling/openai.zh-CN.mdx +2 -2
- package/package.json +1 -1
- package/packages/web-crawler/src/crawImpl/exa.ts +93 -0
- package/packages/web-crawler/src/crawImpl/firecrawl.ts +97 -0
- package/packages/web-crawler/src/crawImpl/index.ts +6 -0
- package/packages/web-crawler/src/crawImpl/tavily.ts +94 -0
- package/src/app/(backend)/webapi/user/avatar/[id]/[image]/route.ts +1 -1
- package/src/app/[variants]/(main)/repos/[id]/_layout/Mobile.tsx +7 -7
- package/src/config/aiModels/deepseek.ts +1 -0
- package/src/config/aiModels/hunyuan.ts +1 -0
- package/src/config/aiModels/mistral.ts +1 -2
- package/src/config/aiModels/modelscope.ts +3 -3
- package/src/config/aiModels/novita.ts +23 -22
- package/src/config/aiModels/openrouter.ts +1 -0
- package/src/config/aiModels/qwen.ts +11 -11
- package/src/config/aiModels/siliconcloud.ts +7 -6
- package/src/config/aiModels/vertexai.ts +2 -2
- package/src/config/aiModels/wenxin.ts +1 -2
- package/src/config/modelProviders/baichuan.ts +3 -0
- package/src/config/modelProviders/fireworksai.ts +3 -0
- package/src/config/modelProviders/giteeai.ts +3 -0
- package/src/config/modelProviders/github.ts +1 -2
- package/src/config/modelProviders/groq.ts +0 -3
- package/src/config/modelProviders/hunyuan.ts +3 -0
- package/src/config/modelProviders/infiniai.ts +0 -3
- package/src/config/modelProviders/internlm.ts +3 -0
- package/src/config/modelProviders/minimax.ts +3 -4
- package/src/config/modelProviders/modelscope.ts +3 -3
- package/src/config/modelProviders/moonshot.ts +0 -7
- package/src/config/modelProviders/novita.ts +3 -0
- package/src/config/modelProviders/openrouter.ts +0 -4
- package/src/config/modelProviders/perplexity.ts +0 -3
- package/src/config/modelProviders/qiniu.ts +0 -3
- package/src/config/modelProviders/qwen.ts +0 -3
- package/src/config/modelProviders/sensenova.ts +3 -0
- package/src/config/modelProviders/siliconcloud.ts +0 -3
- package/src/config/modelProviders/spark.ts +0 -5
- package/src/config/modelProviders/stepfun.ts +3 -6
- package/src/config/modelProviders/taichu.ts +3 -0
- package/src/config/modelProviders/tencentcloud.ts +3 -0
- package/src/config/modelProviders/togetherai.ts +3 -0
- package/src/config/modelProviders/upstage.ts +3 -0
- package/src/config/modelProviders/wenxin.ts +3 -4
- package/src/config/modelProviders/xai.ts +0 -3
- package/src/config/modelProviders/zhipu.ts +3 -0
- package/src/database/client/migrations.json +10 -0
- package/src/database/migrations/0023_remove_param_and_doubao.sql +6 -0
- package/src/database/migrations/meta/0014_snapshot.json +182 -539
- package/src/database/migrations/meta/0016_snapshot.json +182 -539
- package/src/database/migrations/meta/0023_snapshot.json +5340 -0
- package/src/database/migrations/meta/_journal.json +7 -0
- package/src/database/repositories/dataImporter/__tests__/fixtures/with-client-id.json +13 -58
- package/src/features/ChatInput/ActionBar/Model/ControlsForm.tsx +1 -8
- package/src/features/ChatInput/ActionBar/Model/index.tsx +8 -16
- package/src/features/ChatInput/ActionBar/Search/Controls.tsx +4 -12
- package/src/features/ChatInput/ActionBar/Search/FCSearchModel.tsx +1 -7
- package/src/features/ChatInput/ActionBar/Search/index.tsx +2 -4
- package/src/features/ModelSwitchPanel/index.tsx +1 -4
- package/src/libs/model-runtime/anthropic/index.test.ts +4 -2
- package/src/libs/model-runtime/utils/streams/anthropic.ts +12 -11
- package/src/libs/model-runtime/utils/streams/openai.ts +6 -4
- package/src/libs/model-runtime/utils/streams/protocol.ts +1 -1
- package/src/libs/model-runtime/utils/streams/spark.test.ts +1 -1
- package/src/libs/model-runtime/utils/streams/spark.ts +1 -2
- package/src/middleware.ts +1 -1
- package/src/server/services/search/impls/bocha/index.ts +124 -0
- package/src/server/services/search/impls/bocha/type.ts +47 -0
- package/src/server/services/search/impls/exa/index.ts +129 -0
- package/src/server/services/search/impls/exa/type.ts +39 -0
- package/src/server/services/search/impls/firecrawl/index.ts +128 -0
- package/src/server/services/search/impls/firecrawl/type.ts +35 -0
- package/src/server/services/search/impls/index.ts +31 -0
- package/src/server/services/search/impls/jina/index.ts +109 -0
- package/src/server/services/search/impls/jina/type.ts +26 -0
- package/src/server/services/search/impls/tavily/index.ts +124 -0
- package/src/server/services/search/impls/tavily/type.ts +36 -0
- package/src/server/services/user/index.ts +3 -4
- package/src/services/__tests__/assistant.test.ts +4 -6
- package/src/services/__tests__/tool.test.ts +3 -1
- package/src/store/user/slices/auth/selectors.ts +1 -1
- package/src/store/user/slices/common/action.test.ts +1 -1
- package/src/tools/web-browsing/index.ts +1 -7
@@ -1,8 +1,17 @@
|
|
1
1
|
{
|
2
|
+
"_meta": {
|
3
|
+
"columns": {},
|
4
|
+
"schemas": {},
|
5
|
+
"tables": {}
|
6
|
+
},
|
7
|
+
"dialect": "postgresql",
|
8
|
+
"enums": {},
|
2
9
|
"id": "f0154cbe-26e2-462d-bac7-d88f54e49c6f",
|
10
|
+
"policies": {},
|
3
11
|
"prevId": "e133c53b-895a-48a2-9bf0-9a363fc02b7c",
|
4
|
-
"
|
5
|
-
"
|
12
|
+
"roles": {},
|
13
|
+
"schemas": {},
|
14
|
+
"sequences": {},
|
6
15
|
"tables": {
|
7
16
|
"public.agents": {
|
8
17
|
"name": "agents",
|
@@ -135,12 +144,8 @@
|
|
135
144
|
"name": "agents_user_id_users_id_fk",
|
136
145
|
"tableFrom": "agents",
|
137
146
|
"tableTo": "users",
|
138
|
-
"columnsFrom": [
|
139
|
-
|
140
|
-
],
|
141
|
-
"columnsTo": [
|
142
|
-
"id"
|
143
|
-
],
|
147
|
+
"columnsFrom": ["user_id"],
|
148
|
+
"columnsTo": ["id"],
|
144
149
|
"onDelete": "cascade",
|
145
150
|
"onUpdate": "no action"
|
146
151
|
}
|
@@ -150,9 +155,7 @@
|
|
150
155
|
"agents_slug_unique": {
|
151
156
|
"name": "agents_slug_unique",
|
152
157
|
"nullsNotDistinct": false,
|
153
|
-
"columns": [
|
154
|
-
"slug"
|
155
|
-
]
|
158
|
+
"columns": ["slug"]
|
156
159
|
}
|
157
160
|
},
|
158
161
|
"policies": {},
|
@@ -216,12 +219,8 @@
|
|
216
219
|
"name": "agents_files_file_id_files_id_fk",
|
217
220
|
"tableFrom": "agents_files",
|
218
221
|
"tableTo": "files",
|
219
|
-
"columnsFrom": [
|
220
|
-
|
221
|
-
],
|
222
|
-
"columnsTo": [
|
223
|
-
"id"
|
224
|
-
],
|
222
|
+
"columnsFrom": ["file_id"],
|
223
|
+
"columnsTo": ["id"],
|
225
224
|
"onDelete": "cascade",
|
226
225
|
"onUpdate": "no action"
|
227
226
|
},
|
@@ -229,12 +228,8 @@
|
|
229
228
|
"name": "agents_files_agent_id_agents_id_fk",
|
230
229
|
"tableFrom": "agents_files",
|
231
230
|
"tableTo": "agents",
|
232
|
-
"columnsFrom": [
|
233
|
-
|
234
|
-
],
|
235
|
-
"columnsTo": [
|
236
|
-
"id"
|
237
|
-
],
|
231
|
+
"columnsFrom": ["agent_id"],
|
232
|
+
"columnsTo": ["id"],
|
238
233
|
"onDelete": "cascade",
|
239
234
|
"onUpdate": "no action"
|
240
235
|
},
|
@@ -242,12 +237,8 @@
|
|
242
237
|
"name": "agents_files_user_id_users_id_fk",
|
243
238
|
"tableFrom": "agents_files",
|
244
239
|
"tableTo": "users",
|
245
|
-
"columnsFrom": [
|
246
|
-
|
247
|
-
],
|
248
|
-
"columnsTo": [
|
249
|
-
"id"
|
250
|
-
],
|
240
|
+
"columnsFrom": ["user_id"],
|
241
|
+
"columnsTo": ["id"],
|
251
242
|
"onDelete": "cascade",
|
252
243
|
"onUpdate": "no action"
|
253
244
|
}
|
@@ -255,11 +246,7 @@
|
|
255
246
|
"compositePrimaryKeys": {
|
256
247
|
"agents_files_file_id_agent_id_user_id_pk": {
|
257
248
|
"name": "agents_files_file_id_agent_id_user_id_pk",
|
258
|
-
"columns": [
|
259
|
-
"file_id",
|
260
|
-
"agent_id",
|
261
|
-
"user_id"
|
262
|
-
]
|
249
|
+
"columns": ["file_id", "agent_id", "user_id"]
|
263
250
|
}
|
264
251
|
},
|
265
252
|
"uniqueConstraints": {},
|
@@ -324,12 +311,8 @@
|
|
324
311
|
"name": "agents_knowledge_bases_agent_id_agents_id_fk",
|
325
312
|
"tableFrom": "agents_knowledge_bases",
|
326
313
|
"tableTo": "agents",
|
327
|
-
"columnsFrom": [
|
328
|
-
|
329
|
-
],
|
330
|
-
"columnsTo": [
|
331
|
-
"id"
|
332
|
-
],
|
314
|
+
"columnsFrom": ["agent_id"],
|
315
|
+
"columnsTo": ["id"],
|
333
316
|
"onDelete": "cascade",
|
334
317
|
"onUpdate": "no action"
|
335
318
|
},
|
@@ -337,12 +320,8 @@
|
|
337
320
|
"name": "agents_knowledge_bases_knowledge_base_id_knowledge_bases_id_fk",
|
338
321
|
"tableFrom": "agents_knowledge_bases",
|
339
322
|
"tableTo": "knowledge_bases",
|
340
|
-
"columnsFrom": [
|
341
|
-
|
342
|
-
],
|
343
|
-
"columnsTo": [
|
344
|
-
"id"
|
345
|
-
],
|
323
|
+
"columnsFrom": ["knowledge_base_id"],
|
324
|
+
"columnsTo": ["id"],
|
346
325
|
"onDelete": "cascade",
|
347
326
|
"onUpdate": "no action"
|
348
327
|
},
|
@@ -350,12 +329,8 @@
|
|
350
329
|
"name": "agents_knowledge_bases_user_id_users_id_fk",
|
351
330
|
"tableFrom": "agents_knowledge_bases",
|
352
331
|
"tableTo": "users",
|
353
|
-
"columnsFrom": [
|
354
|
-
|
355
|
-
],
|
356
|
-
"columnsTo": [
|
357
|
-
"id"
|
358
|
-
],
|
332
|
+
"columnsFrom": ["user_id"],
|
333
|
+
"columnsTo": ["id"],
|
359
334
|
"onDelete": "cascade",
|
360
335
|
"onUpdate": "no action"
|
361
336
|
}
|
@@ -363,10 +338,7 @@
|
|
363
338
|
"compositePrimaryKeys": {
|
364
339
|
"agents_knowledge_bases_agent_id_knowledge_base_id_pk": {
|
365
340
|
"name": "agents_knowledge_bases_agent_id_knowledge_base_id_pk",
|
366
|
-
"columns": [
|
367
|
-
"agent_id",
|
368
|
-
"knowledge_base_id"
|
369
|
-
]
|
341
|
+
"columns": ["agent_id", "knowledge_base_id"]
|
370
342
|
}
|
371
343
|
},
|
372
344
|
"uniqueConstraints": {},
|
@@ -505,12 +477,8 @@
|
|
505
477
|
"name": "ai_models_user_id_users_id_fk",
|
506
478
|
"tableFrom": "ai_models",
|
507
479
|
"tableTo": "users",
|
508
|
-
"columnsFrom": [
|
509
|
-
|
510
|
-
],
|
511
|
-
"columnsTo": [
|
512
|
-
"id"
|
513
|
-
],
|
480
|
+
"columnsFrom": ["user_id"],
|
481
|
+
"columnsTo": ["id"],
|
514
482
|
"onDelete": "cascade",
|
515
483
|
"onUpdate": "no action"
|
516
484
|
}
|
@@ -518,11 +486,7 @@
|
|
518
486
|
"compositePrimaryKeys": {
|
519
487
|
"ai_models_id_provider_id_user_id_pk": {
|
520
488
|
"name": "ai_models_id_provider_id_user_id_pk",
|
521
|
-
"columns": [
|
522
|
-
"id",
|
523
|
-
"provider_id",
|
524
|
-
"user_id"
|
525
|
-
]
|
489
|
+
"columns": ["id", "provider_id", "user_id"]
|
526
490
|
}
|
527
491
|
},
|
528
492
|
"uniqueConstraints": {},
|
@@ -634,12 +598,8 @@
|
|
634
598
|
"name": "ai_providers_user_id_users_id_fk",
|
635
599
|
"tableFrom": "ai_providers",
|
636
600
|
"tableTo": "users",
|
637
|
-
"columnsFrom": [
|
638
|
-
|
639
|
-
],
|
640
|
-
"columnsTo": [
|
641
|
-
"id"
|
642
|
-
],
|
601
|
+
"columnsFrom": ["user_id"],
|
602
|
+
"columnsTo": ["id"],
|
643
603
|
"onDelete": "cascade",
|
644
604
|
"onUpdate": "no action"
|
645
605
|
}
|
@@ -647,10 +607,7 @@
|
|
647
607
|
"compositePrimaryKeys": {
|
648
608
|
"ai_providers_id_user_id_pk": {
|
649
609
|
"name": "ai_providers_id_user_id_pk",
|
650
|
-
"columns": [
|
651
|
-
"id",
|
652
|
-
"user_id"
|
653
|
-
]
|
610
|
+
"columns": ["id", "user_id"]
|
654
611
|
}
|
655
612
|
},
|
656
613
|
"uniqueConstraints": {},
|
@@ -727,12 +684,8 @@
|
|
727
684
|
"name": "async_tasks_user_id_users_id_fk",
|
728
685
|
"tableFrom": "async_tasks",
|
729
686
|
"tableTo": "users",
|
730
|
-
"columnsFrom": [
|
731
|
-
|
732
|
-
],
|
733
|
-
"columnsTo": [
|
734
|
-
"id"
|
735
|
-
],
|
687
|
+
"columnsFrom": ["user_id"],
|
688
|
+
"columnsTo": ["id"],
|
736
689
|
"onDelete": "cascade",
|
737
690
|
"onUpdate": "no action"
|
738
691
|
}
|
@@ -835,12 +788,8 @@
|
|
835
788
|
"name": "files_user_id_users_id_fk",
|
836
789
|
"tableFrom": "files",
|
837
790
|
"tableTo": "users",
|
838
|
-
"columnsFrom": [
|
839
|
-
|
840
|
-
],
|
841
|
-
"columnsTo": [
|
842
|
-
"id"
|
843
|
-
],
|
791
|
+
"columnsFrom": ["user_id"],
|
792
|
+
"columnsTo": ["id"],
|
844
793
|
"onDelete": "cascade",
|
845
794
|
"onUpdate": "no action"
|
846
795
|
},
|
@@ -848,12 +797,8 @@
|
|
848
797
|
"name": "files_file_hash_global_files_hash_id_fk",
|
849
798
|
"tableFrom": "files",
|
850
799
|
"tableTo": "global_files",
|
851
|
-
"columnsFrom": [
|
852
|
-
|
853
|
-
],
|
854
|
-
"columnsTo": [
|
855
|
-
"hash_id"
|
856
|
-
],
|
800
|
+
"columnsFrom": ["file_hash"],
|
801
|
+
"columnsTo": ["hash_id"],
|
857
802
|
"onDelete": "no action",
|
858
803
|
"onUpdate": "no action"
|
859
804
|
},
|
@@ -861,12 +806,8 @@
|
|
861
806
|
"name": "files_chunk_task_id_async_tasks_id_fk",
|
862
807
|
"tableFrom": "files",
|
863
808
|
"tableTo": "async_tasks",
|
864
|
-
"columnsFrom": [
|
865
|
-
|
866
|
-
],
|
867
|
-
"columnsTo": [
|
868
|
-
"id"
|
869
|
-
],
|
809
|
+
"columnsFrom": ["chunk_task_id"],
|
810
|
+
"columnsTo": ["id"],
|
870
811
|
"onDelete": "set null",
|
871
812
|
"onUpdate": "no action"
|
872
813
|
},
|
@@ -874,12 +815,8 @@
|
|
874
815
|
"name": "files_embedding_task_id_async_tasks_id_fk",
|
875
816
|
"tableFrom": "files",
|
876
817
|
"tableTo": "async_tasks",
|
877
|
-
"columnsFrom": [
|
878
|
-
|
879
|
-
],
|
880
|
-
"columnsTo": [
|
881
|
-
"id"
|
882
|
-
],
|
818
|
+
"columnsFrom": ["embedding_task_id"],
|
819
|
+
"columnsTo": ["id"],
|
883
820
|
"onDelete": "set null",
|
884
821
|
"onUpdate": "no action"
|
885
822
|
}
|
@@ -977,12 +914,8 @@
|
|
977
914
|
"name": "knowledge_base_files_knowledge_base_id_knowledge_bases_id_fk",
|
978
915
|
"tableFrom": "knowledge_base_files",
|
979
916
|
"tableTo": "knowledge_bases",
|
980
|
-
"columnsFrom": [
|
981
|
-
|
982
|
-
],
|
983
|
-
"columnsTo": [
|
984
|
-
"id"
|
985
|
-
],
|
917
|
+
"columnsFrom": ["knowledge_base_id"],
|
918
|
+
"columnsTo": ["id"],
|
986
919
|
"onDelete": "cascade",
|
987
920
|
"onUpdate": "no action"
|
988
921
|
},
|
@@ -990,12 +923,8 @@
|
|
990
923
|
"name": "knowledge_base_files_file_id_files_id_fk",
|
991
924
|
"tableFrom": "knowledge_base_files",
|
992
925
|
"tableTo": "files",
|
993
|
-
"columnsFrom": [
|
994
|
-
|
995
|
-
],
|
996
|
-
"columnsTo": [
|
997
|
-
"id"
|
998
|
-
],
|
926
|
+
"columnsFrom": ["file_id"],
|
927
|
+
"columnsTo": ["id"],
|
999
928
|
"onDelete": "cascade",
|
1000
929
|
"onUpdate": "no action"
|
1001
930
|
}
|
@@ -1003,10 +932,7 @@
|
|
1003
932
|
"compositePrimaryKeys": {
|
1004
933
|
"knowledge_base_files_knowledge_base_id_file_id_pk": {
|
1005
934
|
"name": "knowledge_base_files_knowledge_base_id_file_id_pk",
|
1006
|
-
"columns": [
|
1007
|
-
"knowledge_base_id",
|
1008
|
-
"file_id"
|
1009
|
-
]
|
935
|
+
"columns": ["knowledge_base_id", "file_id"]
|
1010
936
|
}
|
1011
937
|
},
|
1012
938
|
"uniqueConstraints": {},
|
@@ -1095,12 +1021,8 @@
|
|
1095
1021
|
"name": "knowledge_bases_user_id_users_id_fk",
|
1096
1022
|
"tableFrom": "knowledge_bases",
|
1097
1023
|
"tableTo": "users",
|
1098
|
-
"columnsFrom": [
|
1099
|
-
|
1100
|
-
],
|
1101
|
-
"columnsTo": [
|
1102
|
-
"id"
|
1103
|
-
],
|
1024
|
+
"columnsFrom": ["user_id"],
|
1025
|
+
"columnsTo": ["id"],
|
1104
1026
|
"onDelete": "cascade",
|
1105
1027
|
"onUpdate": "no action"
|
1106
1028
|
}
|
@@ -1134,12 +1056,8 @@
|
|
1134
1056
|
"name": "message_chunks_message_id_messages_id_fk",
|
1135
1057
|
"tableFrom": "message_chunks",
|
1136
1058
|
"tableTo": "messages",
|
1137
|
-
"columnsFrom": [
|
1138
|
-
|
1139
|
-
],
|
1140
|
-
"columnsTo": [
|
1141
|
-
"id"
|
1142
|
-
],
|
1059
|
+
"columnsFrom": ["message_id"],
|
1060
|
+
"columnsTo": ["id"],
|
1143
1061
|
"onDelete": "cascade",
|
1144
1062
|
"onUpdate": "no action"
|
1145
1063
|
},
|
@@ -1147,12 +1065,8 @@
|
|
1147
1065
|
"name": "message_chunks_chunk_id_chunks_id_fk",
|
1148
1066
|
"tableFrom": "message_chunks",
|
1149
1067
|
"tableTo": "chunks",
|
1150
|
-
"columnsFrom": [
|
1151
|
-
|
1152
|
-
],
|
1153
|
-
"columnsTo": [
|
1154
|
-
"id"
|
1155
|
-
],
|
1068
|
+
"columnsFrom": ["chunk_id"],
|
1069
|
+
"columnsTo": ["id"],
|
1156
1070
|
"onDelete": "cascade",
|
1157
1071
|
"onUpdate": "no action"
|
1158
1072
|
}
|
@@ -1160,10 +1074,7 @@
|
|
1160
1074
|
"compositePrimaryKeys": {
|
1161
1075
|
"message_chunks_chunk_id_message_id_pk": {
|
1162
1076
|
"name": "message_chunks_chunk_id_message_id_pk",
|
1163
|
-
"columns": [
|
1164
|
-
"chunk_id",
|
1165
|
-
"message_id"
|
1166
|
-
]
|
1077
|
+
"columns": ["chunk_id", "message_id"]
|
1167
1078
|
}
|
1168
1079
|
},
|
1169
1080
|
"uniqueConstraints": {},
|
@@ -1231,12 +1142,8 @@
|
|
1231
1142
|
"name": "message_plugins_id_messages_id_fk",
|
1232
1143
|
"tableFrom": "message_plugins",
|
1233
1144
|
"tableTo": "messages",
|
1234
|
-
"columnsFrom": [
|
1235
|
-
|
1236
|
-
],
|
1237
|
-
"columnsTo": [
|
1238
|
-
"id"
|
1239
|
-
],
|
1145
|
+
"columnsFrom": ["id"],
|
1146
|
+
"columnsTo": ["id"],
|
1240
1147
|
"onDelete": "cascade",
|
1241
1148
|
"onUpdate": "no action"
|
1242
1149
|
}
|
@@ -1289,12 +1196,8 @@
|
|
1289
1196
|
"name": "message_queries_message_id_messages_id_fk",
|
1290
1197
|
"tableFrom": "message_queries",
|
1291
1198
|
"tableTo": "messages",
|
1292
|
-
"columnsFrom": [
|
1293
|
-
|
1294
|
-
],
|
1295
|
-
"columnsTo": [
|
1296
|
-
"id"
|
1297
|
-
],
|
1199
|
+
"columnsFrom": ["message_id"],
|
1200
|
+
"columnsTo": ["id"],
|
1298
1201
|
"onDelete": "cascade",
|
1299
1202
|
"onUpdate": "no action"
|
1300
1203
|
},
|
@@ -1302,12 +1205,8 @@
|
|
1302
1205
|
"name": "message_queries_embeddings_id_embeddings_id_fk",
|
1303
1206
|
"tableFrom": "message_queries",
|
1304
1207
|
"tableTo": "embeddings",
|
1305
|
-
"columnsFrom": [
|
1306
|
-
|
1307
|
-
],
|
1308
|
-
"columnsTo": [
|
1309
|
-
"id"
|
1310
|
-
],
|
1208
|
+
"columnsFrom": ["embeddings_id"],
|
1209
|
+
"columnsTo": ["id"],
|
1311
1210
|
"onDelete": "set null",
|
1312
1211
|
"onUpdate": "no action"
|
1313
1212
|
}
|
@@ -1353,12 +1252,8 @@
|
|
1353
1252
|
"name": "message_query_chunks_id_messages_id_fk",
|
1354
1253
|
"tableFrom": "message_query_chunks",
|
1355
1254
|
"tableTo": "messages",
|
1356
|
-
"columnsFrom": [
|
1357
|
-
|
1358
|
-
],
|
1359
|
-
"columnsTo": [
|
1360
|
-
"id"
|
1361
|
-
],
|
1255
|
+
"columnsFrom": ["id"],
|
1256
|
+
"columnsTo": ["id"],
|
1362
1257
|
"onDelete": "cascade",
|
1363
1258
|
"onUpdate": "no action"
|
1364
1259
|
},
|
@@ -1366,12 +1261,8 @@
|
|
1366
1261
|
"name": "message_query_chunks_query_id_message_queries_id_fk",
|
1367
1262
|
"tableFrom": "message_query_chunks",
|
1368
1263
|
"tableTo": "message_queries",
|
1369
|
-
"columnsFrom": [
|
1370
|
-
|
1371
|
-
],
|
1372
|
-
"columnsTo": [
|
1373
|
-
"id"
|
1374
|
-
],
|
1264
|
+
"columnsFrom": ["query_id"],
|
1265
|
+
"columnsTo": ["id"],
|
1375
1266
|
"onDelete": "cascade",
|
1376
1267
|
"onUpdate": "no action"
|
1377
1268
|
},
|
@@ -1379,12 +1270,8 @@
|
|
1379
1270
|
"name": "message_query_chunks_chunk_id_chunks_id_fk",
|
1380
1271
|
"tableFrom": "message_query_chunks",
|
1381
1272
|
"tableTo": "chunks",
|
1382
|
-
"columnsFrom": [
|
1383
|
-
|
1384
|
-
],
|
1385
|
-
"columnsTo": [
|
1386
|
-
"id"
|
1387
|
-
],
|
1273
|
+
"columnsFrom": ["chunk_id"],
|
1274
|
+
"columnsTo": ["id"],
|
1388
1275
|
"onDelete": "cascade",
|
1389
1276
|
"onUpdate": "no action"
|
1390
1277
|
}
|
@@ -1392,11 +1279,7 @@
|
|
1392
1279
|
"compositePrimaryKeys": {
|
1393
1280
|
"message_query_chunks_chunk_id_id_query_id_pk": {
|
1394
1281
|
"name": "message_query_chunks_chunk_id_id_query_id_pk",
|
1395
|
-
"columns": [
|
1396
|
-
"chunk_id",
|
1397
|
-
"id",
|
1398
|
-
"query_id"
|
1399
|
-
]
|
1282
|
+
"columns": ["chunk_id", "id", "query_id"]
|
1400
1283
|
}
|
1401
1284
|
},
|
1402
1285
|
"uniqueConstraints": {},
|
@@ -1439,12 +1322,8 @@
|
|
1439
1322
|
"name": "message_tts_id_messages_id_fk",
|
1440
1323
|
"tableFrom": "message_tts",
|
1441
1324
|
"tableTo": "messages",
|
1442
|
-
"columnsFrom": [
|
1443
|
-
|
1444
|
-
],
|
1445
|
-
"columnsTo": [
|
1446
|
-
"id"
|
1447
|
-
],
|
1325
|
+
"columnsFrom": ["id"],
|
1326
|
+
"columnsTo": ["id"],
|
1448
1327
|
"onDelete": "cascade",
|
1449
1328
|
"onUpdate": "no action"
|
1450
1329
|
},
|
@@ -1452,12 +1331,8 @@
|
|
1452
1331
|
"name": "message_tts_file_id_files_id_fk",
|
1453
1332
|
"tableFrom": "message_tts",
|
1454
1333
|
"tableTo": "files",
|
1455
|
-
"columnsFrom": [
|
1456
|
-
|
1457
|
-
],
|
1458
|
-
"columnsTo": [
|
1459
|
-
"id"
|
1460
|
-
],
|
1334
|
+
"columnsFrom": ["file_id"],
|
1335
|
+
"columnsTo": ["id"],
|
1461
1336
|
"onDelete": "cascade",
|
1462
1337
|
"onUpdate": "no action"
|
1463
1338
|
}
|
@@ -1503,12 +1378,8 @@
|
|
1503
1378
|
"name": "message_translates_id_messages_id_fk",
|
1504
1379
|
"tableFrom": "message_translates",
|
1505
1380
|
"tableTo": "messages",
|
1506
|
-
"columnsFrom": [
|
1507
|
-
|
1508
|
-
],
|
1509
|
-
"columnsTo": [
|
1510
|
-
"id"
|
1511
|
-
],
|
1381
|
+
"columnsFrom": ["id"],
|
1382
|
+
"columnsTo": ["id"],
|
1512
1383
|
"onDelete": "cascade",
|
1513
1384
|
"onUpdate": "no action"
|
1514
1385
|
}
|
@@ -1760,12 +1631,8 @@
|
|
1760
1631
|
"name": "messages_user_id_users_id_fk",
|
1761
1632
|
"tableFrom": "messages",
|
1762
1633
|
"tableTo": "users",
|
1763
|
-
"columnsFrom": [
|
1764
|
-
|
1765
|
-
],
|
1766
|
-
"columnsTo": [
|
1767
|
-
"id"
|
1768
|
-
],
|
1634
|
+
"columnsFrom": ["user_id"],
|
1635
|
+
"columnsTo": ["id"],
|
1769
1636
|
"onDelete": "cascade",
|
1770
1637
|
"onUpdate": "no action"
|
1771
1638
|
},
|
@@ -1773,12 +1640,8 @@
|
|
1773
1640
|
"name": "messages_session_id_sessions_id_fk",
|
1774
1641
|
"tableFrom": "messages",
|
1775
1642
|
"tableTo": "sessions",
|
1776
|
-
"columnsFrom": [
|
1777
|
-
|
1778
|
-
],
|
1779
|
-
"columnsTo": [
|
1780
|
-
"id"
|
1781
|
-
],
|
1643
|
+
"columnsFrom": ["session_id"],
|
1644
|
+
"columnsTo": ["id"],
|
1782
1645
|
"onDelete": "cascade",
|
1783
1646
|
"onUpdate": "no action"
|
1784
1647
|
},
|
@@ -1786,12 +1649,8 @@
|
|
1786
1649
|
"name": "messages_topic_id_topics_id_fk",
|
1787
1650
|
"tableFrom": "messages",
|
1788
1651
|
"tableTo": "topics",
|
1789
|
-
"columnsFrom": [
|
1790
|
-
|
1791
|
-
],
|
1792
|
-
"columnsTo": [
|
1793
|
-
"id"
|
1794
|
-
],
|
1652
|
+
"columnsFrom": ["topic_id"],
|
1653
|
+
"columnsTo": ["id"],
|
1795
1654
|
"onDelete": "cascade",
|
1796
1655
|
"onUpdate": "no action"
|
1797
1656
|
},
|
@@ -1799,12 +1658,8 @@
|
|
1799
1658
|
"name": "messages_thread_id_threads_id_fk",
|
1800
1659
|
"tableFrom": "messages",
|
1801
1660
|
"tableTo": "threads",
|
1802
|
-
"columnsFrom": [
|
1803
|
-
|
1804
|
-
],
|
1805
|
-
"columnsTo": [
|
1806
|
-
"id"
|
1807
|
-
],
|
1661
|
+
"columnsFrom": ["thread_id"],
|
1662
|
+
"columnsTo": ["id"],
|
1808
1663
|
"onDelete": "cascade",
|
1809
1664
|
"onUpdate": "no action"
|
1810
1665
|
},
|
@@ -1812,12 +1667,8 @@
|
|
1812
1667
|
"name": "messages_parent_id_messages_id_fk",
|
1813
1668
|
"tableFrom": "messages",
|
1814
1669
|
"tableTo": "messages",
|
1815
|
-
"columnsFrom": [
|
1816
|
-
|
1817
|
-
],
|
1818
|
-
"columnsTo": [
|
1819
|
-
"id"
|
1820
|
-
],
|
1670
|
+
"columnsFrom": ["parent_id"],
|
1671
|
+
"columnsTo": ["id"],
|
1821
1672
|
"onDelete": "set null",
|
1822
1673
|
"onUpdate": "no action"
|
1823
1674
|
},
|
@@ -1825,12 +1676,8 @@
|
|
1825
1676
|
"name": "messages_quota_id_messages_id_fk",
|
1826
1677
|
"tableFrom": "messages",
|
1827
1678
|
"tableTo": "messages",
|
1828
|
-
"columnsFrom": [
|
1829
|
-
|
1830
|
-
],
|
1831
|
-
"columnsTo": [
|
1832
|
-
"id"
|
1833
|
-
],
|
1679
|
+
"columnsFrom": ["quota_id"],
|
1680
|
+
"columnsTo": ["id"],
|
1834
1681
|
"onDelete": "set null",
|
1835
1682
|
"onUpdate": "no action"
|
1836
1683
|
},
|
@@ -1838,12 +1685,8 @@
|
|
1838
1685
|
"name": "messages_agent_id_agents_id_fk",
|
1839
1686
|
"tableFrom": "messages",
|
1840
1687
|
"tableTo": "agents",
|
1841
|
-
"columnsFrom": [
|
1842
|
-
|
1843
|
-
],
|
1844
|
-
"columnsTo": [
|
1845
|
-
"id"
|
1846
|
-
],
|
1688
|
+
"columnsFrom": ["agent_id"],
|
1689
|
+
"columnsTo": ["id"],
|
1847
1690
|
"onDelete": "set null",
|
1848
1691
|
"onUpdate": "no action"
|
1849
1692
|
}
|
@@ -1877,12 +1720,8 @@
|
|
1877
1720
|
"name": "messages_files_file_id_files_id_fk",
|
1878
1721
|
"tableFrom": "messages_files",
|
1879
1722
|
"tableTo": "files",
|
1880
|
-
"columnsFrom": [
|
1881
|
-
|
1882
|
-
],
|
1883
|
-
"columnsTo": [
|
1884
|
-
"id"
|
1885
|
-
],
|
1723
|
+
"columnsFrom": ["file_id"],
|
1724
|
+
"columnsTo": ["id"],
|
1886
1725
|
"onDelete": "cascade",
|
1887
1726
|
"onUpdate": "no action"
|
1888
1727
|
},
|
@@ -1890,12 +1729,8 @@
|
|
1890
1729
|
"name": "messages_files_message_id_messages_id_fk",
|
1891
1730
|
"tableFrom": "messages_files",
|
1892
1731
|
"tableTo": "messages",
|
1893
|
-
"columnsFrom": [
|
1894
|
-
|
1895
|
-
],
|
1896
|
-
"columnsTo": [
|
1897
|
-
"id"
|
1898
|
-
],
|
1732
|
+
"columnsFrom": ["message_id"],
|
1733
|
+
"columnsTo": ["id"],
|
1899
1734
|
"onDelete": "cascade",
|
1900
1735
|
"onUpdate": "no action"
|
1901
1736
|
}
|
@@ -1903,10 +1738,7 @@
|
|
1903
1738
|
"compositePrimaryKeys": {
|
1904
1739
|
"messages_files_file_id_message_id_pk": {
|
1905
1740
|
"name": "messages_files_file_id_message_id_pk",
|
1906
|
-
"columns": [
|
1907
|
-
"file_id",
|
1908
|
-
"message_id"
|
1909
|
-
]
|
1741
|
+
"columns": ["file_id", "message_id"]
|
1910
1742
|
}
|
1911
1743
|
},
|
1912
1744
|
"uniqueConstraints": {},
|
@@ -1991,12 +1823,8 @@
|
|
1991
1823
|
"name": "nextauth_accounts_userId_users_id_fk",
|
1992
1824
|
"tableFrom": "nextauth_accounts",
|
1993
1825
|
"tableTo": "users",
|
1994
|
-
"columnsFrom": [
|
1995
|
-
|
1996
|
-
],
|
1997
|
-
"columnsTo": [
|
1998
|
-
"id"
|
1999
|
-
],
|
1826
|
+
"columnsFrom": ["userId"],
|
1827
|
+
"columnsTo": ["id"],
|
2000
1828
|
"onDelete": "cascade",
|
2001
1829
|
"onUpdate": "no action"
|
2002
1830
|
}
|
@@ -2004,10 +1832,7 @@
|
|
2004
1832
|
"compositePrimaryKeys": {
|
2005
1833
|
"nextauth_accounts_provider_providerAccountId_pk": {
|
2006
1834
|
"name": "nextauth_accounts_provider_providerAccountId_pk",
|
2007
|
-
"columns": [
|
2008
|
-
"provider",
|
2009
|
-
"providerAccountId"
|
2010
|
-
]
|
1835
|
+
"columns": ["provider", "providerAccountId"]
|
2011
1836
|
}
|
2012
1837
|
},
|
2013
1838
|
"uniqueConstraints": {},
|
@@ -2074,12 +1899,8 @@
|
|
2074
1899
|
"name": "nextauth_authenticators_userId_users_id_fk",
|
2075
1900
|
"tableFrom": "nextauth_authenticators",
|
2076
1901
|
"tableTo": "users",
|
2077
|
-
"columnsFrom": [
|
2078
|
-
|
2079
|
-
],
|
2080
|
-
"columnsTo": [
|
2081
|
-
"id"
|
2082
|
-
],
|
1902
|
+
"columnsFrom": ["userId"],
|
1903
|
+
"columnsTo": ["id"],
|
2083
1904
|
"onDelete": "cascade",
|
2084
1905
|
"onUpdate": "no action"
|
2085
1906
|
}
|
@@ -2087,19 +1908,14 @@
|
|
2087
1908
|
"compositePrimaryKeys": {
|
2088
1909
|
"nextauth_authenticators_userId_credentialID_pk": {
|
2089
1910
|
"name": "nextauth_authenticators_userId_credentialID_pk",
|
2090
|
-
"columns": [
|
2091
|
-
"userId",
|
2092
|
-
"credentialID"
|
2093
|
-
]
|
1911
|
+
"columns": ["userId", "credentialID"]
|
2094
1912
|
}
|
2095
1913
|
},
|
2096
1914
|
"uniqueConstraints": {
|
2097
1915
|
"nextauth_authenticators_credentialID_unique": {
|
2098
1916
|
"name": "nextauth_authenticators_credentialID_unique",
|
2099
1917
|
"nullsNotDistinct": false,
|
2100
|
-
"columns": [
|
2101
|
-
"credentialID"
|
2102
|
-
]
|
1918
|
+
"columns": ["credentialID"]
|
2103
1919
|
}
|
2104
1920
|
},
|
2105
1921
|
"policies": {},
|
@@ -2135,12 +1951,8 @@
|
|
2135
1951
|
"name": "nextauth_sessions_userId_users_id_fk",
|
2136
1952
|
"tableFrom": "nextauth_sessions",
|
2137
1953
|
"tableTo": "users",
|
2138
|
-
"columnsFrom": [
|
2139
|
-
|
2140
|
-
],
|
2141
|
-
"columnsTo": [
|
2142
|
-
"id"
|
2143
|
-
],
|
1954
|
+
"columnsFrom": ["userId"],
|
1955
|
+
"columnsTo": ["id"],
|
2144
1956
|
"onDelete": "cascade",
|
2145
1957
|
"onUpdate": "no action"
|
2146
1958
|
}
|
@@ -2179,10 +1991,7 @@
|
|
2179
1991
|
"compositePrimaryKeys": {
|
2180
1992
|
"nextauth_verificationtokens_identifier_token_pk": {
|
2181
1993
|
"name": "nextauth_verificationtokens_identifier_token_pk",
|
2182
|
-
"columns": [
|
2183
|
-
"identifier",
|
2184
|
-
"token"
|
2185
|
-
]
|
1994
|
+
"columns": ["identifier", "token"]
|
2186
1995
|
}
|
2187
1996
|
},
|
2188
1997
|
"uniqueConstraints": {},
|
@@ -2265,12 +2074,8 @@
|
|
2265
2074
|
"name": "chunks_user_id_users_id_fk",
|
2266
2075
|
"tableFrom": "chunks",
|
2267
2076
|
"tableTo": "users",
|
2268
|
-
"columnsFrom": [
|
2269
|
-
|
2270
|
-
],
|
2271
|
-
"columnsTo": [
|
2272
|
-
"id"
|
2273
|
-
],
|
2077
|
+
"columnsFrom": ["user_id"],
|
2078
|
+
"columnsTo": ["id"],
|
2274
2079
|
"onDelete": "cascade",
|
2275
2080
|
"onUpdate": "no action"
|
2276
2081
|
}
|
@@ -2323,12 +2128,8 @@
|
|
2323
2128
|
"name": "embeddings_chunk_id_chunks_id_fk",
|
2324
2129
|
"tableFrom": "embeddings",
|
2325
2130
|
"tableTo": "chunks",
|
2326
|
-
"columnsFrom": [
|
2327
|
-
|
2328
|
-
],
|
2329
|
-
"columnsTo": [
|
2330
|
-
"id"
|
2331
|
-
],
|
2131
|
+
"columnsFrom": ["chunk_id"],
|
2132
|
+
"columnsTo": ["id"],
|
2332
2133
|
"onDelete": "cascade",
|
2333
2134
|
"onUpdate": "no action"
|
2334
2135
|
},
|
@@ -2336,12 +2137,8 @@
|
|
2336
2137
|
"name": "embeddings_user_id_users_id_fk",
|
2337
2138
|
"tableFrom": "embeddings",
|
2338
2139
|
"tableTo": "users",
|
2339
|
-
"columnsFrom": [
|
2340
|
-
|
2341
|
-
],
|
2342
|
-
"columnsTo": [
|
2343
|
-
"id"
|
2344
|
-
],
|
2140
|
+
"columnsFrom": ["user_id"],
|
2141
|
+
"columnsTo": ["id"],
|
2345
2142
|
"onDelete": "cascade",
|
2346
2143
|
"onUpdate": "no action"
|
2347
2144
|
}
|
@@ -2351,9 +2148,7 @@
|
|
2351
2148
|
"embeddings_chunk_id_unique": {
|
2352
2149
|
"name": "embeddings_chunk_id_unique",
|
2353
2150
|
"nullsNotDistinct": false,
|
2354
|
-
"columns": [
|
2355
|
-
"chunk_id"
|
2356
|
-
]
|
2151
|
+
"columns": ["chunk_id"]
|
2357
2152
|
}
|
2358
2153
|
},
|
2359
2154
|
"policies": {},
|
@@ -2447,12 +2242,8 @@
|
|
2447
2242
|
"name": "unstructured_chunks_composite_id_chunks_id_fk",
|
2448
2243
|
"tableFrom": "unstructured_chunks",
|
2449
2244
|
"tableTo": "chunks",
|
2450
|
-
"columnsFrom": [
|
2451
|
-
|
2452
|
-
],
|
2453
|
-
"columnsTo": [
|
2454
|
-
"id"
|
2455
|
-
],
|
2245
|
+
"columnsFrom": ["composite_id"],
|
2246
|
+
"columnsTo": ["id"],
|
2456
2247
|
"onDelete": "cascade",
|
2457
2248
|
"onUpdate": "no action"
|
2458
2249
|
},
|
@@ -2460,12 +2251,8 @@
|
|
2460
2251
|
"name": "unstructured_chunks_user_id_users_id_fk",
|
2461
2252
|
"tableFrom": "unstructured_chunks",
|
2462
2253
|
"tableTo": "users",
|
2463
|
-
"columnsFrom": [
|
2464
|
-
|
2465
|
-
],
|
2466
|
-
"columnsTo": [
|
2467
|
-
"id"
|
2468
|
-
],
|
2254
|
+
"columnsFrom": ["user_id"],
|
2255
|
+
"columnsTo": ["id"],
|
2469
2256
|
"onDelete": "cascade",
|
2470
2257
|
"onUpdate": "no action"
|
2471
2258
|
},
|
@@ -2473,12 +2260,8 @@
|
|
2473
2260
|
"name": "unstructured_chunks_file_id_files_id_fk",
|
2474
2261
|
"tableFrom": "unstructured_chunks",
|
2475
2262
|
"tableTo": "files",
|
2476
|
-
"columnsFrom": [
|
2477
|
-
|
2478
|
-
],
|
2479
|
-
"columnsTo": [
|
2480
|
-
"id"
|
2481
|
-
],
|
2263
|
+
"columnsFrom": ["file_id"],
|
2264
|
+
"columnsTo": ["id"],
|
2482
2265
|
"onDelete": "cascade",
|
2483
2266
|
"onUpdate": "no action"
|
2484
2267
|
}
|
@@ -2574,12 +2357,8 @@
|
|
2574
2357
|
"name": "rag_eval_dataset_records_dataset_id_rag_eval_datasets_id_fk",
|
2575
2358
|
"tableFrom": "rag_eval_dataset_records",
|
2576
2359
|
"tableTo": "rag_eval_datasets",
|
2577
|
-
"columnsFrom": [
|
2578
|
-
|
2579
|
-
],
|
2580
|
-
"columnsTo": [
|
2581
|
-
"id"
|
2582
|
-
],
|
2360
|
+
"columnsFrom": ["dataset_id"],
|
2361
|
+
"columnsTo": ["id"],
|
2583
2362
|
"onDelete": "cascade",
|
2584
2363
|
"onUpdate": "no action"
|
2585
2364
|
},
|
@@ -2587,12 +2366,8 @@
|
|
2587
2366
|
"name": "rag_eval_dataset_records_user_id_users_id_fk",
|
2588
2367
|
"tableFrom": "rag_eval_dataset_records",
|
2589
2368
|
"tableTo": "users",
|
2590
|
-
"columnsFrom": [
|
2591
|
-
|
2592
|
-
],
|
2593
|
-
"columnsTo": [
|
2594
|
-
"id"
|
2595
|
-
],
|
2369
|
+
"columnsFrom": ["user_id"],
|
2370
|
+
"columnsTo": ["id"],
|
2596
2371
|
"onDelete": "cascade",
|
2597
2372
|
"onUpdate": "no action"
|
2598
2373
|
}
|
@@ -2676,12 +2451,8 @@
|
|
2676
2451
|
"name": "rag_eval_datasets_knowledge_base_id_knowledge_bases_id_fk",
|
2677
2452
|
"tableFrom": "rag_eval_datasets",
|
2678
2453
|
"tableTo": "knowledge_bases",
|
2679
|
-
"columnsFrom": [
|
2680
|
-
|
2681
|
-
],
|
2682
|
-
"columnsTo": [
|
2683
|
-
"id"
|
2684
|
-
],
|
2454
|
+
"columnsFrom": ["knowledge_base_id"],
|
2455
|
+
"columnsTo": ["id"],
|
2685
2456
|
"onDelete": "cascade",
|
2686
2457
|
"onUpdate": "no action"
|
2687
2458
|
},
|
@@ -2689,12 +2460,8 @@
|
|
2689
2460
|
"name": "rag_eval_datasets_user_id_users_id_fk",
|
2690
2461
|
"tableFrom": "rag_eval_datasets",
|
2691
2462
|
"tableTo": "users",
|
2692
|
-
"columnsFrom": [
|
2693
|
-
|
2694
|
-
],
|
2695
|
-
"columnsTo": [
|
2696
|
-
"id"
|
2697
|
-
],
|
2463
|
+
"columnsFrom": ["user_id"],
|
2464
|
+
"columnsTo": ["id"],
|
2698
2465
|
"onDelete": "cascade",
|
2699
2466
|
"onUpdate": "no action"
|
2700
2467
|
}
|
@@ -2814,12 +2581,8 @@
|
|
2814
2581
|
"name": "rag_eval_evaluations_dataset_id_rag_eval_datasets_id_fk",
|
2815
2582
|
"tableFrom": "rag_eval_evaluations",
|
2816
2583
|
"tableTo": "rag_eval_datasets",
|
2817
|
-
"columnsFrom": [
|
2818
|
-
|
2819
|
-
],
|
2820
|
-
"columnsTo": [
|
2821
|
-
"id"
|
2822
|
-
],
|
2584
|
+
"columnsFrom": ["dataset_id"],
|
2585
|
+
"columnsTo": ["id"],
|
2823
2586
|
"onDelete": "cascade",
|
2824
2587
|
"onUpdate": "no action"
|
2825
2588
|
},
|
@@ -2827,12 +2590,8 @@
|
|
2827
2590
|
"name": "rag_eval_evaluations_knowledge_base_id_knowledge_bases_id_fk",
|
2828
2591
|
"tableFrom": "rag_eval_evaluations",
|
2829
2592
|
"tableTo": "knowledge_bases",
|
2830
|
-
"columnsFrom": [
|
2831
|
-
|
2832
|
-
],
|
2833
|
-
"columnsTo": [
|
2834
|
-
"id"
|
2835
|
-
],
|
2593
|
+
"columnsFrom": ["knowledge_base_id"],
|
2594
|
+
"columnsTo": ["id"],
|
2836
2595
|
"onDelete": "cascade",
|
2837
2596
|
"onUpdate": "no action"
|
2838
2597
|
},
|
@@ -2840,12 +2599,8 @@
|
|
2840
2599
|
"name": "rag_eval_evaluations_user_id_users_id_fk",
|
2841
2600
|
"tableFrom": "rag_eval_evaluations",
|
2842
2601
|
"tableTo": "users",
|
2843
|
-
"columnsFrom": [
|
2844
|
-
|
2845
|
-
],
|
2846
|
-
"columnsTo": [
|
2847
|
-
"id"
|
2848
|
-
],
|
2602
|
+
"columnsFrom": ["user_id"],
|
2603
|
+
"columnsTo": ["id"],
|
2849
2604
|
"onDelete": "cascade",
|
2850
2605
|
"onUpdate": "no action"
|
2851
2606
|
}
|
@@ -2983,12 +2738,8 @@
|
|
2983
2738
|
"name": "rag_eval_evaluation_records_question_embedding_id_embeddings_id_fk",
|
2984
2739
|
"tableFrom": "rag_eval_evaluation_records",
|
2985
2740
|
"tableTo": "embeddings",
|
2986
|
-
"columnsFrom": [
|
2987
|
-
|
2988
|
-
],
|
2989
|
-
"columnsTo": [
|
2990
|
-
"id"
|
2991
|
-
],
|
2741
|
+
"columnsFrom": ["question_embedding_id"],
|
2742
|
+
"columnsTo": ["id"],
|
2992
2743
|
"onDelete": "set null",
|
2993
2744
|
"onUpdate": "no action"
|
2994
2745
|
},
|
@@ -2996,12 +2747,8 @@
|
|
2996
2747
|
"name": "rag_eval_evaluation_records_dataset_record_id_rag_eval_dataset_records_id_fk",
|
2997
2748
|
"tableFrom": "rag_eval_evaluation_records",
|
2998
2749
|
"tableTo": "rag_eval_dataset_records",
|
2999
|
-
"columnsFrom": [
|
3000
|
-
|
3001
|
-
],
|
3002
|
-
"columnsTo": [
|
3003
|
-
"id"
|
3004
|
-
],
|
2750
|
+
"columnsFrom": ["dataset_record_id"],
|
2751
|
+
"columnsTo": ["id"],
|
3005
2752
|
"onDelete": "cascade",
|
3006
2753
|
"onUpdate": "no action"
|
3007
2754
|
},
|
@@ -3009,12 +2756,8 @@
|
|
3009
2756
|
"name": "rag_eval_evaluation_records_evaluation_id_rag_eval_evaluations_id_fk",
|
3010
2757
|
"tableFrom": "rag_eval_evaluation_records",
|
3011
2758
|
"tableTo": "rag_eval_evaluations",
|
3012
|
-
"columnsFrom": [
|
3013
|
-
|
3014
|
-
],
|
3015
|
-
"columnsTo": [
|
3016
|
-
"id"
|
3017
|
-
],
|
2759
|
+
"columnsFrom": ["evaluation_id"],
|
2760
|
+
"columnsTo": ["id"],
|
3018
2761
|
"onDelete": "cascade",
|
3019
2762
|
"onUpdate": "no action"
|
3020
2763
|
},
|
@@ -3022,12 +2765,8 @@
|
|
3022
2765
|
"name": "rag_eval_evaluation_records_user_id_users_id_fk",
|
3023
2766
|
"tableFrom": "rag_eval_evaluation_records",
|
3024
2767
|
"tableTo": "users",
|
3025
|
-
"columnsFrom": [
|
3026
|
-
|
3027
|
-
],
|
3028
|
-
"columnsTo": [
|
3029
|
-
"id"
|
3030
|
-
],
|
2768
|
+
"columnsFrom": ["user_id"],
|
2769
|
+
"columnsTo": ["id"],
|
3031
2770
|
"onDelete": "cascade",
|
3032
2771
|
"onUpdate": "no action"
|
3033
2772
|
}
|
@@ -3061,12 +2800,8 @@
|
|
3061
2800
|
"name": "agents_to_sessions_agent_id_agents_id_fk",
|
3062
2801
|
"tableFrom": "agents_to_sessions",
|
3063
2802
|
"tableTo": "agents",
|
3064
|
-
"columnsFrom": [
|
3065
|
-
|
3066
|
-
],
|
3067
|
-
"columnsTo": [
|
3068
|
-
"id"
|
3069
|
-
],
|
2803
|
+
"columnsFrom": ["agent_id"],
|
2804
|
+
"columnsTo": ["id"],
|
3070
2805
|
"onDelete": "cascade",
|
3071
2806
|
"onUpdate": "no action"
|
3072
2807
|
},
|
@@ -3074,12 +2809,8 @@
|
|
3074
2809
|
"name": "agents_to_sessions_session_id_sessions_id_fk",
|
3075
2810
|
"tableFrom": "agents_to_sessions",
|
3076
2811
|
"tableTo": "sessions",
|
3077
|
-
"columnsFrom": [
|
3078
|
-
|
3079
|
-
],
|
3080
|
-
"columnsTo": [
|
3081
|
-
"id"
|
3082
|
-
],
|
2812
|
+
"columnsFrom": ["session_id"],
|
2813
|
+
"columnsTo": ["id"],
|
3083
2814
|
"onDelete": "cascade",
|
3084
2815
|
"onUpdate": "no action"
|
3085
2816
|
}
|
@@ -3087,10 +2818,7 @@
|
|
3087
2818
|
"compositePrimaryKeys": {
|
3088
2819
|
"agents_to_sessions_agent_id_session_id_pk": {
|
3089
2820
|
"name": "agents_to_sessions_agent_id_session_id_pk",
|
3090
|
-
"columns": [
|
3091
|
-
"agent_id",
|
3092
|
-
"session_id"
|
3093
|
-
]
|
2821
|
+
"columns": ["agent_id", "session_id"]
|
3094
2822
|
}
|
3095
2823
|
},
|
3096
2824
|
"uniqueConstraints": {},
|
@@ -3128,12 +2856,8 @@
|
|
3128
2856
|
"name": "file_chunks_file_id_files_id_fk",
|
3129
2857
|
"tableFrom": "file_chunks",
|
3130
2858
|
"tableTo": "files",
|
3131
|
-
"columnsFrom": [
|
3132
|
-
|
3133
|
-
],
|
3134
|
-
"columnsTo": [
|
3135
|
-
"id"
|
3136
|
-
],
|
2859
|
+
"columnsFrom": ["file_id"],
|
2860
|
+
"columnsTo": ["id"],
|
3137
2861
|
"onDelete": "cascade",
|
3138
2862
|
"onUpdate": "no action"
|
3139
2863
|
},
|
@@ -3141,12 +2865,8 @@
|
|
3141
2865
|
"name": "file_chunks_chunk_id_chunks_id_fk",
|
3142
2866
|
"tableFrom": "file_chunks",
|
3143
2867
|
"tableTo": "chunks",
|
3144
|
-
"columnsFrom": [
|
3145
|
-
|
3146
|
-
],
|
3147
|
-
"columnsTo": [
|
3148
|
-
"id"
|
3149
|
-
],
|
2868
|
+
"columnsFrom": ["chunk_id"],
|
2869
|
+
"columnsTo": ["id"],
|
3150
2870
|
"onDelete": "cascade",
|
3151
2871
|
"onUpdate": "no action"
|
3152
2872
|
}
|
@@ -3154,10 +2874,7 @@
|
|
3154
2874
|
"compositePrimaryKeys": {
|
3155
2875
|
"file_chunks_file_id_chunk_id_pk": {
|
3156
2876
|
"name": "file_chunks_file_id_chunk_id_pk",
|
3157
|
-
"columns": [
|
3158
|
-
"file_id",
|
3159
|
-
"chunk_id"
|
3160
|
-
]
|
2877
|
+
"columns": ["file_id", "chunk_id"]
|
3161
2878
|
}
|
3162
2879
|
},
|
3163
2880
|
"uniqueConstraints": {},
|
@@ -3188,12 +2905,8 @@
|
|
3188
2905
|
"name": "files_to_sessions_file_id_files_id_fk",
|
3189
2906
|
"tableFrom": "files_to_sessions",
|
3190
2907
|
"tableTo": "files",
|
3191
|
-
"columnsFrom": [
|
3192
|
-
|
3193
|
-
],
|
3194
|
-
"columnsTo": [
|
3195
|
-
"id"
|
3196
|
-
],
|
2908
|
+
"columnsFrom": ["file_id"],
|
2909
|
+
"columnsTo": ["id"],
|
3197
2910
|
"onDelete": "cascade",
|
3198
2911
|
"onUpdate": "no action"
|
3199
2912
|
},
|
@@ -3201,12 +2914,8 @@
|
|
3201
2914
|
"name": "files_to_sessions_session_id_sessions_id_fk",
|
3202
2915
|
"tableFrom": "files_to_sessions",
|
3203
2916
|
"tableTo": "sessions",
|
3204
|
-
"columnsFrom": [
|
3205
|
-
|
3206
|
-
],
|
3207
|
-
"columnsTo": [
|
3208
|
-
"id"
|
3209
|
-
],
|
2917
|
+
"columnsFrom": ["session_id"],
|
2918
|
+
"columnsTo": ["id"],
|
3210
2919
|
"onDelete": "cascade",
|
3211
2920
|
"onUpdate": "no action"
|
3212
2921
|
}
|
@@ -3214,10 +2923,7 @@
|
|
3214
2923
|
"compositePrimaryKeys": {
|
3215
2924
|
"files_to_sessions_file_id_session_id_pk": {
|
3216
2925
|
"name": "files_to_sessions_file_id_session_id_pk",
|
3217
|
-
"columns": [
|
3218
|
-
"file_id",
|
3219
|
-
"session_id"
|
3220
|
-
]
|
2926
|
+
"columns": ["file_id", "session_id"]
|
3221
2927
|
}
|
3222
2928
|
},
|
3223
2929
|
"uniqueConstraints": {},
|
@@ -3287,12 +2993,8 @@
|
|
3287
2993
|
"name": "session_groups_user_id_users_id_fk",
|
3288
2994
|
"tableFrom": "session_groups",
|
3289
2995
|
"tableTo": "users",
|
3290
|
-
"columnsFrom": [
|
3291
|
-
|
3292
|
-
],
|
3293
|
-
"columnsTo": [
|
3294
|
-
"id"
|
3295
|
-
],
|
2996
|
+
"columnsFrom": ["user_id"],
|
2997
|
+
"columnsTo": ["id"],
|
3296
2998
|
"onDelete": "cascade",
|
3297
2999
|
"onUpdate": "no action"
|
3298
3000
|
}
|
@@ -3302,10 +3004,7 @@
|
|
3302
3004
|
"session_group_client_id_user_unique": {
|
3303
3005
|
"name": "session_group_client_id_user_unique",
|
3304
3006
|
"nullsNotDistinct": false,
|
3305
|
-
"columns": [
|
3306
|
-
"client_id",
|
3307
|
-
"user_id"
|
3308
|
-
]
|
3007
|
+
"columns": ["client_id", "user_id"]
|
3309
3008
|
}
|
3310
3009
|
},
|
3311
3010
|
"policies": {},
|
@@ -3434,12 +3133,8 @@
|
|
3434
3133
|
"name": "sessions_user_id_users_id_fk",
|
3435
3134
|
"tableFrom": "sessions",
|
3436
3135
|
"tableTo": "users",
|
3437
|
-
"columnsFrom": [
|
3438
|
-
|
3439
|
-
],
|
3440
|
-
"columnsTo": [
|
3441
|
-
"id"
|
3442
|
-
],
|
3136
|
+
"columnsFrom": ["user_id"],
|
3137
|
+
"columnsTo": ["id"],
|
3443
3138
|
"onDelete": "cascade",
|
3444
3139
|
"onUpdate": "no action"
|
3445
3140
|
},
|
@@ -3447,12 +3142,8 @@
|
|
3447
3142
|
"name": "sessions_group_id_session_groups_id_fk",
|
3448
3143
|
"tableFrom": "sessions",
|
3449
3144
|
"tableTo": "session_groups",
|
3450
|
-
"columnsFrom": [
|
3451
|
-
|
3452
|
-
],
|
3453
|
-
"columnsTo": [
|
3454
|
-
"id"
|
3455
|
-
],
|
3145
|
+
"columnsFrom": ["group_id"],
|
3146
|
+
"columnsTo": ["id"],
|
3456
3147
|
"onDelete": "set null",
|
3457
3148
|
"onUpdate": "no action"
|
3458
3149
|
}
|
@@ -3462,10 +3153,7 @@
|
|
3462
3153
|
"sessions_client_id_user_id_unique": {
|
3463
3154
|
"name": "sessions_client_id_user_id_unique",
|
3464
3155
|
"nullsNotDistinct": false,
|
3465
|
-
"columns": [
|
3466
|
-
"client_id",
|
3467
|
-
"user_id"
|
3468
|
-
]
|
3156
|
+
"columns": ["client_id", "user_id"]
|
3469
3157
|
}
|
3470
3158
|
},
|
3471
3159
|
"policies": {},
|
@@ -3560,12 +3248,8 @@
|
|
3560
3248
|
"name": "threads_topic_id_topics_id_fk",
|
3561
3249
|
"tableFrom": "threads",
|
3562
3250
|
"tableTo": "topics",
|
3563
|
-
"columnsFrom": [
|
3564
|
-
|
3565
|
-
],
|
3566
|
-
"columnsTo": [
|
3567
|
-
"id"
|
3568
|
-
],
|
3251
|
+
"columnsFrom": ["topic_id"],
|
3252
|
+
"columnsTo": ["id"],
|
3569
3253
|
"onDelete": "cascade",
|
3570
3254
|
"onUpdate": "no action"
|
3571
3255
|
},
|
@@ -3573,12 +3257,8 @@
|
|
3573
3257
|
"name": "threads_parent_thread_id_threads_id_fk",
|
3574
3258
|
"tableFrom": "threads",
|
3575
3259
|
"tableTo": "threads",
|
3576
|
-
"columnsFrom": [
|
3577
|
-
|
3578
|
-
],
|
3579
|
-
"columnsTo": [
|
3580
|
-
"id"
|
3581
|
-
],
|
3260
|
+
"columnsFrom": ["parent_thread_id"],
|
3261
|
+
"columnsTo": ["id"],
|
3582
3262
|
"onDelete": "set null",
|
3583
3263
|
"onUpdate": "no action"
|
3584
3264
|
},
|
@@ -3586,12 +3266,8 @@
|
|
3586
3266
|
"name": "threads_user_id_users_id_fk",
|
3587
3267
|
"tableFrom": "threads",
|
3588
3268
|
"tableTo": "users",
|
3589
|
-
"columnsFrom": [
|
3590
|
-
|
3591
|
-
],
|
3592
|
-
"columnsTo": [
|
3593
|
-
"id"
|
3594
|
-
],
|
3269
|
+
"columnsFrom": ["user_id"],
|
3270
|
+
"columnsTo": ["id"],
|
3595
3271
|
"onDelete": "cascade",
|
3596
3272
|
"onUpdate": "no action"
|
3597
3273
|
}
|
@@ -3683,12 +3359,8 @@
|
|
3683
3359
|
"name": "topics_session_id_sessions_id_fk",
|
3684
3360
|
"tableFrom": "topics",
|
3685
3361
|
"tableTo": "sessions",
|
3686
|
-
"columnsFrom": [
|
3687
|
-
|
3688
|
-
],
|
3689
|
-
"columnsTo": [
|
3690
|
-
"id"
|
3691
|
-
],
|
3362
|
+
"columnsFrom": ["session_id"],
|
3363
|
+
"columnsTo": ["id"],
|
3692
3364
|
"onDelete": "cascade",
|
3693
3365
|
"onUpdate": "no action"
|
3694
3366
|
},
|
@@ -3696,12 +3368,8 @@
|
|
3696
3368
|
"name": "topics_user_id_users_id_fk",
|
3697
3369
|
"tableFrom": "topics",
|
3698
3370
|
"tableTo": "users",
|
3699
|
-
"columnsFrom": [
|
3700
|
-
|
3701
|
-
],
|
3702
|
-
"columnsTo": [
|
3703
|
-
"id"
|
3704
|
-
],
|
3371
|
+
"columnsFrom": ["user_id"],
|
3372
|
+
"columnsTo": ["id"],
|
3705
3373
|
"onDelete": "cascade",
|
3706
3374
|
"onUpdate": "no action"
|
3707
3375
|
}
|
@@ -3711,10 +3379,7 @@
|
|
3711
3379
|
"topic_client_id_user_id_unique": {
|
3712
3380
|
"name": "topic_client_id_user_id_unique",
|
3713
3381
|
"nullsNotDistinct": false,
|
3714
|
-
"columns": [
|
3715
|
-
"client_id",
|
3716
|
-
"user_id"
|
3717
|
-
]
|
3382
|
+
"columns": ["client_id", "user_id"]
|
3718
3383
|
}
|
3719
3384
|
},
|
3720
3385
|
"policies": {},
|
@@ -3789,12 +3454,8 @@
|
|
3789
3454
|
"name": "user_installed_plugins_user_id_users_id_fk",
|
3790
3455
|
"tableFrom": "user_installed_plugins",
|
3791
3456
|
"tableTo": "users",
|
3792
|
-
"columnsFrom": [
|
3793
|
-
|
3794
|
-
],
|
3795
|
-
"columnsTo": [
|
3796
|
-
"id"
|
3797
|
-
],
|
3457
|
+
"columnsFrom": ["user_id"],
|
3458
|
+
"columnsTo": ["id"],
|
3798
3459
|
"onDelete": "cascade",
|
3799
3460
|
"onUpdate": "no action"
|
3800
3461
|
}
|
@@ -3802,10 +3463,7 @@
|
|
3802
3463
|
"compositePrimaryKeys": {
|
3803
3464
|
"user_installed_plugins_user_id_identifier_pk": {
|
3804
3465
|
"name": "user_installed_plugins_user_id_identifier_pk",
|
3805
|
-
"columns": [
|
3806
|
-
"user_id",
|
3807
|
-
"identifier"
|
3808
|
-
]
|
3466
|
+
"columns": ["user_id", "identifier"]
|
3809
3467
|
}
|
3810
3468
|
},
|
3811
3469
|
"uniqueConstraints": {},
|
@@ -3872,12 +3530,8 @@
|
|
3872
3530
|
"name": "user_settings_id_users_id_fk",
|
3873
3531
|
"tableFrom": "user_settings",
|
3874
3532
|
"tableTo": "users",
|
3875
|
-
"columnsFrom": [
|
3876
|
-
|
3877
|
-
],
|
3878
|
-
"columnsTo": [
|
3879
|
-
"id"
|
3880
|
-
],
|
3533
|
+
"columnsFrom": ["id"],
|
3534
|
+
"columnsTo": ["id"],
|
3881
3535
|
"onDelete": "cascade",
|
3882
3536
|
"onUpdate": "no action"
|
3883
3537
|
}
|
@@ -3994,9 +3648,7 @@
|
|
3994
3648
|
"users_username_unique": {
|
3995
3649
|
"name": "users_username_unique",
|
3996
3650
|
"nullsNotDistinct": false,
|
3997
|
-
"columns": [
|
3998
|
-
"username"
|
3999
|
-
]
|
3651
|
+
"columns": ["username"]
|
4000
3652
|
}
|
4001
3653
|
},
|
4002
3654
|
"policies": {},
|
@@ -4004,15 +3656,6 @@
|
|
4004
3656
|
"isRLSEnabled": false
|
4005
3657
|
}
|
4006
3658
|
},
|
4007
|
-
"
|
4008
|
-
"
|
4009
|
-
|
4010
|
-
"roles": {},
|
4011
|
-
"policies": {},
|
4012
|
-
"views": {},
|
4013
|
-
"_meta": {
|
4014
|
-
"columns": {},
|
4015
|
-
"schemas": {},
|
4016
|
-
"tables": {}
|
4017
|
-
}
|
4018
|
-
}
|
3659
|
+
"version": "7",
|
3660
|
+
"views": {}
|
3661
|
+
}
|