@allbluecn/database 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/generated/browser.ts +10 -0
  2. package/generated/client.ts +10 -0
  3. package/generated/internal/class.ts +24 -4
  4. package/generated/internal/prismaNamespace.ts +182 -1
  5. package/generated/internal/prismaNamespaceBrowser.ts +31 -0
  6. package/generated/models/KnowledgeBase.ts +158 -0
  7. package/generated/models/KnowledgeDocument.ts +176 -0
  8. package/generated/models/User.ts +634 -0
  9. package/generated/models/Workspace.ts +380 -0
  10. package/generated/models/WorkspaceKnowledgeBase.ts +1430 -0
  11. package/generated/models/WorkspaceQuickDoc.ts +2030 -0
  12. package/generated/models.ts +2 -0
  13. package/generated-sqlite/browser.ts +10 -0
  14. package/generated-sqlite/client.ts +10 -0
  15. package/generated-sqlite/internal/class.ts +24 -4
  16. package/generated-sqlite/internal/prismaNamespace.ts +182 -1
  17. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +31 -0
  18. package/generated-sqlite/models/KnowledgeBase.ts +150 -0
  19. package/generated-sqlite/models/KnowledgeDocument.ts +168 -0
  20. package/generated-sqlite/models/User.ts +518 -0
  21. package/generated-sqlite/models/Workspace.ts +300 -0
  22. package/generated-sqlite/models/WorkspaceKnowledgeBase.ts +1426 -0
  23. package/generated-sqlite/models/WorkspaceQuickDoc.ts +2025 -0
  24. package/generated-sqlite/models.ts +2 -0
  25. package/migrations/20260909070745_workspace_kb_card/migration.sql +55 -0
  26. package/migrations/20260909123637_workspace_quick_doc_column_index/migration.sql +2 -0
  27. package/migrations/20260909123656_workspace_quick_doc_column_backfill/migration.sql +4 -0
  28. package/migrations/20260909144328_workspace_quick_doc_label/migration.sql +2 -0
  29. package/migrations/20260909154315_workspace_quick_doc_icon/migration.sql +2 -0
  30. package/package.json +2 -2
  31. package/schema.prisma +48 -2
  32. package/schema.sqlite.prisma +48 -2
@@ -288,6 +288,7 @@ export type KnowledgeDocumentWhereInput = {
288
288
  parent?: Prisma.XOR<Prisma.KnowledgeDocumentNullableScalarRelationFilter, Prisma.KnowledgeDocumentWhereInput> | null
289
289
  children?: Prisma.KnowledgeDocumentListRelationFilter
290
290
  creator?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
291
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocListRelationFilter
291
292
  }
292
293
 
293
294
  export type KnowledgeDocumentOrderByWithRelationInput = {
@@ -310,6 +311,7 @@ export type KnowledgeDocumentOrderByWithRelationInput = {
310
311
  parent?: Prisma.KnowledgeDocumentOrderByWithRelationInput
311
312
  children?: Prisma.KnowledgeDocumentOrderByRelationAggregateInput
312
313
  creator?: Prisma.UserOrderByWithRelationInput
314
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocOrderByRelationAggregateInput
313
315
  }
314
316
 
315
317
  export type KnowledgeDocumentWhereUniqueInput = Prisma.AtLeast<{
@@ -335,6 +337,7 @@ export type KnowledgeDocumentWhereUniqueInput = Prisma.AtLeast<{
335
337
  parent?: Prisma.XOR<Prisma.KnowledgeDocumentNullableScalarRelationFilter, Prisma.KnowledgeDocumentWhereInput> | null
336
338
  children?: Prisma.KnowledgeDocumentListRelationFilter
337
339
  creator?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
340
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocListRelationFilter
338
341
  }, "id">
339
342
 
340
343
  export type KnowledgeDocumentOrderByWithAggregationInput = {
@@ -398,6 +401,7 @@ export type KnowledgeDocumentCreateInput = {
398
401
  parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
399
402
  children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
400
403
  creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
404
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
401
405
  }
402
406
 
403
407
  export type KnowledgeDocumentUncheckedCreateInput = {
@@ -417,6 +421,7 @@ export type KnowledgeDocumentUncheckedCreateInput = {
417
421
  createdAt?: Date | string
418
422
  updatedAt?: Date | string
419
423
  children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
424
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
420
425
  }
421
426
 
422
427
  export type KnowledgeDocumentUpdateInput = {
@@ -436,6 +441,7 @@ export type KnowledgeDocumentUpdateInput = {
436
441
  parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
437
442
  children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
438
443
  creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
444
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
439
445
  }
440
446
 
441
447
  export type KnowledgeDocumentUncheckedUpdateInput = {
@@ -455,6 +461,7 @@ export type KnowledgeDocumentUncheckedUpdateInput = {
455
461
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
456
462
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
457
463
  children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
464
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
458
465
  }
459
466
 
460
467
  export type KnowledgeDocumentCreateManyInput = {
@@ -663,6 +670,22 @@ export type KnowledgeDocumentUncheckedUpdateManyWithoutKbNestedInput = {
663
670
  deleteMany?: Prisma.KnowledgeDocumentScalarWhereInput | Prisma.KnowledgeDocumentScalarWhereInput[]
664
671
  }
665
672
 
673
+ export type KnowledgeDocumentCreateNestedOneWithoutWorkspaceQuickDocsInput = {
674
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput>
675
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutWorkspaceQuickDocsInput
676
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput
677
+ }
678
+
679
+ export type KnowledgeDocumentUpdateOneWithoutWorkspaceQuickDocsNestedInput = {
680
+ create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput>
681
+ connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutWorkspaceQuickDocsInput
682
+ upsert?: Prisma.KnowledgeDocumentUpsertWithoutWorkspaceQuickDocsInput
683
+ disconnect?: Prisma.KnowledgeDocumentWhereInput | boolean
684
+ delete?: Prisma.KnowledgeDocumentWhereInput | boolean
685
+ connect?: Prisma.KnowledgeDocumentWhereUniqueInput
686
+ update?: Prisma.XOR<Prisma.XOR<Prisma.KnowledgeDocumentUpdateToOneWithWhereWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUpdateWithoutWorkspaceQuickDocsInput>, Prisma.KnowledgeDocumentUncheckedUpdateWithoutWorkspaceQuickDocsInput>
687
+ }
688
+
666
689
  export type KnowledgeDocumentCreateNestedOneWithoutChildrenInput = {
667
690
  create?: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutChildrenInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutChildrenInput>
668
691
  connectOrCreate?: Prisma.KnowledgeDocumentCreateOrConnectWithoutChildrenInput
@@ -737,6 +760,7 @@ export type KnowledgeDocumentCreateWithoutCreatorInput = {
737
760
  kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
738
761
  parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
739
762
  children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
763
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
740
764
  }
741
765
 
742
766
  export type KnowledgeDocumentUncheckedCreateWithoutCreatorInput = {
@@ -755,6 +779,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutCreatorInput = {
755
779
  createdAt?: Date | string
756
780
  updatedAt?: Date | string
757
781
  children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
782
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
758
783
  }
759
784
 
760
785
  export type KnowledgeDocumentCreateOrConnectWithoutCreatorInput = {
@@ -819,6 +844,7 @@ export type KnowledgeDocumentCreateWithoutKbInput = {
819
844
  parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
820
845
  children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
821
846
  creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
847
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
822
848
  }
823
849
 
824
850
  export type KnowledgeDocumentUncheckedCreateWithoutKbInput = {
@@ -837,6 +863,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutKbInput = {
837
863
  createdAt?: Date | string
838
864
  updatedAt?: Date | string
839
865
  children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
866
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
840
867
  }
841
868
 
842
869
  export type KnowledgeDocumentCreateOrConnectWithoutKbInput = {
@@ -864,6 +891,98 @@ export type KnowledgeDocumentUpdateManyWithWhereWithoutKbInput = {
864
891
  data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateManyMutationInput, Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutKbInput>
865
892
  }
866
893
 
894
+ export type KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput = {
895
+ id?: string
896
+ title: string
897
+ type?: string
898
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
899
+ icon?: string | null
900
+ isHomepage?: boolean
901
+ sortOrder?: number
902
+ isDeleted?: boolean
903
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
904
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
905
+ createdAt?: Date | string
906
+ updatedAt?: Date | string
907
+ kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
908
+ parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
909
+ children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
910
+ creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
911
+ }
912
+
913
+ export type KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput = {
914
+ id?: string
915
+ kbId: string
916
+ parentId?: string | null
917
+ title: string
918
+ type?: string
919
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
920
+ icon?: string | null
921
+ isHomepage?: boolean
922
+ sortOrder?: number
923
+ isDeleted?: boolean
924
+ createdBy: string
925
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
926
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
927
+ createdAt?: Date | string
928
+ updatedAt?: Date | string
929
+ children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
930
+ }
931
+
932
+ export type KnowledgeDocumentCreateOrConnectWithoutWorkspaceQuickDocsInput = {
933
+ where: Prisma.KnowledgeDocumentWhereUniqueInput
934
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput>
935
+ }
936
+
937
+ export type KnowledgeDocumentUpsertWithoutWorkspaceQuickDocsInput = {
938
+ update: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutWorkspaceQuickDocsInput>
939
+ create: Prisma.XOR<Prisma.KnowledgeDocumentCreateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedCreateWithoutWorkspaceQuickDocsInput>
940
+ where?: Prisma.KnowledgeDocumentWhereInput
941
+ }
942
+
943
+ export type KnowledgeDocumentUpdateToOneWithWhereWithoutWorkspaceQuickDocsInput = {
944
+ where?: Prisma.KnowledgeDocumentWhereInput
945
+ data: Prisma.XOR<Prisma.KnowledgeDocumentUpdateWithoutWorkspaceQuickDocsInput, Prisma.KnowledgeDocumentUncheckedUpdateWithoutWorkspaceQuickDocsInput>
946
+ }
947
+
948
+ export type KnowledgeDocumentUpdateWithoutWorkspaceQuickDocsInput = {
949
+ id?: Prisma.StringFieldUpdateOperationsInput | string
950
+ title?: Prisma.StringFieldUpdateOperationsInput | string
951
+ type?: Prisma.StringFieldUpdateOperationsInput | string
952
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
953
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
954
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
955
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
956
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
957
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
958
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
959
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
960
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
961
+ kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
962
+ parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
963
+ children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
964
+ creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
965
+ }
966
+
967
+ export type KnowledgeDocumentUncheckedUpdateWithoutWorkspaceQuickDocsInput = {
968
+ id?: Prisma.StringFieldUpdateOperationsInput | string
969
+ kbId?: Prisma.StringFieldUpdateOperationsInput | string
970
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
971
+ title?: Prisma.StringFieldUpdateOperationsInput | string
972
+ type?: Prisma.StringFieldUpdateOperationsInput | string
973
+ content?: Prisma.JsonNullValueInput | runtime.InputJsonValue
974
+ icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
975
+ isHomepage?: Prisma.BoolFieldUpdateOperationsInput | boolean
976
+ sortOrder?: Prisma.IntFieldUpdateOperationsInput | number
977
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
978
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
979
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
980
+ properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
981
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
982
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
983
+ children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
984
+ }
985
+
867
986
  export type KnowledgeDocumentCreateWithoutChildrenInput = {
868
987
  id?: string
869
988
  title: string
@@ -880,6 +999,7 @@ export type KnowledgeDocumentCreateWithoutChildrenInput = {
880
999
  kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
881
1000
  parent?: Prisma.KnowledgeDocumentCreateNestedOneWithoutChildrenInput
882
1001
  creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
1002
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
883
1003
  }
884
1004
 
885
1005
  export type KnowledgeDocumentUncheckedCreateWithoutChildrenInput = {
@@ -898,6 +1018,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutChildrenInput = {
898
1018
  properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
899
1019
  createdAt?: Date | string
900
1020
  updatedAt?: Date | string
1021
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
901
1022
  }
902
1023
 
903
1024
  export type KnowledgeDocumentCreateOrConnectWithoutChildrenInput = {
@@ -921,6 +1042,7 @@ export type KnowledgeDocumentCreateWithoutParentInput = {
921
1042
  kb: Prisma.KnowledgeBaseCreateNestedOneWithoutDocumentsInput
922
1043
  children?: Prisma.KnowledgeDocumentCreateNestedManyWithoutParentInput
923
1044
  creator: Prisma.UserCreateNestedOneWithoutKnowledgeDocumentsInput
1045
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocCreateNestedManyWithoutDocInput
924
1046
  }
925
1047
 
926
1048
  export type KnowledgeDocumentUncheckedCreateWithoutParentInput = {
@@ -939,6 +1061,7 @@ export type KnowledgeDocumentUncheckedCreateWithoutParentInput = {
939
1061
  createdAt?: Date | string
940
1062
  updatedAt?: Date | string
941
1063
  children?: Prisma.KnowledgeDocumentUncheckedCreateNestedManyWithoutParentInput
1064
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedCreateNestedManyWithoutDocInput
942
1065
  }
943
1066
 
944
1067
  export type KnowledgeDocumentCreateOrConnectWithoutParentInput = {
@@ -977,6 +1100,7 @@ export type KnowledgeDocumentUpdateWithoutChildrenInput = {
977
1100
  kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
978
1101
  parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
979
1102
  creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1103
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
980
1104
  }
981
1105
 
982
1106
  export type KnowledgeDocumentUncheckedUpdateWithoutChildrenInput = {
@@ -995,6 +1119,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutChildrenInput = {
995
1119
  properties?: Prisma.JsonNullValueInput | runtime.InputJsonValue
996
1120
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
997
1121
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1122
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
998
1123
  }
999
1124
 
1000
1125
  export type KnowledgeDocumentUpsertWithWhereUniqueWithoutParentInput = {
@@ -1046,6 +1171,7 @@ export type KnowledgeDocumentUpdateWithoutCreatorInput = {
1046
1171
  kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
1047
1172
  parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
1048
1173
  children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1174
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
1049
1175
  }
1050
1176
 
1051
1177
  export type KnowledgeDocumentUncheckedUpdateWithoutCreatorInput = {
@@ -1064,6 +1190,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutCreatorInput = {
1064
1190
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1065
1191
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1066
1192
  children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1193
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
1067
1194
  }
1068
1195
 
1069
1196
  export type KnowledgeDocumentUncheckedUpdateManyWithoutCreatorInput = {
@@ -1116,6 +1243,7 @@ export type KnowledgeDocumentUpdateWithoutKbInput = {
1116
1243
  parent?: Prisma.KnowledgeDocumentUpdateOneWithoutChildrenNestedInput
1117
1244
  children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1118
1245
  creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1246
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
1119
1247
  }
1120
1248
 
1121
1249
  export type KnowledgeDocumentUncheckedUpdateWithoutKbInput = {
@@ -1134,6 +1262,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutKbInput = {
1134
1262
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1135
1263
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1136
1264
  children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1265
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
1137
1266
  }
1138
1267
 
1139
1268
  export type KnowledgeDocumentUncheckedUpdateManyWithoutKbInput = {
@@ -1186,6 +1315,7 @@ export type KnowledgeDocumentUpdateWithoutParentInput = {
1186
1315
  kb?: Prisma.KnowledgeBaseUpdateOneRequiredWithoutDocumentsNestedInput
1187
1316
  children?: Prisma.KnowledgeDocumentUpdateManyWithoutParentNestedInput
1188
1317
  creator?: Prisma.UserUpdateOneRequiredWithoutKnowledgeDocumentsNestedInput
1318
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUpdateManyWithoutDocNestedInput
1189
1319
  }
1190
1320
 
1191
1321
  export type KnowledgeDocumentUncheckedUpdateWithoutParentInput = {
@@ -1204,6 +1334,7 @@ export type KnowledgeDocumentUncheckedUpdateWithoutParentInput = {
1204
1334
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1205
1335
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1206
1336
  children?: Prisma.KnowledgeDocumentUncheckedUpdateManyWithoutParentNestedInput
1337
+ workspaceQuickDocs?: Prisma.WorkspaceQuickDocUncheckedUpdateManyWithoutDocNestedInput
1207
1338
  }
1208
1339
 
1209
1340
  export type KnowledgeDocumentUncheckedUpdateManyWithoutParentInput = {
@@ -1230,10 +1361,12 @@ export type KnowledgeDocumentUncheckedUpdateManyWithoutParentInput = {
1230
1361
 
1231
1362
  export type KnowledgeDocumentCountOutputType = {
1232
1363
  children: number
1364
+ workspaceQuickDocs: number
1233
1365
  }
1234
1366
 
1235
1367
  export type KnowledgeDocumentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1236
1368
  children?: boolean | KnowledgeDocumentCountOutputTypeCountChildrenArgs
1369
+ workspaceQuickDocs?: boolean | KnowledgeDocumentCountOutputTypeCountWorkspaceQuickDocsArgs
1237
1370
  }
1238
1371
 
1239
1372
  /**
@@ -1253,6 +1386,13 @@ export type KnowledgeDocumentCountOutputTypeCountChildrenArgs<ExtArgs extends ru
1253
1386
  where?: Prisma.KnowledgeDocumentWhereInput
1254
1387
  }
1255
1388
 
1389
+ /**
1390
+ * KnowledgeDocumentCountOutputType without action
1391
+ */
1392
+ export type KnowledgeDocumentCountOutputTypeCountWorkspaceQuickDocsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1393
+ where?: Prisma.WorkspaceQuickDocWhereInput
1394
+ }
1395
+
1256
1396
 
1257
1397
  export type KnowledgeDocumentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1258
1398
  id?: boolean
@@ -1274,6 +1414,7 @@ export type KnowledgeDocumentSelect<ExtArgs extends runtime.Types.Extensions.Int
1274
1414
  parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1275
1415
  children?: boolean | Prisma.KnowledgeDocument$childrenArgs<ExtArgs>
1276
1416
  creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1417
+ workspaceQuickDocs?: boolean | Prisma.KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs>
1277
1418
  _count?: boolean | Prisma.KnowledgeDocumentCountOutputTypeDefaultArgs<ExtArgs>
1278
1419
  }, ExtArgs["result"]["knowledgeDocument"]>
1279
1420
 
@@ -1343,6 +1484,7 @@ export type KnowledgeDocumentInclude<ExtArgs extends runtime.Types.Extensions.In
1343
1484
  parent?: boolean | Prisma.KnowledgeDocument$parentArgs<ExtArgs>
1344
1485
  children?: boolean | Prisma.KnowledgeDocument$childrenArgs<ExtArgs>
1345
1486
  creator?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1487
+ workspaceQuickDocs?: boolean | Prisma.KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs>
1346
1488
  _count?: boolean | Prisma.KnowledgeDocumentCountOutputTypeDefaultArgs<ExtArgs>
1347
1489
  }
1348
1490
  export type KnowledgeDocumentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -1363,6 +1505,7 @@ export type $KnowledgeDocumentPayload<ExtArgs extends runtime.Types.Extensions.I
1363
1505
  parent: Prisma.$KnowledgeDocumentPayload<ExtArgs> | null
1364
1506
  children: Prisma.$KnowledgeDocumentPayload<ExtArgs>[]
1365
1507
  creator: Prisma.$UserPayload<ExtArgs>
1508
+ workspaceQuickDocs: Prisma.$WorkspaceQuickDocPayload<ExtArgs>[]
1366
1509
  }
1367
1510
  scalars: runtime.Types.Extensions.GetPayloadResult<{
1368
1511
  id: string
@@ -1778,6 +1921,7 @@ export interface Prisma__KnowledgeDocumentClient<T, Null = never, ExtArgs extend
1778
1921
  parent<T extends Prisma.KnowledgeDocument$parentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeDocument$parentArgs<ExtArgs>>): Prisma.Prisma__KnowledgeDocumentClient<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1779
1922
  children<T extends Prisma.KnowledgeDocument$childrenArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeDocument$childrenArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$KnowledgeDocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1780
1923
  creator<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>
1924
+ workspaceQuickDocs<T extends Prisma.KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$WorkspaceQuickDocPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1781
1925
  /**
1782
1926
  * Attaches callbacks for the resolution and/or rejection of the Promise.
1783
1927
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -2263,6 +2407,30 @@ export type KnowledgeDocument$childrenArgs<ExtArgs extends runtime.Types.Extensi
2263
2407
  distinct?: Prisma.KnowledgeDocumentScalarFieldEnum | Prisma.KnowledgeDocumentScalarFieldEnum[]
2264
2408
  }
2265
2409
 
2410
+ /**
2411
+ * KnowledgeDocument.workspaceQuickDocs
2412
+ */
2413
+ export type KnowledgeDocument$workspaceQuickDocsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2414
+ /**
2415
+ * Select specific fields to fetch from the WorkspaceQuickDoc
2416
+ */
2417
+ select?: Prisma.WorkspaceQuickDocSelect<ExtArgs> | null
2418
+ /**
2419
+ * Omit specific fields from the WorkspaceQuickDoc
2420
+ */
2421
+ omit?: Prisma.WorkspaceQuickDocOmit<ExtArgs> | null
2422
+ /**
2423
+ * Choose, which related nodes to fetch as well
2424
+ */
2425
+ include?: Prisma.WorkspaceQuickDocInclude<ExtArgs> | null
2426
+ where?: Prisma.WorkspaceQuickDocWhereInput
2427
+ orderBy?: Prisma.WorkspaceQuickDocOrderByWithRelationInput | Prisma.WorkspaceQuickDocOrderByWithRelationInput[]
2428
+ cursor?: Prisma.WorkspaceQuickDocWhereUniqueInput
2429
+ take?: number
2430
+ skip?: number
2431
+ distinct?: Prisma.WorkspaceQuickDocScalarFieldEnum | Prisma.WorkspaceQuickDocScalarFieldEnum[]
2432
+ }
2433
+
2266
2434
  /**
2267
2435
  * KnowledgeDocument without action
2268
2436
  */