fix: add missing opposite relation fields for Prisma validation
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 33s
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 33s
- KnowledgeBase.folders ← KnowledgeFolder.knowledgeBase - KnowledgeSource.references ← SourceReference.source - KnowledgeChunk.references ← SourceReference.chunk Fixes P1012 Prisma schema validation errors in CI build. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
b3bce7ff78
commit
3602fb6cdb
@ -179,6 +179,7 @@ model KnowledgeBase {
|
|||||||
candidates ImportCandidate[]
|
candidates ImportCandidate[]
|
||||||
chunks KnowledgeChunk[]
|
chunks KnowledgeChunk[]
|
||||||
focusItems FocusItem[]
|
focusItems FocusItem[]
|
||||||
|
folders KnowledgeFolder[]
|
||||||
|
|
||||||
@@index([userId])
|
@@index([userId])
|
||||||
@@index([status])
|
@@index([status])
|
||||||
@ -701,6 +702,7 @@ model KnowledgeSource {
|
|||||||
file UploadedFile? @relation(fields: [fileId], references: [id])
|
file UploadedFile? @relation(fields: [fileId], references: [id])
|
||||||
chunks KnowledgeChunk[]
|
chunks KnowledgeChunk[]
|
||||||
imports DocumentImport[]
|
imports DocumentImport[]
|
||||||
|
references SourceReference[]
|
||||||
candidates ImportCandidate[]
|
candidates ImportCandidate[]
|
||||||
|
|
||||||
@@index([userId])
|
@@index([userId])
|
||||||
@ -731,6 +733,7 @@ model KnowledgeChunk {
|
|||||||
user User @relation(fields: [userId], references: [id])
|
user User @relation(fields: [userId], references: [id])
|
||||||
knowledgeBase KnowledgeBase @relation(fields: [knowledgeBaseId], references: [id])
|
knowledgeBase KnowledgeBase @relation(fields: [knowledgeBaseId], references: [id])
|
||||||
source KnowledgeSource @relation(fields: [sourceId], references: [id])
|
source KnowledgeSource @relation(fields: [sourceId], references: [id])
|
||||||
|
references SourceReference[]
|
||||||
|
|
||||||
@@index([userId])
|
@@index([userId])
|
||||||
@@index([sourceId])
|
@@index([sourceId])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user