@allbluecn/database 0.4.15 → 0.4.16
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/generated/browser.ts +10 -0
- package/generated/client.ts +10 -0
- package/generated/commonInputTypes.ts +34 -0
- package/generated/internal/class.ts +24 -4
- package/generated/internal/prismaNamespace.ts +191 -1
- package/generated/internal/prismaNamespaceBrowser.ts +26 -0
- package/generated/models/KnowledgeBase.ts +138 -0
- package/generated/models/Project.ts +158 -0
- package/generated/models/ProjectKnowledgeBase.ts +1430 -0
- package/generated/models/Story.ts +270 -0
- package/generated/models/StoryAttachment.ts +110 -1
- package/generated/models/StoryExternalLink.ts +1352 -0
- package/generated/models.ts +2 -0
- package/generated-sqlite/browser.ts +5 -0
- package/generated-sqlite/client.ts +5 -0
- package/generated-sqlite/internal/class.ts +14 -4
- package/generated-sqlite/internal/prismaNamespace.ts +87 -1
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +11 -0
- package/generated-sqlite/models/KnowledgeBase.ts +138 -0
- package/generated-sqlite/models/Project.ts +150 -0
- package/generated-sqlite/models/ProjectKnowledgeBase.ts +1426 -0
- package/generated-sqlite/models.ts +1 -0
- package/migrations/20260831063744_project_knowledge_base/migration.sql +24 -0
- package/migrations/20260831123150_story_external_link/migration.sql +19 -0
- package/migrations/20260831151740_story_attachment_bytes/migration.sql +2 -0
- package/migrations/20260901010000_story_attachment_description/migration.sql +2 -0
- package/package.json +2 -2
- package/schema.prisma +51 -13
- package/schema.sqlite.prisma +25 -7
|
@@ -403,6 +403,7 @@ export const ModelName = {
|
|
|
403
403
|
InvitationUse: 'InvitationUse',
|
|
404
404
|
PasswordResetToken: 'PasswordResetToken',
|
|
405
405
|
KnowledgeBase: 'KnowledgeBase',
|
|
406
|
+
ProjectKnowledgeBase: 'ProjectKnowledgeBase',
|
|
406
407
|
KnowledgeDocument: 'KnowledgeDocument',
|
|
407
408
|
PRD: 'PRD',
|
|
408
409
|
AgentConversation: 'AgentConversation',
|
|
@@ -477,7 +478,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
477
478
|
omit: GlobalOmitOptions
|
|
478
479
|
}
|
|
479
480
|
meta: {
|
|
480
|
-
modelProps: "systemSetting" | "user" | "project" | "projectMember" | "workspace" | "teamMembership" | "teamInvitation" | "teamJoinRequest" | "projectActivity" | "chatThread" | "chatMessage" | "chatRun" | "chatInterrupt" | "generationRun" | "loginLog" | "invitationCode" | "invitationUse" | "passwordResetToken" | "knowledgeBase" | "knowledgeDocument" | "pRD" | "agentConversation" | "agentMessage" | "component" | "block" | "blockComponent" | "template" | "templateBlock" | "pRDPage" | "componentInstance" | "blockInstance" | "pRDVersion" | "pageVersion" | "review" | "reviewComment" | "comment" | "commentIgnore" | "share" | "tag" | "pRDTag" | "componentTag" | "reference" | "shareVersion" | "anyHubApp" | "anyHubPermission" | "anyHubMarketApp" | "anyHubRecommendation" | "anyHubRecommender" | "designProject" | "artboard" | "artboardExport" | "aiProvider" | "aiProviderConfig" | "thirdPartyDependency" | "legalRegulation" | "industryCompliance" | "dictionaryTerm" | "websiteBookmark" | "bookmarkCategory" | "knowledgeShareRecord" | "articleFavorite" | "plan" | "subscription" | "usageRecord" | "aiUsageLog" | "invoice" | "providerEvent" | "licenseKey" | "licenseActivation" | "auditLog" | "ssoProvider" | "ssoMapping" | "customRole" | "roleAssignment" | "complianceExport" | "userAgent" | "userSkill" | "developerLog"
|
|
481
|
+
modelProps: "systemSetting" | "user" | "project" | "projectMember" | "workspace" | "teamMembership" | "teamInvitation" | "teamJoinRequest" | "projectActivity" | "chatThread" | "chatMessage" | "chatRun" | "chatInterrupt" | "generationRun" | "loginLog" | "invitationCode" | "invitationUse" | "passwordResetToken" | "knowledgeBase" | "projectKnowledgeBase" | "knowledgeDocument" | "pRD" | "agentConversation" | "agentMessage" | "component" | "block" | "blockComponent" | "template" | "templateBlock" | "pRDPage" | "componentInstance" | "blockInstance" | "pRDVersion" | "pageVersion" | "review" | "reviewComment" | "comment" | "commentIgnore" | "share" | "tag" | "pRDTag" | "componentTag" | "reference" | "shareVersion" | "anyHubApp" | "anyHubPermission" | "anyHubMarketApp" | "anyHubRecommendation" | "anyHubRecommender" | "designProject" | "artboard" | "artboardExport" | "aiProvider" | "aiProviderConfig" | "thirdPartyDependency" | "legalRegulation" | "industryCompliance" | "dictionaryTerm" | "websiteBookmark" | "bookmarkCategory" | "knowledgeShareRecord" | "articleFavorite" | "plan" | "subscription" | "usageRecord" | "aiUsageLog" | "invoice" | "providerEvent" | "licenseKey" | "licenseActivation" | "auditLog" | "ssoProvider" | "ssoMapping" | "customRole" | "roleAssignment" | "complianceExport" | "userAgent" | "userSkill" | "developerLog"
|
|
481
482
|
txIsolationLevel: TransactionIsolationLevel
|
|
482
483
|
}
|
|
483
484
|
model: {
|
|
@@ -1887,6 +1888,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
|
|
1887
1888
|
}
|
|
1888
1889
|
}
|
|
1889
1890
|
}
|
|
1891
|
+
ProjectKnowledgeBase: {
|
|
1892
|
+
payload: Prisma.$ProjectKnowledgeBasePayload<ExtArgs>
|
|
1893
|
+
fields: Prisma.ProjectKnowledgeBaseFieldRefs
|
|
1894
|
+
operations: {
|
|
1895
|
+
findUnique: {
|
|
1896
|
+
args: Prisma.ProjectKnowledgeBaseFindUniqueArgs<ExtArgs>
|
|
1897
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProjectKnowledgeBasePayload> | null
|
|
1898
|
+
}
|
|
1899
|
+
findUniqueOrThrow: {
|
|
1900
|
+
args: Prisma.ProjectKnowledgeBaseFindUniqueOrThrowArgs<ExtArgs>
|
|
1901
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProjectKnowledgeBasePayload>
|
|
1902
|
+
}
|
|
1903
|
+
findFirst: {
|
|
1904
|
+
args: Prisma.ProjectKnowledgeBaseFindFirstArgs<ExtArgs>
|
|
1905
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProjectKnowledgeBasePayload> | null
|
|
1906
|
+
}
|
|
1907
|
+
findFirstOrThrow: {
|
|
1908
|
+
args: Prisma.ProjectKnowledgeBaseFindFirstOrThrowArgs<ExtArgs>
|
|
1909
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProjectKnowledgeBasePayload>
|
|
1910
|
+
}
|
|
1911
|
+
findMany: {
|
|
1912
|
+
args: Prisma.ProjectKnowledgeBaseFindManyArgs<ExtArgs>
|
|
1913
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProjectKnowledgeBasePayload>[]
|
|
1914
|
+
}
|
|
1915
|
+
create: {
|
|
1916
|
+
args: Prisma.ProjectKnowledgeBaseCreateArgs<ExtArgs>
|
|
1917
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProjectKnowledgeBasePayload>
|
|
1918
|
+
}
|
|
1919
|
+
createMany: {
|
|
1920
|
+
args: Prisma.ProjectKnowledgeBaseCreateManyArgs<ExtArgs>
|
|
1921
|
+
result: BatchPayload
|
|
1922
|
+
}
|
|
1923
|
+
createManyAndReturn: {
|
|
1924
|
+
args: Prisma.ProjectKnowledgeBaseCreateManyAndReturnArgs<ExtArgs>
|
|
1925
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProjectKnowledgeBasePayload>[]
|
|
1926
|
+
}
|
|
1927
|
+
delete: {
|
|
1928
|
+
args: Prisma.ProjectKnowledgeBaseDeleteArgs<ExtArgs>
|
|
1929
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProjectKnowledgeBasePayload>
|
|
1930
|
+
}
|
|
1931
|
+
update: {
|
|
1932
|
+
args: Prisma.ProjectKnowledgeBaseUpdateArgs<ExtArgs>
|
|
1933
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProjectKnowledgeBasePayload>
|
|
1934
|
+
}
|
|
1935
|
+
deleteMany: {
|
|
1936
|
+
args: Prisma.ProjectKnowledgeBaseDeleteManyArgs<ExtArgs>
|
|
1937
|
+
result: BatchPayload
|
|
1938
|
+
}
|
|
1939
|
+
updateMany: {
|
|
1940
|
+
args: Prisma.ProjectKnowledgeBaseUpdateManyArgs<ExtArgs>
|
|
1941
|
+
result: BatchPayload
|
|
1942
|
+
}
|
|
1943
|
+
updateManyAndReturn: {
|
|
1944
|
+
args: Prisma.ProjectKnowledgeBaseUpdateManyAndReturnArgs<ExtArgs>
|
|
1945
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProjectKnowledgeBasePayload>[]
|
|
1946
|
+
}
|
|
1947
|
+
upsert: {
|
|
1948
|
+
args: Prisma.ProjectKnowledgeBaseUpsertArgs<ExtArgs>
|
|
1949
|
+
result: runtime.Types.Utils.PayloadToResult<Prisma.$ProjectKnowledgeBasePayload>
|
|
1950
|
+
}
|
|
1951
|
+
aggregate: {
|
|
1952
|
+
args: Prisma.ProjectKnowledgeBaseAggregateArgs<ExtArgs>
|
|
1953
|
+
result: runtime.Types.Utils.Optional<Prisma.AggregateProjectKnowledgeBase>
|
|
1954
|
+
}
|
|
1955
|
+
groupBy: {
|
|
1956
|
+
args: Prisma.ProjectKnowledgeBaseGroupByArgs<ExtArgs>
|
|
1957
|
+
result: runtime.Types.Utils.Optional<Prisma.ProjectKnowledgeBaseGroupByOutputType>[]
|
|
1958
|
+
}
|
|
1959
|
+
count: {
|
|
1960
|
+
args: Prisma.ProjectKnowledgeBaseCountArgs<ExtArgs>
|
|
1961
|
+
result: runtime.Types.Utils.Optional<Prisma.ProjectKnowledgeBaseCountAggregateOutputType> | number
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1890
1965
|
KnowledgeDocument: {
|
|
1891
1966
|
payload: Prisma.$KnowledgeDocumentPayload<ExtArgs>
|
|
1892
1967
|
fields: Prisma.KnowledgeDocumentFieldRefs
|
|
@@ -6567,6 +6642,16 @@ export const KnowledgeBaseScalarFieldEnum = {
|
|
|
6567
6642
|
export type KnowledgeBaseScalarFieldEnum = (typeof KnowledgeBaseScalarFieldEnum)[keyof typeof KnowledgeBaseScalarFieldEnum]
|
|
6568
6643
|
|
|
6569
6644
|
|
|
6645
|
+
export const ProjectKnowledgeBaseScalarFieldEnum = {
|
|
6646
|
+
id: 'id',
|
|
6647
|
+
projectId: 'projectId',
|
|
6648
|
+
kbId: 'kbId',
|
|
6649
|
+
createdAt: 'createdAt'
|
|
6650
|
+
} as const
|
|
6651
|
+
|
|
6652
|
+
export type ProjectKnowledgeBaseScalarFieldEnum = (typeof ProjectKnowledgeBaseScalarFieldEnum)[keyof typeof ProjectKnowledgeBaseScalarFieldEnum]
|
|
6653
|
+
|
|
6654
|
+
|
|
6570
6655
|
export const KnowledgeDocumentScalarFieldEnum = {
|
|
6571
6656
|
id: 'id',
|
|
6572
6657
|
kbId: 'kbId',
|
|
@@ -7777,6 +7862,7 @@ export type GlobalOmitConfig = {
|
|
|
7777
7862
|
invitationUse?: Prisma.InvitationUseOmit
|
|
7778
7863
|
passwordResetToken?: Prisma.PasswordResetTokenOmit
|
|
7779
7864
|
knowledgeBase?: Prisma.KnowledgeBaseOmit
|
|
7865
|
+
projectKnowledgeBase?: Prisma.ProjectKnowledgeBaseOmit
|
|
7780
7866
|
knowledgeDocument?: Prisma.KnowledgeDocumentOmit
|
|
7781
7867
|
pRD?: Prisma.PRDOmit
|
|
7782
7868
|
agentConversation?: Prisma.AgentConversationOmit
|
|
@@ -70,6 +70,7 @@ export const ModelName = {
|
|
|
70
70
|
InvitationUse: 'InvitationUse',
|
|
71
71
|
PasswordResetToken: 'PasswordResetToken',
|
|
72
72
|
KnowledgeBase: 'KnowledgeBase',
|
|
73
|
+
ProjectKnowledgeBase: 'ProjectKnowledgeBase',
|
|
73
74
|
KnowledgeDocument: 'KnowledgeDocument',
|
|
74
75
|
PRD: 'PRD',
|
|
75
76
|
AgentConversation: 'AgentConversation',
|
|
@@ -422,6 +423,16 @@ export const KnowledgeBaseScalarFieldEnum = {
|
|
|
422
423
|
export type KnowledgeBaseScalarFieldEnum = (typeof KnowledgeBaseScalarFieldEnum)[keyof typeof KnowledgeBaseScalarFieldEnum]
|
|
423
424
|
|
|
424
425
|
|
|
426
|
+
export const ProjectKnowledgeBaseScalarFieldEnum = {
|
|
427
|
+
id: 'id',
|
|
428
|
+
projectId: 'projectId',
|
|
429
|
+
kbId: 'kbId',
|
|
430
|
+
createdAt: 'createdAt'
|
|
431
|
+
} as const
|
|
432
|
+
|
|
433
|
+
export type ProjectKnowledgeBaseScalarFieldEnum = (typeof ProjectKnowledgeBaseScalarFieldEnum)[keyof typeof ProjectKnowledgeBaseScalarFieldEnum]
|
|
434
|
+
|
|
435
|
+
|
|
425
436
|
export const KnowledgeDocumentScalarFieldEnum = {
|
|
426
437
|
id: 'id',
|
|
427
438
|
kbId: 'kbId',
|
|
@@ -220,6 +220,7 @@ export type KnowledgeBaseWhereInput = {
|
|
|
220
220
|
updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
|
|
221
221
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
222
222
|
documents?: Prisma.KnowledgeDocumentListRelationFilter
|
|
223
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseListRelationFilter
|
|
223
224
|
}
|
|
224
225
|
|
|
225
226
|
export type KnowledgeBaseOrderByWithRelationInput = {
|
|
@@ -235,6 +236,7 @@ export type KnowledgeBaseOrderByWithRelationInput = {
|
|
|
235
236
|
updatedAt?: Prisma.SortOrder
|
|
236
237
|
user?: Prisma.UserOrderByWithRelationInput
|
|
237
238
|
documents?: Prisma.KnowledgeDocumentOrderByRelationAggregateInput
|
|
239
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseOrderByRelationAggregateInput
|
|
238
240
|
}
|
|
239
241
|
|
|
240
242
|
export type KnowledgeBaseWhereUniqueInput = Prisma.AtLeast<{
|
|
@@ -253,6 +255,7 @@ export type KnowledgeBaseWhereUniqueInput = Prisma.AtLeast<{
|
|
|
253
255
|
updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
|
|
254
256
|
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
255
257
|
documents?: Prisma.KnowledgeDocumentListRelationFilter
|
|
258
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseListRelationFilter
|
|
256
259
|
}, "id">
|
|
257
260
|
|
|
258
261
|
export type KnowledgeBaseOrderByWithAggregationInput = {
|
|
@@ -299,6 +302,7 @@ export type KnowledgeBaseCreateInput = {
|
|
|
299
302
|
updatedAt?: Date | string
|
|
300
303
|
user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
|
|
301
304
|
documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
|
|
305
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
302
306
|
}
|
|
303
307
|
|
|
304
308
|
export type KnowledgeBaseUncheckedCreateInput = {
|
|
@@ -313,6 +317,7 @@ export type KnowledgeBaseUncheckedCreateInput = {
|
|
|
313
317
|
createdAt?: Date | string
|
|
314
318
|
updatedAt?: Date | string
|
|
315
319
|
documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
|
|
320
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
|
|
316
321
|
}
|
|
317
322
|
|
|
318
323
|
export type KnowledgeBaseUpdateInput = {
|
|
@@ -327,6 +332,7 @@ export type KnowledgeBaseUpdateInput = {
|
|
|
327
332
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
328
333
|
user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
|
|
329
334
|
documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
|
|
335
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
330
336
|
}
|
|
331
337
|
|
|
332
338
|
export type KnowledgeBaseUncheckedUpdateInput = {
|
|
@@ -341,6 +347,7 @@ export type KnowledgeBaseUncheckedUpdateInput = {
|
|
|
341
347
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
342
348
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
343
349
|
documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
|
|
350
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
|
|
344
351
|
}
|
|
345
352
|
|
|
346
353
|
export type KnowledgeBaseCreateManyInput = {
|
|
@@ -475,6 +482,20 @@ export type KnowledgeBaseUncheckedUpdateManyWithoutUserNestedInput = {
|
|
|
475
482
|
deleteMany?: Prisma.KnowledgeBaseScalarWhereInput | Prisma.KnowledgeBaseScalarWhereInput[]
|
|
476
483
|
}
|
|
477
484
|
|
|
485
|
+
export type KnowledgeBaseCreateNestedOneWithoutProjectLinksInput = {
|
|
486
|
+
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutProjectLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutProjectLinksInput>
|
|
487
|
+
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutProjectLinksInput
|
|
488
|
+
connect?: Prisma.KnowledgeBaseWhereUniqueInput
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
export type KnowledgeBaseUpdateOneRequiredWithoutProjectLinksNestedInput = {
|
|
492
|
+
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutProjectLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutProjectLinksInput>
|
|
493
|
+
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutProjectLinksInput
|
|
494
|
+
upsert?: Prisma.KnowledgeBaseUpsertWithoutProjectLinksInput
|
|
495
|
+
connect?: Prisma.KnowledgeBaseWhereUniqueInput
|
|
496
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeBaseUpdateToOneWithWhereWithoutProjectLinksInput, Prisma.KnowledgeBaseUpdateWithoutProjectLinksInput>, Prisma.KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput>
|
|
497
|
+
}
|
|
498
|
+
|
|
478
499
|
export type KnowledgeBaseCreateNestedOneWithoutDocumentsInput = {
|
|
479
500
|
create?: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutDocumentsInput, Prisma.KnowledgeBaseUncheckedCreateWithoutDocumentsInput>
|
|
480
501
|
connectOrCreate?: Prisma.KnowledgeBaseCreateOrConnectWithoutDocumentsInput
|
|
@@ -500,6 +521,7 @@ export type KnowledgeBaseCreateWithoutUserInput = {
|
|
|
500
521
|
createdAt?: Date | string
|
|
501
522
|
updatedAt?: Date | string
|
|
502
523
|
documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
|
|
524
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
503
525
|
}
|
|
504
526
|
|
|
505
527
|
export type KnowledgeBaseUncheckedCreateWithoutUserInput = {
|
|
@@ -513,6 +535,7 @@ export type KnowledgeBaseUncheckedCreateWithoutUserInput = {
|
|
|
513
535
|
createdAt?: Date | string
|
|
514
536
|
updatedAt?: Date | string
|
|
515
537
|
documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
|
|
538
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
|
|
516
539
|
}
|
|
517
540
|
|
|
518
541
|
export type KnowledgeBaseCreateOrConnectWithoutUserInput = {
|
|
@@ -556,6 +579,78 @@ export type KnowledgeBaseScalarWhereInput = {
|
|
|
556
579
|
updatedAt?: Prisma.DateTimeFilter<"KnowledgeBase"> | Date | string
|
|
557
580
|
}
|
|
558
581
|
|
|
582
|
+
export type KnowledgeBaseCreateWithoutProjectLinksInput = {
|
|
583
|
+
id?: string
|
|
584
|
+
name: string
|
|
585
|
+
description?: string | null
|
|
586
|
+
icon?: string
|
|
587
|
+
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
588
|
+
visibility?: string
|
|
589
|
+
isDeleted?: boolean
|
|
590
|
+
createdAt?: Date | string
|
|
591
|
+
updatedAt?: Date | string
|
|
592
|
+
user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
|
|
593
|
+
documents?: Prisma.KnowledgeDocumentCreateNestedManyWithoutKbInput
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
export type KnowledgeBaseUncheckedCreateWithoutProjectLinksInput = {
|
|
597
|
+
id?: string
|
|
598
|
+
name: string
|
|
599
|
+
description?: string | null
|
|
600
|
+
icon?: string
|
|
601
|
+
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
602
|
+
visibility?: string
|
|
603
|
+
userId: string
|
|
604
|
+
isDeleted?: boolean
|
|
605
|
+
createdAt?: Date | string
|
|
606
|
+
updatedAt?: Date | string
|
|
607
|
+
documents?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutKbInput
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
export type KnowledgeBaseCreateOrConnectWithoutProjectLinksInput = {
|
|
611
|
+
where: Prisma.KnowledgeBaseWhereUniqueInput
|
|
612
|
+
create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutProjectLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutProjectLinksInput>
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
export type KnowledgeBaseUpsertWithoutProjectLinksInput = {
|
|
616
|
+
update: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutProjectLinksInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput>
|
|
617
|
+
create: Prisma.XOR<Prisma.KnowledgeBaseCreateWithoutProjectLinksInput, Prisma.KnowledgeBaseUncheckedCreateWithoutProjectLinksInput>
|
|
618
|
+
where?: Prisma.KnowledgeBaseWhereInput
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export type KnowledgeBaseUpdateToOneWithWhereWithoutProjectLinksInput = {
|
|
622
|
+
where?: Prisma.KnowledgeBaseWhereInput
|
|
623
|
+
data: Prisma.XOR<Prisma.KnowledgeBaseUpdateWithoutProjectLinksInput, Prisma.KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput>
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export type KnowledgeBaseUpdateWithoutProjectLinksInput = {
|
|
627
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
628
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
629
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
630
|
+
icon?: Prisma.StringFieldUpdateOperationsInput | string
|
|
631
|
+
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
632
|
+
visibility?: Prisma.StringFieldUpdateOperationsInput | string
|
|
633
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
634
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
635
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
636
|
+
user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
|
|
637
|
+
documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
export type KnowledgeBaseUncheckedUpdateWithoutProjectLinksInput = {
|
|
641
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
642
|
+
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
643
|
+
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
644
|
+
icon?: Prisma.StringFieldUpdateOperationsInput | string
|
|
645
|
+
tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
646
|
+
visibility?: Prisma.StringFieldUpdateOperationsInput | string
|
|
647
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
648
|
+
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
649
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
650
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
651
|
+
documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
|
|
652
|
+
}
|
|
653
|
+
|
|
559
654
|
export type KnowledgeBaseCreateWithoutDocumentsInput = {
|
|
560
655
|
id?: string
|
|
561
656
|
name: string
|
|
@@ -567,6 +662,7 @@ export type KnowledgeBaseCreateWithoutDocumentsInput = {
|
|
|
567
662
|
createdAt?: Date | string
|
|
568
663
|
updatedAt?: Date | string
|
|
569
664
|
user: Prisma.UserCreateNestedOneWithoutKnowledgeBasesInput
|
|
665
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseCreateNestedManyWithoutKbInput
|
|
570
666
|
}
|
|
571
667
|
|
|
572
668
|
export type KnowledgeBaseUncheckedCreateWithoutDocumentsInput = {
|
|
@@ -580,6 +676,7 @@ export type KnowledgeBaseUncheckedCreateWithoutDocumentsInput = {
|
|
|
580
676
|
isDeleted?: boolean
|
|
581
677
|
createdAt?: Date | string
|
|
582
678
|
updatedAt?: Date | string
|
|
679
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedCreateNestedManyWithoutKbInput
|
|
583
680
|
}
|
|
584
681
|
|
|
585
682
|
export type KnowledgeBaseCreateOrConnectWithoutDocumentsInput = {
|
|
@@ -609,6 +706,7 @@ export type KnowledgeBaseUpdateWithoutDocumentsInput = {
|
|
|
609
706
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
610
707
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
611
708
|
user?: Prisma.UserUpdateOneRequiredWithoutKnowledgeBasesNestedInput
|
|
709
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
612
710
|
}
|
|
613
711
|
|
|
614
712
|
export type KnowledgeBaseUncheckedUpdateWithoutDocumentsInput = {
|
|
@@ -622,6 +720,7 @@ export type KnowledgeBaseUncheckedUpdateWithoutDocumentsInput = {
|
|
|
622
720
|
isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
623
721
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
624
722
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
723
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
|
|
625
724
|
}
|
|
626
725
|
|
|
627
726
|
export type KnowledgeBaseCreateManyUserInput = {
|
|
@@ -647,6 +746,7 @@ export type KnowledgeBaseUpdateWithoutUserInput = {
|
|
|
647
746
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
648
747
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
649
748
|
documents?: Prisma.KnowledgeDocumentUpdateManyWithoutKbNestedInput
|
|
749
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseUpdateManyWithoutKbNestedInput
|
|
650
750
|
}
|
|
651
751
|
|
|
652
752
|
export type KnowledgeBaseUncheckedUpdateWithoutUserInput = {
|
|
@@ -660,6 +760,7 @@ export type KnowledgeBaseUncheckedUpdateWithoutUserInput = {
|
|
|
660
760
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
661
761
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
662
762
|
documents?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput
|
|
763
|
+
projectLinks?: Prisma.ProjectKnowledgeBaseUncheckedUpdateManyWithoutKbNestedInput
|
|
663
764
|
}
|
|
664
765
|
|
|
665
766
|
export type KnowledgeBaseUncheckedUpdateManyWithoutUserInput = {
|
|
@@ -681,10 +782,12 @@ export type KnowledgeBaseUncheckedUpdateManyWithoutUserInput = {
|
|
|
681
782
|
|
|
682
783
|
export type KnowledgeBaseCountOutputType = {
|
|
683
784
|
documents: number
|
|
785
|
+
projectLinks: number
|
|
684
786
|
}
|
|
685
787
|
|
|
686
788
|
export type KnowledgeBaseCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
687
789
|
documents?: boolean | KnowledgeBaseCountOutputTypeCountDocumentsArgs
|
|
790
|
+
projectLinks?: boolean | KnowledgeBaseCountOutputTypeCountProjectLinksArgs
|
|
688
791
|
}
|
|
689
792
|
|
|
690
793
|
/**
|
|
@@ -704,6 +807,13 @@ export type KnowledgeBaseCountOutputTypeCountDocumentsArgs<ExtArgs extends runti
|
|
|
704
807
|
where?: Prisma.KnowledgeDocumentWhereInput
|
|
705
808
|
}
|
|
706
809
|
|
|
810
|
+
/**
|
|
811
|
+
* KnowledgeBaseCountOutputType without action
|
|
812
|
+
*/
|
|
813
|
+
export type KnowledgeBaseCountOutputTypeCountProjectLinksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
814
|
+
where?: Prisma.ProjectKnowledgeBaseWhereInput
|
|
815
|
+
}
|
|
816
|
+
|
|
707
817
|
|
|
708
818
|
export type KnowledgeBaseSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
709
819
|
id?: boolean
|
|
@@ -718,6 +828,7 @@ export type KnowledgeBaseSelect<ExtArgs extends runtime.Types.Extensions.Interna
|
|
|
718
828
|
updatedAt?: boolean
|
|
719
829
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
720
830
|
documents?: boolean | Prisma.KnowledgeBase$documentsArgs<ExtArgs>
|
|
831
|
+
projectLinks?: boolean | Prisma.KnowledgeBase$projectLinksArgs<ExtArgs>
|
|
721
832
|
_count?: boolean | Prisma.KnowledgeBaseCountOutputTypeDefaultArgs<ExtArgs>
|
|
722
833
|
}, ExtArgs["result"]["knowledgeBase"]>
|
|
723
834
|
|
|
@@ -766,6 +877,7 @@ export type KnowledgeBaseOmit<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
766
877
|
export type KnowledgeBaseInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
767
878
|
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
768
879
|
documents?: boolean | Prisma.KnowledgeBase$documentsArgs<ExtArgs>
|
|
880
|
+
projectLinks?: boolean | Prisma.KnowledgeBase$projectLinksArgs<ExtArgs>
|
|
769
881
|
_count?: boolean | Prisma.KnowledgeBaseCountOutputTypeDefaultArgs<ExtArgs>
|
|
770
882
|
}
|
|
771
883
|
export type KnowledgeBaseIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
@@ -780,6 +892,7 @@ export type $KnowledgeBasePayload<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
780
892
|
objects: {
|
|
781
893
|
user: Prisma.$UserPayload<ExtArgs>
|
|
782
894
|
documents: Prisma.$KnowledgeDocumentPayload<ExtArgs>[]
|
|
895
|
+
projectLinks: Prisma.$ProjectKnowledgeBasePayload<ExtArgs>[]
|
|
783
896
|
}
|
|
784
897
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
785
898
|
id: string
|
|
@@ -1188,6 +1301,7 @@ export interface Prisma__KnowledgeBaseClient<T, Null = never, ExtArgs extends ru
|
|
|
1188
1301
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1189
1302
|
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1190
1303
|
documents<T extends Prisma.KnowledgeBase$documentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$documentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1304
|
+
projectLinks<T extends Prisma.KnowledgeBase$projectLinksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeBase$projectLinksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ProjectKnowledgeBasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1191
1305
|
/**
|
|
1192
1306
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1193
1307
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
@@ -1649,6 +1763,30 @@ export type KnowledgeBase$documentsArgs<ExtArgs extends runtime.Types.Extensions
|
|
|
1649
1763
|
distinct?: Prisma.KnowledgeDocumentScalarFieldEnum | Prisma.KnowledgeDocumentScalarFieldEnum[]
|
|
1650
1764
|
}
|
|
1651
1765
|
|
|
1766
|
+
/**
|
|
1767
|
+
* KnowledgeBase.projectLinks
|
|
1768
|
+
*/
|
|
1769
|
+
export type KnowledgeBase$projectLinksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1770
|
+
/**
|
|
1771
|
+
* Select specific fields to fetch from the ProjectKnowledgeBase
|
|
1772
|
+
*/
|
|
1773
|
+
select?: Prisma.ProjectKnowledgeBaseSelect<ExtArgs> | null
|
|
1774
|
+
/**
|
|
1775
|
+
* Omit specific fields from the ProjectKnowledgeBase
|
|
1776
|
+
*/
|
|
1777
|
+
omit?: Prisma.ProjectKnowledgeBaseOmit<ExtArgs> | null
|
|
1778
|
+
/**
|
|
1779
|
+
* Choose, which related nodes to fetch as well
|
|
1780
|
+
*/
|
|
1781
|
+
include?: Prisma.ProjectKnowledgeBaseInclude<ExtArgs> | null
|
|
1782
|
+
where?: Prisma.ProjectKnowledgeBaseWhereInput
|
|
1783
|
+
orderBy?: Prisma.ProjectKnowledgeBaseOrderByWithRelationInput | Prisma.ProjectKnowledgeBaseOrderByWithRelationInput[]
|
|
1784
|
+
cursor?: Prisma.ProjectKnowledgeBaseWhereUniqueInput
|
|
1785
|
+
take?: number
|
|
1786
|
+
skip?: number
|
|
1787
|
+
distinct?: Prisma.ProjectKnowledgeBaseScalarFieldEnum | Prisma.ProjectKnowledgeBaseScalarFieldEnum[]
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1652
1790
|
/**
|
|
1653
1791
|
* KnowledgeBase without action
|
|
1654
1792
|
*/
|