@allbluecn/database 0.9.1 → 0.9.3

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 (150) hide show
  1. package/cf-env-stub.ts +4 -0
  2. package/cf-env.ts +25 -0
  3. package/cloudflare-workers.d.ts +6 -0
  4. package/desktop-init.ts +2 -2
  5. package/dist/cf-env-stub.d.ts +1 -0
  6. package/dist/cf-env-stub.js +4 -0
  7. package/dist/cf-env.d.ts +1 -0
  8. package/dist/cf-env.js +8 -0
  9. package/dist/lib/share-utils.js +3 -3
  10. package/generated/browser.ts +143 -38
  11. package/generated/client.ts +143 -38
  12. package/generated/commonInputTypes.ts +34 -0
  13. package/generated/enums.ts +14 -0
  14. package/generated/internal/class.ts +290 -80
  15. package/generated/internal/prismaNamespace.ts +3756 -1797
  16. package/generated/internal/prismaNamespaceBrowser.ts +478 -108
  17. package/generated/models/AgentConversation.ts +89 -89
  18. package/generated/models/AiProvider.ts +3 -3
  19. package/generated/models/AiStreamChunk.ts +3 -3
  20. package/generated/models/AiTask.ts +2481 -0
  21. package/generated/models/AiTaskRun.ts +1564 -0
  22. package/generated/models/AnyHubMarketApp.ts +8 -8
  23. package/generated/models/AuditLog.ts +6 -6
  24. package/generated/models/BlockInstance.ts +17 -17
  25. package/generated/models/Bug.ts +5116 -0
  26. package/generated/models/BugActivity.ts +1765 -0
  27. package/generated/models/BugComment.ts +1992 -0
  28. package/generated/models/BugCommentReaction.ts +1472 -0
  29. package/generated/models/BugEvent.ts +1339 -0
  30. package/generated/models/BugFilterView.ts +1438 -0
  31. package/generated/models/BugFixRun.ts +1479 -0
  32. package/generated/models/BugLabel.ts +1349 -0
  33. package/generated/models/BugProjectSettings.ts +1403 -0
  34. package/generated/models/BugReproRun.ts +1582 -0
  35. package/generated/models/ChatPersistenceMeta.ts +3 -3
  36. package/generated/models/CollabClient.ts +1199 -0
  37. package/generated/models/CollabDocument.ts +1121 -0
  38. package/generated/models/CollabUpdate.ts +1149 -0
  39. package/generated/models/Comment.ts +99 -99
  40. package/generated/models/Component.ts +7 -201
  41. package/generated/models/ComponentInstance.ts +17 -17
  42. package/generated/models/CustomRole.ts +8 -8
  43. package/generated/models/Design.ts +2682 -0
  44. package/generated/models/DesignPage.ts +2402 -0
  45. package/generated/models/DesignVersion.ts +2121 -0
  46. package/generated/models/DesktopSetting.ts +3 -3
  47. package/generated/models/Iteration.ts +148 -0
  48. package/generated/models/Label.ts +118 -0
  49. package/generated/models/LicenseKey.ts +16 -16
  50. package/generated/models/NotificationPreference.ts +5 -5
  51. package/generated/models/PageVersion.ts +49 -49
  52. package/generated/models/Plan.ts +5 -5
  53. package/generated/models/Project.ts +2240 -67
  54. package/generated/models/ProjectAccessToken.ts +1705 -0
  55. package/generated/models/ProjectWebhook.ts +1409 -0
  56. package/generated/models/Review.ts +118 -118
  57. package/generated/models/Share.ts +83 -83
  58. package/generated/models/ShareVersion.ts +15 -15
  59. package/generated/models/SsoProvider.ts +8 -8
  60. package/generated/models/Story.ts +973 -87
  61. package/generated/models/StoryDesignLink.ts +1430 -0
  62. package/generated/models/StoryFilterView.ts +12 -12
  63. package/generated/models/SystemPromptVersion.ts +6 -6
  64. package/generated/models/TestAutomationArtifact.ts +1790 -0
  65. package/generated/models/TestCase.ts +3645 -0
  66. package/generated/models/TestCaseFilterView.ts +1587 -0
  67. package/generated/models/TestCaseFolder.ts +1795 -0
  68. package/generated/models/TestExecRun.ts +1673 -0
  69. package/generated/models/TestGenerationRun.ts +1952 -0
  70. package/generated/models/TestPlan.ts +1950 -0
  71. package/generated/models/TestPlanCase.ts +1430 -0
  72. package/generated/models/TestRun.ts +1979 -0
  73. package/generated/models/TestRunCase.ts +2772 -0
  74. package/generated/models/ThirdPartyDependency.ts +19 -15
  75. package/generated/models/User.ts +13573 -3351
  76. package/generated/models/Workspace.ts +204 -0
  77. package/generated/models.ts +31 -10
  78. package/generated-sqlite/browser.ts +6 -36
  79. package/generated-sqlite/client.ts +6 -36
  80. package/generated-sqlite/internal/class.ts +16 -76
  81. package/generated-sqlite/internal/prismaNamespace.ts +127 -659
  82. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +21 -103
  83. package/generated-sqlite/models/AgentConversation.ts +89 -89
  84. package/generated-sqlite/models/AiProvider.ts +3 -3
  85. package/generated-sqlite/models/AiStreamChunk.ts +3 -3
  86. package/generated-sqlite/models/AnyHubMarketApp.ts +8 -8
  87. package/generated-sqlite/models/BlockInstance.ts +17 -17
  88. package/generated-sqlite/models/ChatPersistenceMeta.ts +3 -3
  89. package/generated-sqlite/models/Comment.ts +99 -99
  90. package/generated-sqlite/models/Component.ts +7 -201
  91. package/generated-sqlite/models/ComponentInstance.ts +17 -17
  92. package/generated-sqlite/models/Design.ts +2497 -0
  93. package/generated-sqlite/models/DesignPage.ts +2398 -0
  94. package/generated-sqlite/models/DesignVersion.ts +2117 -0
  95. package/generated-sqlite/models/DesktopSetting.ts +3 -3
  96. package/generated-sqlite/models/KnowledgeBase.ts +240 -1
  97. package/generated-sqlite/models/NotificationPreference.ts +5 -5
  98. package/generated-sqlite/models/PageVersion.ts +49 -49
  99. package/generated-sqlite/models/Review.ts +118 -118
  100. package/generated-sqlite/models/Share.ts +83 -83
  101. package/generated-sqlite/models/ShareVersion.ts +15 -15
  102. package/generated-sqlite/models/SystemPromptVersion.ts +6 -6
  103. package/generated-sqlite/models/User.ts +1310 -2016
  104. package/generated-sqlite/models/Workspace.ts +164 -0
  105. package/generated-sqlite/models.ts +3 -9
  106. package/index.ts +31 -3
  107. package/migrations/20260924084200_add_prd_kind_drop_design_sketch/migration.sql +24 -0
  108. package/migrations/20260924123118_drop_user_sketch_api_token/migration.sql +8 -0
  109. package/migrations/20260925011516_rename_prd_tables/migration.sql +189 -0
  110. package/migrations/20260925064226_rename_prd_columns/migration.sql +193 -0
  111. package/migrations/20260925080000_rename_prd_embeddings/migration.sql +43 -0
  112. package/migrations/20261002184838_bug_module_init/migration.sql +297 -0
  113. package/migrations/20261004234209_testcase_module_init/migration.sql +290 -0
  114. package/migrations/20261005090000_testcase_plan_cases/migration.sql +34 -0
  115. package/migrations/20261006151229_add_missing_fk_indexes_auth_billing/migration.sql +50 -0
  116. package/migrations/20261006152058_add_missing_fk_indexes_story_bug_test/migration.sql +59 -0
  117. package/migrations/20261006152153_add_missing_fk_indexes_design_misc/migration.sql +50 -0
  118. package/migrations/20261006184250_explicit_on_delete_core/migration.sql +33 -0
  119. package/migrations/20261006184604_explicit_on_delete_rest/migration.sql +117 -0
  120. package/migrations/20261006184932_json_column_defaults/migration.sql +74 -0
  121. package/migrations/20261006191724_revert_version_token_cascade/migration.sql +21 -0
  122. package/migrations/20261007025537_dependency_category_enum/migration.sql +22 -0
  123. package/migrations/20261007112656_collab_init/migration.sql +45 -0
  124. package/migrations/20261007122530_collab_client_clientid_bigint/migration.sql +10 -0
  125. package/migrations/20261009194853_remove_tag_module/migration.sql +24 -0
  126. package/migrations/20261009222043_ai_task_init/migration.sql +67 -0
  127. package/migrations/20261019202531_ui_alignment_board_order/migration.sql +35 -0
  128. package/package.json +17 -6
  129. package/schema.prisma +777 -222
  130. package/schema.sqlite.prisma +140 -196
  131. package/src/lib/share-utils.ts +2 -2
  132. package/generated/models/Artboard.ts +0 -1811
  133. package/generated/models/ArtboardExport.ts +0 -1548
  134. package/generated/models/ComponentTag.ts +0 -1281
  135. package/generated/models/DesignProject.ts +0 -1643
  136. package/generated/models/PRD.ts +0 -2805
  137. package/generated/models/PRDPage.ts +0 -2402
  138. package/generated/models/PRDTag.ts +0 -1430
  139. package/generated/models/PRDVersion.ts +0 -2121
  140. package/generated/models/StoryPrdLink.ts +0 -1430
  141. package/generated/models/Tag.ts +0 -1655
  142. package/generated-sqlite/models/Artboard.ts +0 -1808
  143. package/generated-sqlite/models/ArtboardExport.ts +0 -1545
  144. package/generated-sqlite/models/ComponentTag.ts +0 -1278
  145. package/generated-sqlite/models/DesignProject.ts +0 -1640
  146. package/generated-sqlite/models/PRD.ts +0 -2616
  147. package/generated-sqlite/models/PRDPage.ts +0 -2398
  148. package/generated-sqlite/models/PRDTag.ts +0 -1426
  149. package/generated-sqlite/models/PRDVersion.ts +0 -2117
  150. package/generated-sqlite/models/Tag.ts +0 -1652
@@ -26,7 +26,7 @@ export type AggregateShare = {
26
26
 
27
27
  export type ShareMinAggregateOutputType = {
28
28
  id: string | null
29
- prdId: string | null
29
+ designId: string | null
30
30
  token: string | null
31
31
  type: string | null
32
32
  status: string | null
@@ -39,7 +39,7 @@ export type ShareMinAggregateOutputType = {
39
39
 
40
40
  export type ShareMaxAggregateOutputType = {
41
41
  id: string | null
42
- prdId: string | null
42
+ designId: string | null
43
43
  token: string | null
44
44
  type: string | null
45
45
  status: string | null
@@ -52,7 +52,7 @@ export type ShareMaxAggregateOutputType = {
52
52
 
53
53
  export type ShareCountAggregateOutputType = {
54
54
  id: number
55
- prdId: number
55
+ designId: number
56
56
  token: number
57
57
  type: number
58
58
  status: number
@@ -67,7 +67,7 @@ export type ShareCountAggregateOutputType = {
67
67
 
68
68
  export type ShareMinAggregateInputType = {
69
69
  id?: true
70
- prdId?: true
70
+ designId?: true
71
71
  token?: true
72
72
  type?: true
73
73
  status?: true
@@ -80,7 +80,7 @@ export type ShareMinAggregateInputType = {
80
80
 
81
81
  export type ShareMaxAggregateInputType = {
82
82
  id?: true
83
- prdId?: true
83
+ designId?: true
84
84
  token?: true
85
85
  type?: true
86
86
  status?: true
@@ -93,7 +93,7 @@ export type ShareMaxAggregateInputType = {
93
93
 
94
94
  export type ShareCountAggregateInputType = {
95
95
  id?: true
96
- prdId?: true
96
+ designId?: true
97
97
  token?: true
98
98
  type?: true
99
99
  status?: true
@@ -179,7 +179,7 @@ export type ShareGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalAr
179
179
 
180
180
  export type ShareGroupByOutputType = {
181
181
  id: string
182
- prdId: string
182
+ designId: string
183
183
  token: string
184
184
  type: string
185
185
  status: string
@@ -213,7 +213,7 @@ export type ShareWhereInput = {
213
213
  OR?: Prisma.ShareWhereInput[]
214
214
  NOT?: Prisma.ShareWhereInput | Prisma.ShareWhereInput[]
215
215
  id?: Prisma.StringFilter<"Share"> | string
216
- prdId?: Prisma.StringFilter<"Share"> | string
216
+ designId?: Prisma.StringFilter<"Share"> | string
217
217
  token?: Prisma.StringFilter<"Share"> | string
218
218
  type?: Prisma.StringFilter<"Share"> | string
219
219
  status?: Prisma.StringFilter<"Share"> | string
@@ -222,13 +222,13 @@ export type ShareWhereInput = {
222
222
  expiresAt?: Prisma.DateTimeNullableFilter<"Share"> | Date | string | null
223
223
  createdAt?: Prisma.DateTimeFilter<"Share"> | Date | string
224
224
  updatedAt?: Prisma.DateTimeFilter<"Share"> | Date | string
225
- prd?: Prisma.XOR<Prisma.PRDScalarRelationFilter, Prisma.PRDWhereInput>
225
+ design?: Prisma.XOR<Prisma.DesignScalarRelationFilter, Prisma.DesignWhereInput>
226
226
  shareVersions?: Prisma.ShareVersionListRelationFilter
227
227
  }
228
228
 
229
229
  export type ShareOrderByWithRelationInput = {
230
230
  id?: Prisma.SortOrder
231
- prdId?: Prisma.SortOrder
231
+ designId?: Prisma.SortOrder
232
232
  token?: Prisma.SortOrder
233
233
  type?: Prisma.SortOrder
234
234
  status?: Prisma.SortOrder
@@ -237,7 +237,7 @@ export type ShareOrderByWithRelationInput = {
237
237
  expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
238
238
  createdAt?: Prisma.SortOrder
239
239
  updatedAt?: Prisma.SortOrder
240
- prd?: Prisma.PRDOrderByWithRelationInput
240
+ design?: Prisma.DesignOrderByWithRelationInput
241
241
  shareVersions?: Prisma.ShareVersionOrderByRelationAggregateInput
242
242
  }
243
243
 
@@ -247,7 +247,7 @@ export type ShareWhereUniqueInput = Prisma.AtLeast<{
247
247
  AND?: Prisma.ShareWhereInput | Prisma.ShareWhereInput[]
248
248
  OR?: Prisma.ShareWhereInput[]
249
249
  NOT?: Prisma.ShareWhereInput | Prisma.ShareWhereInput[]
250
- prdId?: Prisma.StringFilter<"Share"> | string
250
+ designId?: Prisma.StringFilter<"Share"> | string
251
251
  type?: Prisma.StringFilter<"Share"> | string
252
252
  status?: Prisma.StringFilter<"Share"> | string
253
253
  password?: Prisma.StringNullableFilter<"Share"> | string | null
@@ -255,13 +255,13 @@ export type ShareWhereUniqueInput = Prisma.AtLeast<{
255
255
  expiresAt?: Prisma.DateTimeNullableFilter<"Share"> | Date | string | null
256
256
  createdAt?: Prisma.DateTimeFilter<"Share"> | Date | string
257
257
  updatedAt?: Prisma.DateTimeFilter<"Share"> | Date | string
258
- prd?: Prisma.XOR<Prisma.PRDScalarRelationFilter, Prisma.PRDWhereInput>
258
+ design?: Prisma.XOR<Prisma.DesignScalarRelationFilter, Prisma.DesignWhereInput>
259
259
  shareVersions?: Prisma.ShareVersionListRelationFilter
260
260
  }, "id" | "token">
261
261
 
262
262
  export type ShareOrderByWithAggregationInput = {
263
263
  id?: Prisma.SortOrder
264
- prdId?: Prisma.SortOrder
264
+ designId?: Prisma.SortOrder
265
265
  token?: Prisma.SortOrder
266
266
  type?: Prisma.SortOrder
267
267
  status?: Prisma.SortOrder
@@ -280,7 +280,7 @@ export type ShareScalarWhereWithAggregatesInput = {
280
280
  OR?: Prisma.ShareScalarWhereWithAggregatesInput[]
281
281
  NOT?: Prisma.ShareScalarWhereWithAggregatesInput | Prisma.ShareScalarWhereWithAggregatesInput[]
282
282
  id?: Prisma.StringWithAggregatesFilter<"Share"> | string
283
- prdId?: Prisma.StringWithAggregatesFilter<"Share"> | string
283
+ designId?: Prisma.StringWithAggregatesFilter<"Share"> | string
284
284
  token?: Prisma.StringWithAggregatesFilter<"Share"> | string
285
285
  type?: Prisma.StringWithAggregatesFilter<"Share"> | string
286
286
  status?: Prisma.StringWithAggregatesFilter<"Share"> | string
@@ -301,13 +301,13 @@ export type ShareCreateInput = {
301
301
  expiresAt?: Date | string | null
302
302
  createdAt?: Date | string
303
303
  updatedAt?: Date | string
304
- prd: Prisma.PRDCreateNestedOneWithoutSharesInput
304
+ design: Prisma.DesignCreateNestedOneWithoutSharesInput
305
305
  shareVersions?: Prisma.ShareVersionCreateNestedManyWithoutShareInput
306
306
  }
307
307
 
308
308
  export type ShareUncheckedCreateInput = {
309
309
  id?: string
310
- prdId: string
310
+ designId: string
311
311
  token: string
312
312
  type?: string
313
313
  status?: string
@@ -329,13 +329,13 @@ export type ShareUpdateInput = {
329
329
  expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
330
330
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
331
331
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
332
- prd?: Prisma.PRDUpdateOneRequiredWithoutSharesNestedInput
332
+ design?: Prisma.DesignUpdateOneRequiredWithoutSharesNestedInput
333
333
  shareVersions?: Prisma.ShareVersionUpdateManyWithoutShareNestedInput
334
334
  }
335
335
 
336
336
  export type ShareUncheckedUpdateInput = {
337
337
  id?: Prisma.StringFieldUpdateOperationsInput | string
338
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
338
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
339
339
  token?: Prisma.StringFieldUpdateOperationsInput | string
340
340
  type?: Prisma.StringFieldUpdateOperationsInput | string
341
341
  status?: Prisma.StringFieldUpdateOperationsInput | string
@@ -349,7 +349,7 @@ export type ShareUncheckedUpdateInput = {
349
349
 
350
350
  export type ShareCreateManyInput = {
351
351
  id?: string
352
- prdId: string
352
+ designId: string
353
353
  token: string
354
354
  type?: string
355
355
  status?: string
@@ -374,7 +374,7 @@ export type ShareUpdateManyMutationInput = {
374
374
 
375
375
  export type ShareUncheckedUpdateManyInput = {
376
376
  id?: Prisma.StringFieldUpdateOperationsInput | string
377
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
377
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
378
378
  token?: Prisma.StringFieldUpdateOperationsInput | string
379
379
  type?: Prisma.StringFieldUpdateOperationsInput | string
380
380
  status?: Prisma.StringFieldUpdateOperationsInput | string
@@ -397,7 +397,7 @@ export type ShareOrderByRelationAggregateInput = {
397
397
 
398
398
  export type ShareCountOrderByAggregateInput = {
399
399
  id?: Prisma.SortOrder
400
- prdId?: Prisma.SortOrder
400
+ designId?: Prisma.SortOrder
401
401
  token?: Prisma.SortOrder
402
402
  type?: Prisma.SortOrder
403
403
  status?: Prisma.SortOrder
@@ -410,7 +410,7 @@ export type ShareCountOrderByAggregateInput = {
410
410
 
411
411
  export type ShareMaxOrderByAggregateInput = {
412
412
  id?: Prisma.SortOrder
413
- prdId?: Prisma.SortOrder
413
+ designId?: Prisma.SortOrder
414
414
  token?: Prisma.SortOrder
415
415
  type?: Prisma.SortOrder
416
416
  status?: Prisma.SortOrder
@@ -423,7 +423,7 @@ export type ShareMaxOrderByAggregateInput = {
423
423
 
424
424
  export type ShareMinOrderByAggregateInput = {
425
425
  id?: Prisma.SortOrder
426
- prdId?: Prisma.SortOrder
426
+ designId?: Prisma.SortOrder
427
427
  token?: Prisma.SortOrder
428
428
  type?: Prisma.SortOrder
429
429
  status?: Prisma.SortOrder
@@ -439,45 +439,45 @@ export type ShareScalarRelationFilter = {
439
439
  isNot?: Prisma.ShareWhereInput
440
440
  }
441
441
 
442
- export type ShareCreateNestedManyWithoutPrdInput = {
443
- create?: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput> | Prisma.ShareCreateWithoutPrdInput[] | Prisma.ShareUncheckedCreateWithoutPrdInput[]
444
- connectOrCreate?: Prisma.ShareCreateOrConnectWithoutPrdInput | Prisma.ShareCreateOrConnectWithoutPrdInput[]
445
- createMany?: Prisma.ShareCreateManyPrdInputEnvelope
442
+ export type ShareCreateNestedManyWithoutDesignInput = {
443
+ create?: Prisma.XOR<Prisma.ShareCreateWithoutDesignInput, Prisma.ShareUncheckedCreateWithoutDesignInput> | Prisma.ShareCreateWithoutDesignInput[] | Prisma.ShareUncheckedCreateWithoutDesignInput[]
444
+ connectOrCreate?: Prisma.ShareCreateOrConnectWithoutDesignInput | Prisma.ShareCreateOrConnectWithoutDesignInput[]
445
+ createMany?: Prisma.ShareCreateManyDesignInputEnvelope
446
446
  connect?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
447
447
  }
448
448
 
449
- export type ShareUncheckedCreateNestedManyWithoutPrdInput = {
450
- create?: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput> | Prisma.ShareCreateWithoutPrdInput[] | Prisma.ShareUncheckedCreateWithoutPrdInput[]
451
- connectOrCreate?: Prisma.ShareCreateOrConnectWithoutPrdInput | Prisma.ShareCreateOrConnectWithoutPrdInput[]
452
- createMany?: Prisma.ShareCreateManyPrdInputEnvelope
449
+ export type ShareUncheckedCreateNestedManyWithoutDesignInput = {
450
+ create?: Prisma.XOR<Prisma.ShareCreateWithoutDesignInput, Prisma.ShareUncheckedCreateWithoutDesignInput> | Prisma.ShareCreateWithoutDesignInput[] | Prisma.ShareUncheckedCreateWithoutDesignInput[]
451
+ connectOrCreate?: Prisma.ShareCreateOrConnectWithoutDesignInput | Prisma.ShareCreateOrConnectWithoutDesignInput[]
452
+ createMany?: Prisma.ShareCreateManyDesignInputEnvelope
453
453
  connect?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
454
454
  }
455
455
 
456
- export type ShareUpdateManyWithoutPrdNestedInput = {
457
- create?: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput> | Prisma.ShareCreateWithoutPrdInput[] | Prisma.ShareUncheckedCreateWithoutPrdInput[]
458
- connectOrCreate?: Prisma.ShareCreateOrConnectWithoutPrdInput | Prisma.ShareCreateOrConnectWithoutPrdInput[]
459
- upsert?: Prisma.ShareUpsertWithWhereUniqueWithoutPrdInput | Prisma.ShareUpsertWithWhereUniqueWithoutPrdInput[]
460
- createMany?: Prisma.ShareCreateManyPrdInputEnvelope
456
+ export type ShareUpdateManyWithoutDesignNestedInput = {
457
+ create?: Prisma.XOR<Prisma.ShareCreateWithoutDesignInput, Prisma.ShareUncheckedCreateWithoutDesignInput> | Prisma.ShareCreateWithoutDesignInput[] | Prisma.ShareUncheckedCreateWithoutDesignInput[]
458
+ connectOrCreate?: Prisma.ShareCreateOrConnectWithoutDesignInput | Prisma.ShareCreateOrConnectWithoutDesignInput[]
459
+ upsert?: Prisma.ShareUpsertWithWhereUniqueWithoutDesignInput | Prisma.ShareUpsertWithWhereUniqueWithoutDesignInput[]
460
+ createMany?: Prisma.ShareCreateManyDesignInputEnvelope
461
461
  set?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
462
462
  disconnect?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
463
463
  delete?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
464
464
  connect?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
465
- update?: Prisma.ShareUpdateWithWhereUniqueWithoutPrdInput | Prisma.ShareUpdateWithWhereUniqueWithoutPrdInput[]
466
- updateMany?: Prisma.ShareUpdateManyWithWhereWithoutPrdInput | Prisma.ShareUpdateManyWithWhereWithoutPrdInput[]
465
+ update?: Prisma.ShareUpdateWithWhereUniqueWithoutDesignInput | Prisma.ShareUpdateWithWhereUniqueWithoutDesignInput[]
466
+ updateMany?: Prisma.ShareUpdateManyWithWhereWithoutDesignInput | Prisma.ShareUpdateManyWithWhereWithoutDesignInput[]
467
467
  deleteMany?: Prisma.ShareScalarWhereInput | Prisma.ShareScalarWhereInput[]
468
468
  }
469
469
 
470
- export type ShareUncheckedUpdateManyWithoutPrdNestedInput = {
471
- create?: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput> | Prisma.ShareCreateWithoutPrdInput[] | Prisma.ShareUncheckedCreateWithoutPrdInput[]
472
- connectOrCreate?: Prisma.ShareCreateOrConnectWithoutPrdInput | Prisma.ShareCreateOrConnectWithoutPrdInput[]
473
- upsert?: Prisma.ShareUpsertWithWhereUniqueWithoutPrdInput | Prisma.ShareUpsertWithWhereUniqueWithoutPrdInput[]
474
- createMany?: Prisma.ShareCreateManyPrdInputEnvelope
470
+ export type ShareUncheckedUpdateManyWithoutDesignNestedInput = {
471
+ create?: Prisma.XOR<Prisma.ShareCreateWithoutDesignInput, Prisma.ShareUncheckedCreateWithoutDesignInput> | Prisma.ShareCreateWithoutDesignInput[] | Prisma.ShareUncheckedCreateWithoutDesignInput[]
472
+ connectOrCreate?: Prisma.ShareCreateOrConnectWithoutDesignInput | Prisma.ShareCreateOrConnectWithoutDesignInput[]
473
+ upsert?: Prisma.ShareUpsertWithWhereUniqueWithoutDesignInput | Prisma.ShareUpsertWithWhereUniqueWithoutDesignInput[]
474
+ createMany?: Prisma.ShareCreateManyDesignInputEnvelope
475
475
  set?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
476
476
  disconnect?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
477
477
  delete?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
478
478
  connect?: Prisma.ShareWhereUniqueInput | Prisma.ShareWhereUniqueInput[]
479
- update?: Prisma.ShareUpdateWithWhereUniqueWithoutPrdInput | Prisma.ShareUpdateWithWhereUniqueWithoutPrdInput[]
480
- updateMany?: Prisma.ShareUpdateManyWithWhereWithoutPrdInput | Prisma.ShareUpdateManyWithWhereWithoutPrdInput[]
479
+ update?: Prisma.ShareUpdateWithWhereUniqueWithoutDesignInput | Prisma.ShareUpdateWithWhereUniqueWithoutDesignInput[]
480
+ updateMany?: Prisma.ShareUpdateManyWithWhereWithoutDesignInput | Prisma.ShareUpdateManyWithWhereWithoutDesignInput[]
481
481
  deleteMany?: Prisma.ShareScalarWhereInput | Prisma.ShareScalarWhereInput[]
482
482
  }
483
483
 
@@ -495,7 +495,7 @@ export type ShareUpdateOneRequiredWithoutShareVersionsNestedInput = {
495
495
  update?: Prisma.XOR<Prisma.XOR<Prisma.ShareUpdateToOneWithWhereWithoutShareVersionsInput, Prisma.ShareUpdateWithoutShareVersionsInput>, Prisma.ShareUncheckedUpdateWithoutShareVersionsInput>
496
496
  }
497
497
 
498
- export type ShareCreateWithoutPrdInput = {
498
+ export type ShareCreateWithoutDesignInput = {
499
499
  id?: string
500
500
  token: string
501
501
  type?: string
@@ -508,7 +508,7 @@ export type ShareCreateWithoutPrdInput = {
508
508
  shareVersions?: Prisma.ShareVersionCreateNestedManyWithoutShareInput
509
509
  }
510
510
 
511
- export type ShareUncheckedCreateWithoutPrdInput = {
511
+ export type ShareUncheckedCreateWithoutDesignInput = {
512
512
  id?: string
513
513
  token: string
514
514
  type?: string
@@ -521,29 +521,29 @@ export type ShareUncheckedCreateWithoutPrdInput = {
521
521
  shareVersions?: Prisma.ShareVersionUncheckedCreateNestedManyWithoutShareInput
522
522
  }
523
523
 
524
- export type ShareCreateOrConnectWithoutPrdInput = {
524
+ export type ShareCreateOrConnectWithoutDesignInput = {
525
525
  where: Prisma.ShareWhereUniqueInput
526
- create: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput>
526
+ create: Prisma.XOR<Prisma.ShareCreateWithoutDesignInput, Prisma.ShareUncheckedCreateWithoutDesignInput>
527
527
  }
528
528
 
529
- export type ShareCreateManyPrdInputEnvelope = {
530
- data: Prisma.ShareCreateManyPrdInput | Prisma.ShareCreateManyPrdInput[]
529
+ export type ShareCreateManyDesignInputEnvelope = {
530
+ data: Prisma.ShareCreateManyDesignInput | Prisma.ShareCreateManyDesignInput[]
531
531
  }
532
532
 
533
- export type ShareUpsertWithWhereUniqueWithoutPrdInput = {
533
+ export type ShareUpsertWithWhereUniqueWithoutDesignInput = {
534
534
  where: Prisma.ShareWhereUniqueInput
535
- update: Prisma.XOR<Prisma.ShareUpdateWithoutPrdInput, Prisma.ShareUncheckedUpdateWithoutPrdInput>
536
- create: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput>
535
+ update: Prisma.XOR<Prisma.ShareUpdateWithoutDesignInput, Prisma.ShareUncheckedUpdateWithoutDesignInput>
536
+ create: Prisma.XOR<Prisma.ShareCreateWithoutDesignInput, Prisma.ShareUncheckedCreateWithoutDesignInput>
537
537
  }
538
538
 
539
- export type ShareUpdateWithWhereUniqueWithoutPrdInput = {
539
+ export type ShareUpdateWithWhereUniqueWithoutDesignInput = {
540
540
  where: Prisma.ShareWhereUniqueInput
541
- data: Prisma.XOR<Prisma.ShareUpdateWithoutPrdInput, Prisma.ShareUncheckedUpdateWithoutPrdInput>
541
+ data: Prisma.XOR<Prisma.ShareUpdateWithoutDesignInput, Prisma.ShareUncheckedUpdateWithoutDesignInput>
542
542
  }
543
543
 
544
- export type ShareUpdateManyWithWhereWithoutPrdInput = {
544
+ export type ShareUpdateManyWithWhereWithoutDesignInput = {
545
545
  where: Prisma.ShareScalarWhereInput
546
- data: Prisma.XOR<Prisma.ShareUpdateManyMutationInput, Prisma.ShareUncheckedUpdateManyWithoutPrdInput>
546
+ data: Prisma.XOR<Prisma.ShareUpdateManyMutationInput, Prisma.ShareUncheckedUpdateManyWithoutDesignInput>
547
547
  }
548
548
 
549
549
  export type ShareScalarWhereInput = {
@@ -551,7 +551,7 @@ export type ShareScalarWhereInput = {
551
551
  OR?: Prisma.ShareScalarWhereInput[]
552
552
  NOT?: Prisma.ShareScalarWhereInput | Prisma.ShareScalarWhereInput[]
553
553
  id?: Prisma.StringFilter<"Share"> | string
554
- prdId?: Prisma.StringFilter<"Share"> | string
554
+ designId?: Prisma.StringFilter<"Share"> | string
555
555
  token?: Prisma.StringFilter<"Share"> | string
556
556
  type?: Prisma.StringFilter<"Share"> | string
557
557
  status?: Prisma.StringFilter<"Share"> | string
@@ -572,12 +572,12 @@ export type ShareCreateWithoutShareVersionsInput = {
572
572
  expiresAt?: Date | string | null
573
573
  createdAt?: Date | string
574
574
  updatedAt?: Date | string
575
- prd: Prisma.PRDCreateNestedOneWithoutSharesInput
575
+ design: Prisma.DesignCreateNestedOneWithoutSharesInput
576
576
  }
577
577
 
578
578
  export type ShareUncheckedCreateWithoutShareVersionsInput = {
579
579
  id?: string
580
- prdId: string
580
+ designId: string
581
581
  token: string
582
582
  type?: string
583
583
  status?: string
@@ -614,12 +614,12 @@ export type ShareUpdateWithoutShareVersionsInput = {
614
614
  expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
615
615
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
616
616
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
617
- prd?: Prisma.PRDUpdateOneRequiredWithoutSharesNestedInput
617
+ design?: Prisma.DesignUpdateOneRequiredWithoutSharesNestedInput
618
618
  }
619
619
 
620
620
  export type ShareUncheckedUpdateWithoutShareVersionsInput = {
621
621
  id?: Prisma.StringFieldUpdateOperationsInput | string
622
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
622
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
623
623
  token?: Prisma.StringFieldUpdateOperationsInput | string
624
624
  type?: Prisma.StringFieldUpdateOperationsInput | string
625
625
  status?: Prisma.StringFieldUpdateOperationsInput | string
@@ -630,7 +630,7 @@ export type ShareUncheckedUpdateWithoutShareVersionsInput = {
630
630
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
631
631
  }
632
632
 
633
- export type ShareCreateManyPrdInput = {
633
+ export type ShareCreateManyDesignInput = {
634
634
  id?: string
635
635
  token: string
636
636
  type?: string
@@ -642,7 +642,7 @@ export type ShareCreateManyPrdInput = {
642
642
  updatedAt?: Date | string
643
643
  }
644
644
 
645
- export type ShareUpdateWithoutPrdInput = {
645
+ export type ShareUpdateWithoutDesignInput = {
646
646
  id?: Prisma.StringFieldUpdateOperationsInput | string
647
647
  token?: Prisma.StringFieldUpdateOperationsInput | string
648
648
  type?: Prisma.StringFieldUpdateOperationsInput | string
@@ -655,7 +655,7 @@ export type ShareUpdateWithoutPrdInput = {
655
655
  shareVersions?: Prisma.ShareVersionUpdateManyWithoutShareNestedInput
656
656
  }
657
657
 
658
- export type ShareUncheckedUpdateWithoutPrdInput = {
658
+ export type ShareUncheckedUpdateWithoutDesignInput = {
659
659
  id?: Prisma.StringFieldUpdateOperationsInput | string
660
660
  token?: Prisma.StringFieldUpdateOperationsInput | string
661
661
  type?: Prisma.StringFieldUpdateOperationsInput | string
@@ -668,7 +668,7 @@ export type ShareUncheckedUpdateWithoutPrdInput = {
668
668
  shareVersions?: Prisma.ShareVersionUncheckedUpdateManyWithoutShareNestedInput
669
669
  }
670
670
 
671
- export type ShareUncheckedUpdateManyWithoutPrdInput = {
671
+ export type ShareUncheckedUpdateManyWithoutDesignInput = {
672
672
  id?: Prisma.StringFieldUpdateOperationsInput | string
673
673
  token?: Prisma.StringFieldUpdateOperationsInput | string
674
674
  type?: Prisma.StringFieldUpdateOperationsInput | string
@@ -713,7 +713,7 @@ export type ShareCountOutputTypeCountShareVersionsArgs<ExtArgs extends runtime.T
713
713
 
714
714
  export type ShareSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
715
715
  id?: boolean
716
- prdId?: boolean
716
+ designId?: boolean
717
717
  token?: boolean
718
718
  type?: boolean
719
719
  status?: boolean
@@ -722,14 +722,14 @@ export type ShareSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
722
722
  expiresAt?: boolean
723
723
  createdAt?: boolean
724
724
  updatedAt?: boolean
725
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
725
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
726
726
  shareVersions?: boolean | Prisma.Share$shareVersionsArgs<ExtArgs>
727
727
  _count?: boolean | Prisma.ShareCountOutputTypeDefaultArgs<ExtArgs>
728
728
  }, ExtArgs["result"]["share"]>
729
729
 
730
730
  export type ShareSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
731
731
  id?: boolean
732
- prdId?: boolean
732
+ designId?: boolean
733
733
  token?: boolean
734
734
  type?: boolean
735
735
  status?: boolean
@@ -738,12 +738,12 @@ export type ShareSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensi
738
738
  expiresAt?: boolean
739
739
  createdAt?: boolean
740
740
  updatedAt?: boolean
741
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
741
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
742
742
  }, ExtArgs["result"]["share"]>
743
743
 
744
744
  export type ShareSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
745
745
  id?: boolean
746
- prdId?: boolean
746
+ designId?: boolean
747
747
  token?: boolean
748
748
  type?: boolean
749
749
  status?: boolean
@@ -752,12 +752,12 @@ export type ShareSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensi
752
752
  expiresAt?: boolean
753
753
  createdAt?: boolean
754
754
  updatedAt?: boolean
755
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
755
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
756
756
  }, ExtArgs["result"]["share"]>
757
757
 
758
758
  export type ShareSelectScalar = {
759
759
  id?: boolean
760
- prdId?: boolean
760
+ designId?: boolean
761
761
  token?: boolean
762
762
  type?: boolean
763
763
  status?: boolean
@@ -768,28 +768,28 @@ export type ShareSelectScalar = {
768
768
  updatedAt?: boolean
769
769
  }
770
770
 
771
- export type ShareOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "prdId" | "token" | "type" | "status" | "password" | "hasPassword" | "expiresAt" | "createdAt" | "updatedAt", ExtArgs["result"]["share"]>
771
+ export type ShareOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "designId" | "token" | "type" | "status" | "password" | "hasPassword" | "expiresAt" | "createdAt" | "updatedAt", ExtArgs["result"]["share"]>
772
772
  export type ShareInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
773
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
773
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
774
774
  shareVersions?: boolean | Prisma.Share$shareVersionsArgs<ExtArgs>
775
775
  _count?: boolean | Prisma.ShareCountOutputTypeDefaultArgs<ExtArgs>
776
776
  }
777
777
  export type ShareIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
778
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
778
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
779
779
  }
780
780
  export type ShareIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
781
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
781
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
782
782
  }
783
783
 
784
784
  export type $SharePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
785
785
  name: "Share"
786
786
  objects: {
787
- prd: Prisma.$PRDPayload<ExtArgs>
787
+ design: Prisma.$DesignPayload<ExtArgs>
788
788
  shareVersions: Prisma.$ShareVersionPayload<ExtArgs>[]
789
789
  }
790
790
  scalars: runtime.Types.Extensions.GetPayloadResult<{
791
791
  id: string
792
- prdId: string
792
+ designId: string
793
793
  token: string
794
794
  type: string
795
795
  status: string
@@ -1192,7 +1192,7 @@ readonly fields: ShareFieldRefs;
1192
1192
  */
1193
1193
  export interface Prisma__ShareClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1194
1194
  readonly [Symbol.toStringTag]: "PrismaPromise"
1195
- prd<T extends Prisma.PRDDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PRDDefaultArgs<ExtArgs>>): Prisma.Prisma__PRDClient<runtime.Types.Result.GetResult<Prisma.$PRDPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1195
+ design<T extends Prisma.DesignDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignDefaultArgs<ExtArgs>>): Prisma.Prisma__DesignClient<runtime.Types.Result.GetResult<Prisma.$DesignPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1196
1196
  shareVersions<T extends Prisma.Share$shareVersionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Share$shareVersionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ShareVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1197
1197
  /**
1198
1198
  * Attaches callbacks for the resolution and/or rejection of the Promise.
@@ -1224,7 +1224,7 @@ export interface Prisma__ShareClient<T, Null = never, ExtArgs extends runtime.Ty
1224
1224
  */
1225
1225
  export interface ShareFieldRefs {
1226
1226
  readonly id: Prisma.FieldRef<"Share", 'String'>
1227
- readonly prdId: Prisma.FieldRef<"Share", 'String'>
1227
+ readonly designId: Prisma.FieldRef<"Share", 'String'>
1228
1228
  readonly token: Prisma.FieldRef<"Share", 'String'>
1229
1229
  readonly type: Prisma.FieldRef<"Share", 'String'>
1230
1230
  readonly status: Prisma.FieldRef<"Share", 'String'>
@@ -167,7 +167,7 @@ export type ShareVersionWhereInput = {
167
167
  shareId?: Prisma.StringFilter<"ShareVersion"> | string
168
168
  versionId?: Prisma.StringFilter<"ShareVersion"> | string
169
169
  share?: Prisma.XOR<Prisma.ShareScalarRelationFilter, Prisma.ShareWhereInput>
170
- version?: Prisma.XOR<Prisma.PRDVersionScalarRelationFilter, Prisma.PRDVersionWhereInput>
170
+ version?: Prisma.XOR<Prisma.DesignVersionScalarRelationFilter, Prisma.DesignVersionWhereInput>
171
171
  }
172
172
 
173
173
  export type ShareVersionOrderByWithRelationInput = {
@@ -175,7 +175,7 @@ export type ShareVersionOrderByWithRelationInput = {
175
175
  shareId?: Prisma.SortOrder
176
176
  versionId?: Prisma.SortOrder
177
177
  share?: Prisma.ShareOrderByWithRelationInput
178
- version?: Prisma.PRDVersionOrderByWithRelationInput
178
+ version?: Prisma.DesignVersionOrderByWithRelationInput
179
179
  }
180
180
 
181
181
  export type ShareVersionWhereUniqueInput = Prisma.AtLeast<{
@@ -187,7 +187,7 @@ export type ShareVersionWhereUniqueInput = Prisma.AtLeast<{
187
187
  shareId?: Prisma.StringFilter<"ShareVersion"> | string
188
188
  versionId?: Prisma.StringFilter<"ShareVersion"> | string
189
189
  share?: Prisma.XOR<Prisma.ShareScalarRelationFilter, Prisma.ShareWhereInput>
190
- version?: Prisma.XOR<Prisma.PRDVersionScalarRelationFilter, Prisma.PRDVersionWhereInput>
190
+ version?: Prisma.XOR<Prisma.DesignVersionScalarRelationFilter, Prisma.DesignVersionWhereInput>
191
191
  }, "id" | "shareId_versionId">
192
192
 
193
193
  export type ShareVersionOrderByWithAggregationInput = {
@@ -211,7 +211,7 @@ export type ShareVersionScalarWhereWithAggregatesInput = {
211
211
  export type ShareVersionCreateInput = {
212
212
  id?: string
213
213
  share: Prisma.ShareCreateNestedOneWithoutShareVersionsInput
214
- version: Prisma.PRDVersionCreateNestedOneWithoutShareVersionsInput
214
+ version: Prisma.DesignVersionCreateNestedOneWithoutShareVersionsInput
215
215
  }
216
216
 
217
217
  export type ShareVersionUncheckedCreateInput = {
@@ -223,7 +223,7 @@ export type ShareVersionUncheckedCreateInput = {
223
223
  export type ShareVersionUpdateInput = {
224
224
  id?: Prisma.StringFieldUpdateOperationsInput | string
225
225
  share?: Prisma.ShareUpdateOneRequiredWithoutShareVersionsNestedInput
226
- version?: Prisma.PRDVersionUpdateOneRequiredWithoutShareVersionsNestedInput
226
+ version?: Prisma.DesignVersionUpdateOneRequiredWithoutShareVersionsNestedInput
227
227
  }
228
228
 
229
229
  export type ShareVersionUncheckedUpdateInput = {
@@ -411,7 +411,7 @@ export type ShareVersionScalarWhereInput = {
411
411
 
412
412
  export type ShareVersionCreateWithoutShareInput = {
413
413
  id?: string
414
- version: Prisma.PRDVersionCreateNestedOneWithoutShareVersionsInput
414
+ version: Prisma.DesignVersionCreateNestedOneWithoutShareVersionsInput
415
415
  }
416
416
 
417
417
  export type ShareVersionUncheckedCreateWithoutShareInput = {
@@ -471,7 +471,7 @@ export type ShareVersionCreateManyShareInput = {
471
471
 
472
472
  export type ShareVersionUpdateWithoutShareInput = {
473
473
  id?: Prisma.StringFieldUpdateOperationsInput | string
474
- version?: Prisma.PRDVersionUpdateOneRequiredWithoutShareVersionsNestedInput
474
+ version?: Prisma.DesignVersionUpdateOneRequiredWithoutShareVersionsNestedInput
475
475
  }
476
476
 
477
477
  export type ShareVersionUncheckedUpdateWithoutShareInput = {
@@ -491,7 +491,7 @@ export type ShareVersionSelect<ExtArgs extends runtime.Types.Extensions.Internal
491
491
  shareId?: boolean
492
492
  versionId?: boolean
493
493
  share?: boolean | Prisma.ShareDefaultArgs<ExtArgs>
494
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
494
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
495
495
  }, ExtArgs["result"]["shareVersion"]>
496
496
 
497
497
  export type ShareVersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -499,7 +499,7 @@ export type ShareVersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.
499
499
  shareId?: boolean
500
500
  versionId?: boolean
501
501
  share?: boolean | Prisma.ShareDefaultArgs<ExtArgs>
502
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
502
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
503
503
  }, ExtArgs["result"]["shareVersion"]>
504
504
 
505
505
  export type ShareVersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -507,7 +507,7 @@ export type ShareVersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.
507
507
  shareId?: boolean
508
508
  versionId?: boolean
509
509
  share?: boolean | Prisma.ShareDefaultArgs<ExtArgs>
510
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
510
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
511
511
  }, ExtArgs["result"]["shareVersion"]>
512
512
 
513
513
  export type ShareVersionSelectScalar = {
@@ -519,22 +519,22 @@ export type ShareVersionSelectScalar = {
519
519
  export type ShareVersionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "shareId" | "versionId", ExtArgs["result"]["shareVersion"]>
520
520
  export type ShareVersionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
521
521
  share?: boolean | Prisma.ShareDefaultArgs<ExtArgs>
522
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
522
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
523
523
  }
524
524
  export type ShareVersionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
525
525
  share?: boolean | Prisma.ShareDefaultArgs<ExtArgs>
526
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
526
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
527
527
  }
528
528
  export type ShareVersionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
529
529
  share?: boolean | Prisma.ShareDefaultArgs<ExtArgs>
530
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
530
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
531
531
  }
532
532
 
533
533
  export type $ShareVersionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
534
534
  name: "ShareVersion"
535
535
  objects: {
536
536
  share: Prisma.$SharePayload<ExtArgs>
537
- version: Prisma.$PRDVersionPayload<ExtArgs>
537
+ version: Prisma.$DesignVersionPayload<ExtArgs>
538
538
  }
539
539
  scalars: runtime.Types.Extensions.GetPayloadResult<{
540
540
  id: string
@@ -935,7 +935,7 @@ readonly fields: ShareVersionFieldRefs;
935
935
  export interface Prisma__ShareVersionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
936
936
  readonly [Symbol.toStringTag]: "PrismaPromise"
937
937
  share<T extends Prisma.ShareDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ShareDefaultArgs<ExtArgs>>): Prisma.Prisma__ShareClient<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
938
- version<T extends Prisma.PRDVersionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PRDVersionDefaultArgs<ExtArgs>>): Prisma.Prisma__PRDVersionClient<runtime.Types.Result.GetResult<Prisma.$PRDVersionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
938
+ version<T extends Prisma.DesignVersionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DesignVersionDefaultArgs<ExtArgs>>): Prisma.Prisma__DesignVersionClient<runtime.Types.Result.GetResult<Prisma.$DesignVersionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
939
939
  /**
940
940
  * Attaches callbacks for the resolution and/or rejection of the Promise.
941
941
  * @param onfulfilled The callback to execute when the Promise is resolved.