@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": "e5491c42-8e2f-4a2d-8612-25e7052d2055",
|
10
|
+
"policies": {},
|
3
11
|
"prevId": "c1005309-ebae-4f0b-b6a3-5786f71961db",
|
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
|
}
|
@@ -1703,12 +1574,8 @@
|
|
1703
1574
|
"name": "messages_user_id_users_id_fk",
|
1704
1575
|
"tableFrom": "messages",
|
1705
1576
|
"tableTo": "users",
|
1706
|
-
"columnsFrom": [
|
1707
|
-
|
1708
|
-
],
|
1709
|
-
"columnsTo": [
|
1710
|
-
"id"
|
1711
|
-
],
|
1577
|
+
"columnsFrom": ["user_id"],
|
1578
|
+
"columnsTo": ["id"],
|
1712
1579
|
"onDelete": "cascade",
|
1713
1580
|
"onUpdate": "no action"
|
1714
1581
|
},
|
@@ -1716,12 +1583,8 @@
|
|
1716
1583
|
"name": "messages_session_id_sessions_id_fk",
|
1717
1584
|
"tableFrom": "messages",
|
1718
1585
|
"tableTo": "sessions",
|
1719
|
-
"columnsFrom": [
|
1720
|
-
|
1721
|
-
],
|
1722
|
-
"columnsTo": [
|
1723
|
-
"id"
|
1724
|
-
],
|
1586
|
+
"columnsFrom": ["session_id"],
|
1587
|
+
"columnsTo": ["id"],
|
1725
1588
|
"onDelete": "cascade",
|
1726
1589
|
"onUpdate": "no action"
|
1727
1590
|
},
|
@@ -1729,12 +1592,8 @@
|
|
1729
1592
|
"name": "messages_topic_id_topics_id_fk",
|
1730
1593
|
"tableFrom": "messages",
|
1731
1594
|
"tableTo": "topics",
|
1732
|
-
"columnsFrom": [
|
1733
|
-
|
1734
|
-
],
|
1735
|
-
"columnsTo": [
|
1736
|
-
"id"
|
1737
|
-
],
|
1595
|
+
"columnsFrom": ["topic_id"],
|
1596
|
+
"columnsTo": ["id"],
|
1738
1597
|
"onDelete": "cascade",
|
1739
1598
|
"onUpdate": "no action"
|
1740
1599
|
},
|
@@ -1742,12 +1601,8 @@
|
|
1742
1601
|
"name": "messages_thread_id_threads_id_fk",
|
1743
1602
|
"tableFrom": "messages",
|
1744
1603
|
"tableTo": "threads",
|
1745
|
-
"columnsFrom": [
|
1746
|
-
|
1747
|
-
],
|
1748
|
-
"columnsTo": [
|
1749
|
-
"id"
|
1750
|
-
],
|
1604
|
+
"columnsFrom": ["thread_id"],
|
1605
|
+
"columnsTo": ["id"],
|
1751
1606
|
"onDelete": "cascade",
|
1752
1607
|
"onUpdate": "no action"
|
1753
1608
|
},
|
@@ -1755,12 +1610,8 @@
|
|
1755
1610
|
"name": "messages_parent_id_messages_id_fk",
|
1756
1611
|
"tableFrom": "messages",
|
1757
1612
|
"tableTo": "messages",
|
1758
|
-
"columnsFrom": [
|
1759
|
-
|
1760
|
-
],
|
1761
|
-
"columnsTo": [
|
1762
|
-
"id"
|
1763
|
-
],
|
1613
|
+
"columnsFrom": ["parent_id"],
|
1614
|
+
"columnsTo": ["id"],
|
1764
1615
|
"onDelete": "set null",
|
1765
1616
|
"onUpdate": "no action"
|
1766
1617
|
},
|
@@ -1768,12 +1619,8 @@
|
|
1768
1619
|
"name": "messages_quota_id_messages_id_fk",
|
1769
1620
|
"tableFrom": "messages",
|
1770
1621
|
"tableTo": "messages",
|
1771
|
-
"columnsFrom": [
|
1772
|
-
|
1773
|
-
],
|
1774
|
-
"columnsTo": [
|
1775
|
-
"id"
|
1776
|
-
],
|
1622
|
+
"columnsFrom": ["quota_id"],
|
1623
|
+
"columnsTo": ["id"],
|
1777
1624
|
"onDelete": "set null",
|
1778
1625
|
"onUpdate": "no action"
|
1779
1626
|
},
|
@@ -1781,12 +1628,8 @@
|
|
1781
1628
|
"name": "messages_agent_id_agents_id_fk",
|
1782
1629
|
"tableFrom": "messages",
|
1783
1630
|
"tableTo": "agents",
|
1784
|
-
"columnsFrom": [
|
1785
|
-
|
1786
|
-
],
|
1787
|
-
"columnsTo": [
|
1788
|
-
"id"
|
1789
|
-
],
|
1631
|
+
"columnsFrom": ["agent_id"],
|
1632
|
+
"columnsTo": ["id"],
|
1790
1633
|
"onDelete": "set null",
|
1791
1634
|
"onUpdate": "no action"
|
1792
1635
|
}
|
@@ -1820,12 +1663,8 @@
|
|
1820
1663
|
"name": "messages_files_file_id_files_id_fk",
|
1821
1664
|
"tableFrom": "messages_files",
|
1822
1665
|
"tableTo": "files",
|
1823
|
-
"columnsFrom": [
|
1824
|
-
|
1825
|
-
],
|
1826
|
-
"columnsTo": [
|
1827
|
-
"id"
|
1828
|
-
],
|
1666
|
+
"columnsFrom": ["file_id"],
|
1667
|
+
"columnsTo": ["id"],
|
1829
1668
|
"onDelete": "cascade",
|
1830
1669
|
"onUpdate": "no action"
|
1831
1670
|
},
|
@@ -1833,12 +1672,8 @@
|
|
1833
1672
|
"name": "messages_files_message_id_messages_id_fk",
|
1834
1673
|
"tableFrom": "messages_files",
|
1835
1674
|
"tableTo": "messages",
|
1836
|
-
"columnsFrom": [
|
1837
|
-
|
1838
|
-
],
|
1839
|
-
"columnsTo": [
|
1840
|
-
"id"
|
1841
|
-
],
|
1675
|
+
"columnsFrom": ["message_id"],
|
1676
|
+
"columnsTo": ["id"],
|
1842
1677
|
"onDelete": "cascade",
|
1843
1678
|
"onUpdate": "no action"
|
1844
1679
|
}
|
@@ -1846,10 +1681,7 @@
|
|
1846
1681
|
"compositePrimaryKeys": {
|
1847
1682
|
"messages_files_file_id_message_id_pk": {
|
1848
1683
|
"name": "messages_files_file_id_message_id_pk",
|
1849
|
-
"columns": [
|
1850
|
-
"file_id",
|
1851
|
-
"message_id"
|
1852
|
-
]
|
1684
|
+
"columns": ["file_id", "message_id"]
|
1853
1685
|
}
|
1854
1686
|
},
|
1855
1687
|
"uniqueConstraints": {},
|
@@ -1934,12 +1766,8 @@
|
|
1934
1766
|
"name": "nextauth_accounts_userId_users_id_fk",
|
1935
1767
|
"tableFrom": "nextauth_accounts",
|
1936
1768
|
"tableTo": "users",
|
1937
|
-
"columnsFrom": [
|
1938
|
-
|
1939
|
-
],
|
1940
|
-
"columnsTo": [
|
1941
|
-
"id"
|
1942
|
-
],
|
1769
|
+
"columnsFrom": ["userId"],
|
1770
|
+
"columnsTo": ["id"],
|
1943
1771
|
"onDelete": "cascade",
|
1944
1772
|
"onUpdate": "no action"
|
1945
1773
|
}
|
@@ -1947,10 +1775,7 @@
|
|
1947
1775
|
"compositePrimaryKeys": {
|
1948
1776
|
"nextauth_accounts_provider_providerAccountId_pk": {
|
1949
1777
|
"name": "nextauth_accounts_provider_providerAccountId_pk",
|
1950
|
-
"columns": [
|
1951
|
-
"provider",
|
1952
|
-
"providerAccountId"
|
1953
|
-
]
|
1778
|
+
"columns": ["provider", "providerAccountId"]
|
1954
1779
|
}
|
1955
1780
|
},
|
1956
1781
|
"uniqueConstraints": {},
|
@@ -2017,12 +1842,8 @@
|
|
2017
1842
|
"name": "nextauth_authenticators_userId_users_id_fk",
|
2018
1843
|
"tableFrom": "nextauth_authenticators",
|
2019
1844
|
"tableTo": "users",
|
2020
|
-
"columnsFrom": [
|
2021
|
-
|
2022
|
-
],
|
2023
|
-
"columnsTo": [
|
2024
|
-
"id"
|
2025
|
-
],
|
1845
|
+
"columnsFrom": ["userId"],
|
1846
|
+
"columnsTo": ["id"],
|
2026
1847
|
"onDelete": "cascade",
|
2027
1848
|
"onUpdate": "no action"
|
2028
1849
|
}
|
@@ -2030,19 +1851,14 @@
|
|
2030
1851
|
"compositePrimaryKeys": {
|
2031
1852
|
"nextauth_authenticators_userId_credentialID_pk": {
|
2032
1853
|
"name": "nextauth_authenticators_userId_credentialID_pk",
|
2033
|
-
"columns": [
|
2034
|
-
"userId",
|
2035
|
-
"credentialID"
|
2036
|
-
]
|
1854
|
+
"columns": ["userId", "credentialID"]
|
2037
1855
|
}
|
2038
1856
|
},
|
2039
1857
|
"uniqueConstraints": {
|
2040
1858
|
"nextauth_authenticators_credentialID_unique": {
|
2041
1859
|
"name": "nextauth_authenticators_credentialID_unique",
|
2042
1860
|
"nullsNotDistinct": false,
|
2043
|
-
"columns": [
|
2044
|
-
"credentialID"
|
2045
|
-
]
|
1861
|
+
"columns": ["credentialID"]
|
2046
1862
|
}
|
2047
1863
|
},
|
2048
1864
|
"policies": {},
|
@@ -2078,12 +1894,8 @@
|
|
2078
1894
|
"name": "nextauth_sessions_userId_users_id_fk",
|
2079
1895
|
"tableFrom": "nextauth_sessions",
|
2080
1896
|
"tableTo": "users",
|
2081
|
-
"columnsFrom": [
|
2082
|
-
|
2083
|
-
],
|
2084
|
-
"columnsTo": [
|
2085
|
-
"id"
|
2086
|
-
],
|
1897
|
+
"columnsFrom": ["userId"],
|
1898
|
+
"columnsTo": ["id"],
|
2087
1899
|
"onDelete": "cascade",
|
2088
1900
|
"onUpdate": "no action"
|
2089
1901
|
}
|
@@ -2122,10 +1934,7 @@
|
|
2122
1934
|
"compositePrimaryKeys": {
|
2123
1935
|
"nextauth_verificationtokens_identifier_token_pk": {
|
2124
1936
|
"name": "nextauth_verificationtokens_identifier_token_pk",
|
2125
|
-
"columns": [
|
2126
|
-
"identifier",
|
2127
|
-
"token"
|
2128
|
-
]
|
1937
|
+
"columns": ["identifier", "token"]
|
2129
1938
|
}
|
2130
1939
|
},
|
2131
1940
|
"uniqueConstraints": {},
|
@@ -2208,12 +2017,8 @@
|
|
2208
2017
|
"name": "chunks_user_id_users_id_fk",
|
2209
2018
|
"tableFrom": "chunks",
|
2210
2019
|
"tableTo": "users",
|
2211
|
-
"columnsFrom": [
|
2212
|
-
|
2213
|
-
],
|
2214
|
-
"columnsTo": [
|
2215
|
-
"id"
|
2216
|
-
],
|
2020
|
+
"columnsFrom": ["user_id"],
|
2021
|
+
"columnsTo": ["id"],
|
2217
2022
|
"onDelete": "cascade",
|
2218
2023
|
"onUpdate": "no action"
|
2219
2024
|
}
|
@@ -2266,12 +2071,8 @@
|
|
2266
2071
|
"name": "embeddings_chunk_id_chunks_id_fk",
|
2267
2072
|
"tableFrom": "embeddings",
|
2268
2073
|
"tableTo": "chunks",
|
2269
|
-
"columnsFrom": [
|
2270
|
-
|
2271
|
-
],
|
2272
|
-
"columnsTo": [
|
2273
|
-
"id"
|
2274
|
-
],
|
2074
|
+
"columnsFrom": ["chunk_id"],
|
2075
|
+
"columnsTo": ["id"],
|
2275
2076
|
"onDelete": "cascade",
|
2276
2077
|
"onUpdate": "no action"
|
2277
2078
|
},
|
@@ -2279,12 +2080,8 @@
|
|
2279
2080
|
"name": "embeddings_user_id_users_id_fk",
|
2280
2081
|
"tableFrom": "embeddings",
|
2281
2082
|
"tableTo": "users",
|
2282
|
-
"columnsFrom": [
|
2283
|
-
|
2284
|
-
],
|
2285
|
-
"columnsTo": [
|
2286
|
-
"id"
|
2287
|
-
],
|
2083
|
+
"columnsFrom": ["user_id"],
|
2084
|
+
"columnsTo": ["id"],
|
2288
2085
|
"onDelete": "cascade",
|
2289
2086
|
"onUpdate": "no action"
|
2290
2087
|
}
|
@@ -2294,9 +2091,7 @@
|
|
2294
2091
|
"embeddings_chunk_id_unique": {
|
2295
2092
|
"name": "embeddings_chunk_id_unique",
|
2296
2093
|
"nullsNotDistinct": false,
|
2297
|
-
"columns": [
|
2298
|
-
"chunk_id"
|
2299
|
-
]
|
2094
|
+
"columns": ["chunk_id"]
|
2300
2095
|
}
|
2301
2096
|
},
|
2302
2097
|
"policies": {},
|
@@ -2390,12 +2185,8 @@
|
|
2390
2185
|
"name": "unstructured_chunks_composite_id_chunks_id_fk",
|
2391
2186
|
"tableFrom": "unstructured_chunks",
|
2392
2187
|
"tableTo": "chunks",
|
2393
|
-
"columnsFrom": [
|
2394
|
-
|
2395
|
-
],
|
2396
|
-
"columnsTo": [
|
2397
|
-
"id"
|
2398
|
-
],
|
2188
|
+
"columnsFrom": ["composite_id"],
|
2189
|
+
"columnsTo": ["id"],
|
2399
2190
|
"onDelete": "cascade",
|
2400
2191
|
"onUpdate": "no action"
|
2401
2192
|
},
|
@@ -2403,12 +2194,8 @@
|
|
2403
2194
|
"name": "unstructured_chunks_user_id_users_id_fk",
|
2404
2195
|
"tableFrom": "unstructured_chunks",
|
2405
2196
|
"tableTo": "users",
|
2406
|
-
"columnsFrom": [
|
2407
|
-
|
2408
|
-
],
|
2409
|
-
"columnsTo": [
|
2410
|
-
"id"
|
2411
|
-
],
|
2197
|
+
"columnsFrom": ["user_id"],
|
2198
|
+
"columnsTo": ["id"],
|
2412
2199
|
"onDelete": "cascade",
|
2413
2200
|
"onUpdate": "no action"
|
2414
2201
|
},
|
@@ -2416,12 +2203,8 @@
|
|
2416
2203
|
"name": "unstructured_chunks_file_id_files_id_fk",
|
2417
2204
|
"tableFrom": "unstructured_chunks",
|
2418
2205
|
"tableTo": "files",
|
2419
|
-
"columnsFrom": [
|
2420
|
-
|
2421
|
-
],
|
2422
|
-
"columnsTo": [
|
2423
|
-
"id"
|
2424
|
-
],
|
2206
|
+
"columnsFrom": ["file_id"],
|
2207
|
+
"columnsTo": ["id"],
|
2425
2208
|
"onDelete": "cascade",
|
2426
2209
|
"onUpdate": "no action"
|
2427
2210
|
}
|
@@ -2517,12 +2300,8 @@
|
|
2517
2300
|
"name": "rag_eval_dataset_records_dataset_id_rag_eval_datasets_id_fk",
|
2518
2301
|
"tableFrom": "rag_eval_dataset_records",
|
2519
2302
|
"tableTo": "rag_eval_datasets",
|
2520
|
-
"columnsFrom": [
|
2521
|
-
|
2522
|
-
],
|
2523
|
-
"columnsTo": [
|
2524
|
-
"id"
|
2525
|
-
],
|
2303
|
+
"columnsFrom": ["dataset_id"],
|
2304
|
+
"columnsTo": ["id"],
|
2526
2305
|
"onDelete": "cascade",
|
2527
2306
|
"onUpdate": "no action"
|
2528
2307
|
},
|
@@ -2530,12 +2309,8 @@
|
|
2530
2309
|
"name": "rag_eval_dataset_records_user_id_users_id_fk",
|
2531
2310
|
"tableFrom": "rag_eval_dataset_records",
|
2532
2311
|
"tableTo": "users",
|
2533
|
-
"columnsFrom": [
|
2534
|
-
|
2535
|
-
],
|
2536
|
-
"columnsTo": [
|
2537
|
-
"id"
|
2538
|
-
],
|
2312
|
+
"columnsFrom": ["user_id"],
|
2313
|
+
"columnsTo": ["id"],
|
2539
2314
|
"onDelete": "cascade",
|
2540
2315
|
"onUpdate": "no action"
|
2541
2316
|
}
|
@@ -2619,12 +2394,8 @@
|
|
2619
2394
|
"name": "rag_eval_datasets_knowledge_base_id_knowledge_bases_id_fk",
|
2620
2395
|
"tableFrom": "rag_eval_datasets",
|
2621
2396
|
"tableTo": "knowledge_bases",
|
2622
|
-
"columnsFrom": [
|
2623
|
-
|
2624
|
-
],
|
2625
|
-
"columnsTo": [
|
2626
|
-
"id"
|
2627
|
-
],
|
2397
|
+
"columnsFrom": ["knowledge_base_id"],
|
2398
|
+
"columnsTo": ["id"],
|
2628
2399
|
"onDelete": "cascade",
|
2629
2400
|
"onUpdate": "no action"
|
2630
2401
|
},
|
@@ -2632,12 +2403,8 @@
|
|
2632
2403
|
"name": "rag_eval_datasets_user_id_users_id_fk",
|
2633
2404
|
"tableFrom": "rag_eval_datasets",
|
2634
2405
|
"tableTo": "users",
|
2635
|
-
"columnsFrom": [
|
2636
|
-
|
2637
|
-
],
|
2638
|
-
"columnsTo": [
|
2639
|
-
"id"
|
2640
|
-
],
|
2406
|
+
"columnsFrom": ["user_id"],
|
2407
|
+
"columnsTo": ["id"],
|
2641
2408
|
"onDelete": "cascade",
|
2642
2409
|
"onUpdate": "no action"
|
2643
2410
|
}
|
@@ -2757,12 +2524,8 @@
|
|
2757
2524
|
"name": "rag_eval_evaluations_dataset_id_rag_eval_datasets_id_fk",
|
2758
2525
|
"tableFrom": "rag_eval_evaluations",
|
2759
2526
|
"tableTo": "rag_eval_datasets",
|
2760
|
-
"columnsFrom": [
|
2761
|
-
|
2762
|
-
],
|
2763
|
-
"columnsTo": [
|
2764
|
-
"id"
|
2765
|
-
],
|
2527
|
+
"columnsFrom": ["dataset_id"],
|
2528
|
+
"columnsTo": ["id"],
|
2766
2529
|
"onDelete": "cascade",
|
2767
2530
|
"onUpdate": "no action"
|
2768
2531
|
},
|
@@ -2770,12 +2533,8 @@
|
|
2770
2533
|
"name": "rag_eval_evaluations_knowledge_base_id_knowledge_bases_id_fk",
|
2771
2534
|
"tableFrom": "rag_eval_evaluations",
|
2772
2535
|
"tableTo": "knowledge_bases",
|
2773
|
-
"columnsFrom": [
|
2774
|
-
|
2775
|
-
],
|
2776
|
-
"columnsTo": [
|
2777
|
-
"id"
|
2778
|
-
],
|
2536
|
+
"columnsFrom": ["knowledge_base_id"],
|
2537
|
+
"columnsTo": ["id"],
|
2779
2538
|
"onDelete": "cascade",
|
2780
2539
|
"onUpdate": "no action"
|
2781
2540
|
},
|
@@ -2783,12 +2542,8 @@
|
|
2783
2542
|
"name": "rag_eval_evaluations_user_id_users_id_fk",
|
2784
2543
|
"tableFrom": "rag_eval_evaluations",
|
2785
2544
|
"tableTo": "users",
|
2786
|
-
"columnsFrom": [
|
2787
|
-
|
2788
|
-
],
|
2789
|
-
"columnsTo": [
|
2790
|
-
"id"
|
2791
|
-
],
|
2545
|
+
"columnsFrom": ["user_id"],
|
2546
|
+
"columnsTo": ["id"],
|
2792
2547
|
"onDelete": "cascade",
|
2793
2548
|
"onUpdate": "no action"
|
2794
2549
|
}
|
@@ -2926,12 +2681,8 @@
|
|
2926
2681
|
"name": "rag_eval_evaluation_records_question_embedding_id_embeddings_id_fk",
|
2927
2682
|
"tableFrom": "rag_eval_evaluation_records",
|
2928
2683
|
"tableTo": "embeddings",
|
2929
|
-
"columnsFrom": [
|
2930
|
-
|
2931
|
-
],
|
2932
|
-
"columnsTo": [
|
2933
|
-
"id"
|
2934
|
-
],
|
2684
|
+
"columnsFrom": ["question_embedding_id"],
|
2685
|
+
"columnsTo": ["id"],
|
2935
2686
|
"onDelete": "set null",
|
2936
2687
|
"onUpdate": "no action"
|
2937
2688
|
},
|
@@ -2939,12 +2690,8 @@
|
|
2939
2690
|
"name": "rag_eval_evaluation_records_dataset_record_id_rag_eval_dataset_records_id_fk",
|
2940
2691
|
"tableFrom": "rag_eval_evaluation_records",
|
2941
2692
|
"tableTo": "rag_eval_dataset_records",
|
2942
|
-
"columnsFrom": [
|
2943
|
-
|
2944
|
-
],
|
2945
|
-
"columnsTo": [
|
2946
|
-
"id"
|
2947
|
-
],
|
2693
|
+
"columnsFrom": ["dataset_record_id"],
|
2694
|
+
"columnsTo": ["id"],
|
2948
2695
|
"onDelete": "cascade",
|
2949
2696
|
"onUpdate": "no action"
|
2950
2697
|
},
|
@@ -2952,12 +2699,8 @@
|
|
2952
2699
|
"name": "rag_eval_evaluation_records_evaluation_id_rag_eval_evaluations_id_fk",
|
2953
2700
|
"tableFrom": "rag_eval_evaluation_records",
|
2954
2701
|
"tableTo": "rag_eval_evaluations",
|
2955
|
-
"columnsFrom": [
|
2956
|
-
|
2957
|
-
],
|
2958
|
-
"columnsTo": [
|
2959
|
-
"id"
|
2960
|
-
],
|
2702
|
+
"columnsFrom": ["evaluation_id"],
|
2703
|
+
"columnsTo": ["id"],
|
2961
2704
|
"onDelete": "cascade",
|
2962
2705
|
"onUpdate": "no action"
|
2963
2706
|
},
|
@@ -2965,12 +2708,8 @@
|
|
2965
2708
|
"name": "rag_eval_evaluation_records_user_id_users_id_fk",
|
2966
2709
|
"tableFrom": "rag_eval_evaluation_records",
|
2967
2710
|
"tableTo": "users",
|
2968
|
-
"columnsFrom": [
|
2969
|
-
|
2970
|
-
],
|
2971
|
-
"columnsTo": [
|
2972
|
-
"id"
|
2973
|
-
],
|
2711
|
+
"columnsFrom": ["user_id"],
|
2712
|
+
"columnsTo": ["id"],
|
2974
2713
|
"onDelete": "cascade",
|
2975
2714
|
"onUpdate": "no action"
|
2976
2715
|
}
|
@@ -3004,12 +2743,8 @@
|
|
3004
2743
|
"name": "agents_to_sessions_agent_id_agents_id_fk",
|
3005
2744
|
"tableFrom": "agents_to_sessions",
|
3006
2745
|
"tableTo": "agents",
|
3007
|
-
"columnsFrom": [
|
3008
|
-
|
3009
|
-
],
|
3010
|
-
"columnsTo": [
|
3011
|
-
"id"
|
3012
|
-
],
|
2746
|
+
"columnsFrom": ["agent_id"],
|
2747
|
+
"columnsTo": ["id"],
|
3013
2748
|
"onDelete": "cascade",
|
3014
2749
|
"onUpdate": "no action"
|
3015
2750
|
},
|
@@ -3017,12 +2752,8 @@
|
|
3017
2752
|
"name": "agents_to_sessions_session_id_sessions_id_fk",
|
3018
2753
|
"tableFrom": "agents_to_sessions",
|
3019
2754
|
"tableTo": "sessions",
|
3020
|
-
"columnsFrom": [
|
3021
|
-
|
3022
|
-
],
|
3023
|
-
"columnsTo": [
|
3024
|
-
"id"
|
3025
|
-
],
|
2755
|
+
"columnsFrom": ["session_id"],
|
2756
|
+
"columnsTo": ["id"],
|
3026
2757
|
"onDelete": "cascade",
|
3027
2758
|
"onUpdate": "no action"
|
3028
2759
|
}
|
@@ -3030,10 +2761,7 @@
|
|
3030
2761
|
"compositePrimaryKeys": {
|
3031
2762
|
"agents_to_sessions_agent_id_session_id_pk": {
|
3032
2763
|
"name": "agents_to_sessions_agent_id_session_id_pk",
|
3033
|
-
"columns": [
|
3034
|
-
"agent_id",
|
3035
|
-
"session_id"
|
3036
|
-
]
|
2764
|
+
"columns": ["agent_id", "session_id"]
|
3037
2765
|
}
|
3038
2766
|
},
|
3039
2767
|
"uniqueConstraints": {},
|
@@ -3071,12 +2799,8 @@
|
|
3071
2799
|
"name": "file_chunks_file_id_files_id_fk",
|
3072
2800
|
"tableFrom": "file_chunks",
|
3073
2801
|
"tableTo": "files",
|
3074
|
-
"columnsFrom": [
|
3075
|
-
|
3076
|
-
],
|
3077
|
-
"columnsTo": [
|
3078
|
-
"id"
|
3079
|
-
],
|
2802
|
+
"columnsFrom": ["file_id"],
|
2803
|
+
"columnsTo": ["id"],
|
3080
2804
|
"onDelete": "cascade",
|
3081
2805
|
"onUpdate": "no action"
|
3082
2806
|
},
|
@@ -3084,12 +2808,8 @@
|
|
3084
2808
|
"name": "file_chunks_chunk_id_chunks_id_fk",
|
3085
2809
|
"tableFrom": "file_chunks",
|
3086
2810
|
"tableTo": "chunks",
|
3087
|
-
"columnsFrom": [
|
3088
|
-
|
3089
|
-
],
|
3090
|
-
"columnsTo": [
|
3091
|
-
"id"
|
3092
|
-
],
|
2811
|
+
"columnsFrom": ["chunk_id"],
|
2812
|
+
"columnsTo": ["id"],
|
3093
2813
|
"onDelete": "cascade",
|
3094
2814
|
"onUpdate": "no action"
|
3095
2815
|
}
|
@@ -3097,10 +2817,7 @@
|
|
3097
2817
|
"compositePrimaryKeys": {
|
3098
2818
|
"file_chunks_file_id_chunk_id_pk": {
|
3099
2819
|
"name": "file_chunks_file_id_chunk_id_pk",
|
3100
|
-
"columns": [
|
3101
|
-
"file_id",
|
3102
|
-
"chunk_id"
|
3103
|
-
]
|
2820
|
+
"columns": ["file_id", "chunk_id"]
|
3104
2821
|
}
|
3105
2822
|
},
|
3106
2823
|
"uniqueConstraints": {},
|
@@ -3131,12 +2848,8 @@
|
|
3131
2848
|
"name": "files_to_sessions_file_id_files_id_fk",
|
3132
2849
|
"tableFrom": "files_to_sessions",
|
3133
2850
|
"tableTo": "files",
|
3134
|
-
"columnsFrom": [
|
3135
|
-
|
3136
|
-
],
|
3137
|
-
"columnsTo": [
|
3138
|
-
"id"
|
3139
|
-
],
|
2851
|
+
"columnsFrom": ["file_id"],
|
2852
|
+
"columnsTo": ["id"],
|
3140
2853
|
"onDelete": "cascade",
|
3141
2854
|
"onUpdate": "no action"
|
3142
2855
|
},
|
@@ -3144,12 +2857,8 @@
|
|
3144
2857
|
"name": "files_to_sessions_session_id_sessions_id_fk",
|
3145
2858
|
"tableFrom": "files_to_sessions",
|
3146
2859
|
"tableTo": "sessions",
|
3147
|
-
"columnsFrom": [
|
3148
|
-
|
3149
|
-
],
|
3150
|
-
"columnsTo": [
|
3151
|
-
"id"
|
3152
|
-
],
|
2860
|
+
"columnsFrom": ["session_id"],
|
2861
|
+
"columnsTo": ["id"],
|
3153
2862
|
"onDelete": "cascade",
|
3154
2863
|
"onUpdate": "no action"
|
3155
2864
|
}
|
@@ -3157,10 +2866,7 @@
|
|
3157
2866
|
"compositePrimaryKeys": {
|
3158
2867
|
"files_to_sessions_file_id_session_id_pk": {
|
3159
2868
|
"name": "files_to_sessions_file_id_session_id_pk",
|
3160
|
-
"columns": [
|
3161
|
-
"file_id",
|
3162
|
-
"session_id"
|
3163
|
-
]
|
2869
|
+
"columns": ["file_id", "session_id"]
|
3164
2870
|
}
|
3165
2871
|
},
|
3166
2872
|
"uniqueConstraints": {},
|
@@ -3230,12 +2936,8 @@
|
|
3230
2936
|
"name": "session_groups_user_id_users_id_fk",
|
3231
2937
|
"tableFrom": "session_groups",
|
3232
2938
|
"tableTo": "users",
|
3233
|
-
"columnsFrom": [
|
3234
|
-
|
3235
|
-
],
|
3236
|
-
"columnsTo": [
|
3237
|
-
"id"
|
3238
|
-
],
|
2939
|
+
"columnsFrom": ["user_id"],
|
2940
|
+
"columnsTo": ["id"],
|
3239
2941
|
"onDelete": "cascade",
|
3240
2942
|
"onUpdate": "no action"
|
3241
2943
|
}
|
@@ -3245,10 +2947,7 @@
|
|
3245
2947
|
"session_group_client_id_user_unique": {
|
3246
2948
|
"name": "session_group_client_id_user_unique",
|
3247
2949
|
"nullsNotDistinct": false,
|
3248
|
-
"columns": [
|
3249
|
-
"client_id",
|
3250
|
-
"user_id"
|
3251
|
-
]
|
2950
|
+
"columns": ["client_id", "user_id"]
|
3252
2951
|
}
|
3253
2952
|
},
|
3254
2953
|
"policies": {},
|
@@ -3377,12 +3076,8 @@
|
|
3377
3076
|
"name": "sessions_user_id_users_id_fk",
|
3378
3077
|
"tableFrom": "sessions",
|
3379
3078
|
"tableTo": "users",
|
3380
|
-
"columnsFrom": [
|
3381
|
-
|
3382
|
-
],
|
3383
|
-
"columnsTo": [
|
3384
|
-
"id"
|
3385
|
-
],
|
3079
|
+
"columnsFrom": ["user_id"],
|
3080
|
+
"columnsTo": ["id"],
|
3386
3081
|
"onDelete": "cascade",
|
3387
3082
|
"onUpdate": "no action"
|
3388
3083
|
},
|
@@ -3390,12 +3085,8 @@
|
|
3390
3085
|
"name": "sessions_group_id_session_groups_id_fk",
|
3391
3086
|
"tableFrom": "sessions",
|
3392
3087
|
"tableTo": "session_groups",
|
3393
|
-
"columnsFrom": [
|
3394
|
-
|
3395
|
-
],
|
3396
|
-
"columnsTo": [
|
3397
|
-
"id"
|
3398
|
-
],
|
3088
|
+
"columnsFrom": ["group_id"],
|
3089
|
+
"columnsTo": ["id"],
|
3399
3090
|
"onDelete": "set null",
|
3400
3091
|
"onUpdate": "no action"
|
3401
3092
|
}
|
@@ -3405,10 +3096,7 @@
|
|
3405
3096
|
"sessions_client_id_user_id_unique": {
|
3406
3097
|
"name": "sessions_client_id_user_id_unique",
|
3407
3098
|
"nullsNotDistinct": false,
|
3408
|
-
"columns": [
|
3409
|
-
"client_id",
|
3410
|
-
"user_id"
|
3411
|
-
]
|
3099
|
+
"columns": ["client_id", "user_id"]
|
3412
3100
|
}
|
3413
3101
|
},
|
3414
3102
|
"policies": {},
|
@@ -3503,12 +3191,8 @@
|
|
3503
3191
|
"name": "threads_topic_id_topics_id_fk",
|
3504
3192
|
"tableFrom": "threads",
|
3505
3193
|
"tableTo": "topics",
|
3506
|
-
"columnsFrom": [
|
3507
|
-
|
3508
|
-
],
|
3509
|
-
"columnsTo": [
|
3510
|
-
"id"
|
3511
|
-
],
|
3194
|
+
"columnsFrom": ["topic_id"],
|
3195
|
+
"columnsTo": ["id"],
|
3512
3196
|
"onDelete": "cascade",
|
3513
3197
|
"onUpdate": "no action"
|
3514
3198
|
},
|
@@ -3516,12 +3200,8 @@
|
|
3516
3200
|
"name": "threads_parent_thread_id_threads_id_fk",
|
3517
3201
|
"tableFrom": "threads",
|
3518
3202
|
"tableTo": "threads",
|
3519
|
-
"columnsFrom": [
|
3520
|
-
|
3521
|
-
],
|
3522
|
-
"columnsTo": [
|
3523
|
-
"id"
|
3524
|
-
],
|
3203
|
+
"columnsFrom": ["parent_thread_id"],
|
3204
|
+
"columnsTo": ["id"],
|
3525
3205
|
"onDelete": "set null",
|
3526
3206
|
"onUpdate": "no action"
|
3527
3207
|
},
|
@@ -3529,12 +3209,8 @@
|
|
3529
3209
|
"name": "threads_user_id_users_id_fk",
|
3530
3210
|
"tableFrom": "threads",
|
3531
3211
|
"tableTo": "users",
|
3532
|
-
"columnsFrom": [
|
3533
|
-
|
3534
|
-
],
|
3535
|
-
"columnsTo": [
|
3536
|
-
"id"
|
3537
|
-
],
|
3212
|
+
"columnsFrom": ["user_id"],
|
3213
|
+
"columnsTo": ["id"],
|
3538
3214
|
"onDelete": "cascade",
|
3539
3215
|
"onUpdate": "no action"
|
3540
3216
|
}
|
@@ -3626,12 +3302,8 @@
|
|
3626
3302
|
"name": "topics_session_id_sessions_id_fk",
|
3627
3303
|
"tableFrom": "topics",
|
3628
3304
|
"tableTo": "sessions",
|
3629
|
-
"columnsFrom": [
|
3630
|
-
|
3631
|
-
],
|
3632
|
-
"columnsTo": [
|
3633
|
-
"id"
|
3634
|
-
],
|
3305
|
+
"columnsFrom": ["session_id"],
|
3306
|
+
"columnsTo": ["id"],
|
3635
3307
|
"onDelete": "cascade",
|
3636
3308
|
"onUpdate": "no action"
|
3637
3309
|
},
|
@@ -3639,12 +3311,8 @@
|
|
3639
3311
|
"name": "topics_user_id_users_id_fk",
|
3640
3312
|
"tableFrom": "topics",
|
3641
3313
|
"tableTo": "users",
|
3642
|
-
"columnsFrom": [
|
3643
|
-
|
3644
|
-
],
|
3645
|
-
"columnsTo": [
|
3646
|
-
"id"
|
3647
|
-
],
|
3314
|
+
"columnsFrom": ["user_id"],
|
3315
|
+
"columnsTo": ["id"],
|
3648
3316
|
"onDelete": "cascade",
|
3649
3317
|
"onUpdate": "no action"
|
3650
3318
|
}
|
@@ -3654,10 +3322,7 @@
|
|
3654
3322
|
"topic_client_id_user_id_unique": {
|
3655
3323
|
"name": "topic_client_id_user_id_unique",
|
3656
3324
|
"nullsNotDistinct": false,
|
3657
|
-
"columns": [
|
3658
|
-
"client_id",
|
3659
|
-
"user_id"
|
3660
|
-
]
|
3325
|
+
"columns": ["client_id", "user_id"]
|
3661
3326
|
}
|
3662
3327
|
},
|
3663
3328
|
"policies": {},
|
@@ -3732,12 +3397,8 @@
|
|
3732
3397
|
"name": "user_installed_plugins_user_id_users_id_fk",
|
3733
3398
|
"tableFrom": "user_installed_plugins",
|
3734
3399
|
"tableTo": "users",
|
3735
|
-
"columnsFrom": [
|
3736
|
-
|
3737
|
-
],
|
3738
|
-
"columnsTo": [
|
3739
|
-
"id"
|
3740
|
-
],
|
3400
|
+
"columnsFrom": ["user_id"],
|
3401
|
+
"columnsTo": ["id"],
|
3741
3402
|
"onDelete": "cascade",
|
3742
3403
|
"onUpdate": "no action"
|
3743
3404
|
}
|
@@ -3745,10 +3406,7 @@
|
|
3745
3406
|
"compositePrimaryKeys": {
|
3746
3407
|
"user_installed_plugins_user_id_identifier_pk": {
|
3747
3408
|
"name": "user_installed_plugins_user_id_identifier_pk",
|
3748
|
-
"columns": [
|
3749
|
-
"user_id",
|
3750
|
-
"identifier"
|
3751
|
-
]
|
3409
|
+
"columns": ["user_id", "identifier"]
|
3752
3410
|
}
|
3753
3411
|
},
|
3754
3412
|
"uniqueConstraints": {},
|
@@ -3815,12 +3473,8 @@
|
|
3815
3473
|
"name": "user_settings_id_users_id_fk",
|
3816
3474
|
"tableFrom": "user_settings",
|
3817
3475
|
"tableTo": "users",
|
3818
|
-
"columnsFrom": [
|
3819
|
-
|
3820
|
-
],
|
3821
|
-
"columnsTo": [
|
3822
|
-
"id"
|
3823
|
-
],
|
3476
|
+
"columnsFrom": ["id"],
|
3477
|
+
"columnsTo": ["id"],
|
3824
3478
|
"onDelete": "cascade",
|
3825
3479
|
"onUpdate": "no action"
|
3826
3480
|
}
|
@@ -3937,9 +3591,7 @@
|
|
3937
3591
|
"users_username_unique": {
|
3938
3592
|
"name": "users_username_unique",
|
3939
3593
|
"nullsNotDistinct": false,
|
3940
|
-
"columns": [
|
3941
|
-
"username"
|
3942
|
-
]
|
3594
|
+
"columns": ["username"]
|
3943
3595
|
}
|
3944
3596
|
},
|
3945
3597
|
"policies": {},
|
@@ -3947,15 +3599,6 @@
|
|
3947
3599
|
"isRLSEnabled": false
|
3948
3600
|
}
|
3949
3601
|
},
|
3950
|
-
"
|
3951
|
-
"
|
3952
|
-
|
3953
|
-
"roles": {},
|
3954
|
-
"policies": {},
|
3955
|
-
"views": {},
|
3956
|
-
"_meta": {
|
3957
|
-
"columns": {},
|
3958
|
-
"schemas": {},
|
3959
|
-
"tables": {}
|
3960
|
-
}
|
3961
|
-
}
|
3602
|
+
"version": "7",
|
3603
|
+
"views": {}
|
3604
|
+
}
|