@allbluecn/database 0.9.0 → 0.9.2

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 (132) hide show
  1. package/desktop-init.ts +2 -2
  2. package/dist/get-prisma.js +1 -1
  3. package/dist/lib/share-utils.js +3 -3
  4. package/generated/browser.ts +115 -25
  5. package/generated/client.ts +115 -25
  6. package/generated/commonInputTypes.ts +34 -0
  7. package/generated/enums.ts +14 -0
  8. package/generated/internal/class.ts +234 -54
  9. package/generated/internal/prismaNamespace.ts +2190 -511
  10. package/generated/internal/prismaNamespaceBrowser.ts +391 -76
  11. package/generated/models/AgentConversation.ts +89 -89
  12. package/generated/models/AiProvider.ts +3 -3
  13. package/generated/models/AiStreamChunk.ts +3 -3
  14. package/generated/models/AnyHubMarketApp.ts +8 -8
  15. package/generated/models/AuditLog.ts +6 -6
  16. package/generated/models/BlockInstance.ts +17 -17
  17. package/generated/models/Bug.ts +5023 -0
  18. package/generated/models/BugActivity.ts +1765 -0
  19. package/generated/models/BugComment.ts +1853 -0
  20. package/generated/models/BugEvent.ts +1339 -0
  21. package/generated/models/BugFilterView.ts +1438 -0
  22. package/generated/models/BugFixRun.ts +1479 -0
  23. package/generated/models/BugLabel.ts +1349 -0
  24. package/generated/models/BugProjectSettings.ts +1403 -0
  25. package/generated/models/BugReproRun.ts +1582 -0
  26. package/generated/models/ChatPersistenceMeta.ts +3 -3
  27. package/generated/models/Comment.ts +99 -99
  28. package/generated/models/Component.ts +9 -9
  29. package/generated/models/ComponentInstance.ts +17 -17
  30. package/generated/models/CustomRole.ts +8 -8
  31. package/generated/models/Design.ts +2872 -0
  32. package/generated/models/DesignPage.ts +2402 -0
  33. package/generated/models/DesignTag.ts +1430 -0
  34. package/generated/models/DesignVersion.ts +2121 -0
  35. package/generated/models/DesktopSetting.ts +3 -3
  36. package/generated/models/Iteration.ts +148 -0
  37. package/generated/models/Label.ts +118 -0
  38. package/generated/models/LicenseKey.ts +16 -16
  39. package/generated/models/NotificationPreference.ts +5 -5
  40. package/generated/models/PageVersion.ts +49 -49
  41. package/generated/models/Plan.ts +5 -5
  42. package/generated/models/Project.ts +1970 -58
  43. package/generated/models/ProjectAccessToken.ts +1705 -0
  44. package/generated/models/ProjectWebhook.ts +1409 -0
  45. package/generated/models/Review.ts +118 -118
  46. package/generated/models/Share.ts +83 -83
  47. package/generated/models/ShareVersion.ts +15 -15
  48. package/generated/models/SsoProvider.ts +8 -8
  49. package/generated/models/Story.ts +973 -87
  50. package/generated/models/StoryDesignLink.ts +1430 -0
  51. package/generated/models/StoryFilterView.ts +12 -12
  52. package/generated/models/SystemPromptVersion.ts +6 -6
  53. package/generated/models/Tag.ts +49 -49
  54. package/generated/models/TestAutomationArtifact.ts +1790 -0
  55. package/generated/models/TestCase.ts +3568 -0
  56. package/generated/models/TestCaseFilterView.ts +1587 -0
  57. package/generated/models/TestCaseFolder.ts +1795 -0
  58. package/generated/models/TestExecRun.ts +1673 -0
  59. package/generated/models/TestGenerationRun.ts +1952 -0
  60. package/generated/models/TestPlan.ts +1950 -0
  61. package/generated/models/TestPlanCase.ts +1430 -0
  62. package/generated/models/TestRun.ts +1979 -0
  63. package/generated/models/TestRunCase.ts +2772 -0
  64. package/generated/models/ThirdPartyDependency.ts +19 -15
  65. package/generated/models/User.ts +12141 -2721
  66. package/generated/models.ts +26 -8
  67. package/generated-sqlite/browser.ts +8 -23
  68. package/generated-sqlite/client.ts +8 -23
  69. package/generated-sqlite/internal/class.ts +20 -50
  70. package/generated-sqlite/internal/prismaNamespace.ts +166 -437
  71. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +25 -71
  72. package/generated-sqlite/models/AgentConversation.ts +89 -89
  73. package/generated-sqlite/models/AiProvider.ts +3 -3
  74. package/generated-sqlite/models/AiStreamChunk.ts +3 -3
  75. package/generated-sqlite/models/AnyHubMarketApp.ts +8 -8
  76. package/generated-sqlite/models/BlockInstance.ts +17 -17
  77. package/generated-sqlite/models/ChatPersistenceMeta.ts +3 -3
  78. package/generated-sqlite/models/Comment.ts +99 -99
  79. package/generated-sqlite/models/Component.ts +9 -9
  80. package/generated-sqlite/models/ComponentInstance.ts +17 -17
  81. package/generated-sqlite/models/Design.ts +2679 -0
  82. package/generated-sqlite/models/DesignPage.ts +2398 -0
  83. package/generated-sqlite/models/DesignTag.ts +1426 -0
  84. package/generated-sqlite/models/DesignVersion.ts +2117 -0
  85. package/generated-sqlite/models/DesktopSetting.ts +3 -3
  86. package/generated-sqlite/models/KnowledgeBase.ts +240 -1
  87. package/generated-sqlite/models/NotificationPreference.ts +5 -5
  88. package/generated-sqlite/models/PageVersion.ts +49 -49
  89. package/generated-sqlite/models/Review.ts +118 -118
  90. package/generated-sqlite/models/Share.ts +83 -83
  91. package/generated-sqlite/models/ShareVersion.ts +15 -15
  92. package/generated-sqlite/models/SystemPromptVersion.ts +6 -6
  93. package/generated-sqlite/models/Tag.ts +49 -49
  94. package/generated-sqlite/models/User.ts +1201 -1321
  95. package/generated-sqlite/models/Workspace.ts +164 -0
  96. package/generated-sqlite/models.ts +4 -7
  97. package/index.ts +17 -3
  98. package/migrations/20260924084200_add_prd_kind_drop_design_sketch/migration.sql +24 -0
  99. package/migrations/20260924123118_drop_user_sketch_api_token/migration.sql +8 -0
  100. package/migrations/20260925011516_rename_prd_tables/migration.sql +189 -0
  101. package/migrations/20260925064226_rename_prd_columns/migration.sql +193 -0
  102. package/migrations/20260925080000_rename_prd_embeddings/migration.sql +43 -0
  103. package/migrations/20261002184838_bug_module_init/migration.sql +297 -0
  104. package/migrations/20261004234209_testcase_module_init/migration.sql +290 -0
  105. package/migrations/20261005090000_testcase_plan_cases/migration.sql +34 -0
  106. package/migrations/20261006151229_add_missing_fk_indexes_auth_billing/migration.sql +50 -0
  107. package/migrations/20261006152058_add_missing_fk_indexes_story_bug_test/migration.sql +59 -0
  108. package/migrations/20261006152153_add_missing_fk_indexes_design_misc/migration.sql +50 -0
  109. package/migrations/20261006184250_explicit_on_delete_core/migration.sql +33 -0
  110. package/migrations/20261006184604_explicit_on_delete_rest/migration.sql +117 -0
  111. package/migrations/20261006184932_json_column_defaults/migration.sql +74 -0
  112. package/migrations/20261006191724_revert_version_token_cascade/migration.sql +21 -0
  113. package/migrations/20261007025537_dependency_category_enum/migration.sql +22 -0
  114. package/package.json +4 -4
  115. package/schema.prisma +687 -177
  116. package/schema.sqlite.prisma +149 -151
  117. package/src/lib/share-utils.ts +2 -2
  118. package/generated/models/Artboard.ts +0 -1811
  119. package/generated/models/ArtboardExport.ts +0 -1548
  120. package/generated/models/DesignProject.ts +0 -1643
  121. package/generated/models/PRD.ts +0 -2805
  122. package/generated/models/PRDPage.ts +0 -2402
  123. package/generated/models/PRDTag.ts +0 -1430
  124. package/generated/models/PRDVersion.ts +0 -2121
  125. package/generated/models/StoryPrdLink.ts +0 -1430
  126. package/generated-sqlite/models/Artboard.ts +0 -1808
  127. package/generated-sqlite/models/ArtboardExport.ts +0 -1545
  128. package/generated-sqlite/models/DesignProject.ts +0 -1640
  129. package/generated-sqlite/models/PRD.ts +0 -2616
  130. package/generated-sqlite/models/PRDPage.ts +0 -2398
  131. package/generated-sqlite/models/PRDTag.ts +0 -1426
  132. package/generated-sqlite/models/PRDVersion.ts +0 -2117
@@ -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: $Enums.ShareStatus | 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: $Enums.ShareStatus | 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: $Enums.ShareStatus
@@ -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.EnumShareStatusFilter<"Share"> | $Enums.ShareStatus
@@ -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.EnumShareStatusFilter<"Share"> | $Enums.ShareStatus
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.EnumShareStatusWithAggregatesFilter<"Share"> | $Enums.ShareStatus
@@ -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?: $Enums.ShareStatus
@@ -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.EnumShareStatusFieldUpdateOperationsInput | $Enums.ShareStatus
@@ -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?: $Enums.ShareStatus
@@ -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.EnumShareStatusFieldUpdateOperationsInput | $Enums.ShareStatus
@@ -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
 
@@ -499,7 +499,7 @@ export type ShareUpdateOneRequiredWithoutShareVersionsNestedInput = {
499
499
  update?: Prisma.XOR<Prisma.XOR<Prisma.ShareUpdateToOneWithWhereWithoutShareVersionsInput, Prisma.ShareUpdateWithoutShareVersionsInput>, Prisma.ShareUncheckedUpdateWithoutShareVersionsInput>
500
500
  }
501
501
 
502
- export type ShareCreateWithoutPrdInput = {
502
+ export type ShareCreateWithoutDesignInput = {
503
503
  id?: string
504
504
  token: string
505
505
  type?: string
@@ -512,7 +512,7 @@ export type ShareCreateWithoutPrdInput = {
512
512
  shareVersions?: Prisma.ShareVersionCreateNestedManyWithoutShareInput
513
513
  }
514
514
 
515
- export type ShareUncheckedCreateWithoutPrdInput = {
515
+ export type ShareUncheckedCreateWithoutDesignInput = {
516
516
  id?: string
517
517
  token: string
518
518
  type?: string
@@ -525,30 +525,30 @@ export type ShareUncheckedCreateWithoutPrdInput = {
525
525
  shareVersions?: Prisma.ShareVersionUncheckedCreateNestedManyWithoutShareInput
526
526
  }
527
527
 
528
- export type ShareCreateOrConnectWithoutPrdInput = {
528
+ export type ShareCreateOrConnectWithoutDesignInput = {
529
529
  where: Prisma.ShareWhereUniqueInput
530
- create: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput>
530
+ create: Prisma.XOR<Prisma.ShareCreateWithoutDesignInput, Prisma.ShareUncheckedCreateWithoutDesignInput>
531
531
  }
532
532
 
533
- export type ShareCreateManyPrdInputEnvelope = {
534
- data: Prisma.ShareCreateManyPrdInput | Prisma.ShareCreateManyPrdInput[]
533
+ export type ShareCreateManyDesignInputEnvelope = {
534
+ data: Prisma.ShareCreateManyDesignInput | Prisma.ShareCreateManyDesignInput[]
535
535
  skipDuplicates?: boolean
536
536
  }
537
537
 
538
- export type ShareUpsertWithWhereUniqueWithoutPrdInput = {
538
+ export type ShareUpsertWithWhereUniqueWithoutDesignInput = {
539
539
  where: Prisma.ShareWhereUniqueInput
540
- update: Prisma.XOR<Prisma.ShareUpdateWithoutPrdInput, Prisma.ShareUncheckedUpdateWithoutPrdInput>
541
- create: Prisma.XOR<Prisma.ShareCreateWithoutPrdInput, Prisma.ShareUncheckedCreateWithoutPrdInput>
540
+ update: Prisma.XOR<Prisma.ShareUpdateWithoutDesignInput, Prisma.ShareUncheckedUpdateWithoutDesignInput>
541
+ create: Prisma.XOR<Prisma.ShareCreateWithoutDesignInput, Prisma.ShareUncheckedCreateWithoutDesignInput>
542
542
  }
543
543
 
544
- export type ShareUpdateWithWhereUniqueWithoutPrdInput = {
544
+ export type ShareUpdateWithWhereUniqueWithoutDesignInput = {
545
545
  where: Prisma.ShareWhereUniqueInput
546
- data: Prisma.XOR<Prisma.ShareUpdateWithoutPrdInput, Prisma.ShareUncheckedUpdateWithoutPrdInput>
546
+ data: Prisma.XOR<Prisma.ShareUpdateWithoutDesignInput, Prisma.ShareUncheckedUpdateWithoutDesignInput>
547
547
  }
548
548
 
549
- export type ShareUpdateManyWithWhereWithoutPrdInput = {
549
+ export type ShareUpdateManyWithWhereWithoutDesignInput = {
550
550
  where: Prisma.ShareScalarWhereInput
551
- data: Prisma.XOR<Prisma.ShareUpdateManyMutationInput, Prisma.ShareUncheckedUpdateManyWithoutPrdInput>
551
+ data: Prisma.XOR<Prisma.ShareUpdateManyMutationInput, Prisma.ShareUncheckedUpdateManyWithoutDesignInput>
552
552
  }
553
553
 
554
554
  export type ShareScalarWhereInput = {
@@ -556,7 +556,7 @@ export type ShareScalarWhereInput = {
556
556
  OR?: Prisma.ShareScalarWhereInput[]
557
557
  NOT?: Prisma.ShareScalarWhereInput | Prisma.ShareScalarWhereInput[]
558
558
  id?: Prisma.StringFilter<"Share"> | string
559
- prdId?: Prisma.StringFilter<"Share"> | string
559
+ designId?: Prisma.StringFilter<"Share"> | string
560
560
  token?: Prisma.StringFilter<"Share"> | string
561
561
  type?: Prisma.StringFilter<"Share"> | string
562
562
  status?: Prisma.EnumShareStatusFilter<"Share"> | $Enums.ShareStatus
@@ -577,12 +577,12 @@ export type ShareCreateWithoutShareVersionsInput = {
577
577
  expiresAt?: Date | string | null
578
578
  createdAt?: Date | string
579
579
  updatedAt?: Date | string
580
- prd: Prisma.PRDCreateNestedOneWithoutSharesInput
580
+ design: Prisma.DesignCreateNestedOneWithoutSharesInput
581
581
  }
582
582
 
583
583
  export type ShareUncheckedCreateWithoutShareVersionsInput = {
584
584
  id?: string
585
- prdId: string
585
+ designId: string
586
586
  token: string
587
587
  type?: string
588
588
  status?: $Enums.ShareStatus
@@ -619,12 +619,12 @@ export type ShareUpdateWithoutShareVersionsInput = {
619
619
  expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
620
620
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
621
621
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
622
- prd?: Prisma.PRDUpdateOneRequiredWithoutSharesNestedInput
622
+ design?: Prisma.DesignUpdateOneRequiredWithoutSharesNestedInput
623
623
  }
624
624
 
625
625
  export type ShareUncheckedUpdateWithoutShareVersionsInput = {
626
626
  id?: Prisma.StringFieldUpdateOperationsInput | string
627
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
627
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
628
628
  token?: Prisma.StringFieldUpdateOperationsInput | string
629
629
  type?: Prisma.StringFieldUpdateOperationsInput | string
630
630
  status?: Prisma.EnumShareStatusFieldUpdateOperationsInput | $Enums.ShareStatus
@@ -635,7 +635,7 @@ export type ShareUncheckedUpdateWithoutShareVersionsInput = {
635
635
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
636
636
  }
637
637
 
638
- export type ShareCreateManyPrdInput = {
638
+ export type ShareCreateManyDesignInput = {
639
639
  id?: string
640
640
  token: string
641
641
  type?: string
@@ -647,7 +647,7 @@ export type ShareCreateManyPrdInput = {
647
647
  updatedAt?: Date | string
648
648
  }
649
649
 
650
- export type ShareUpdateWithoutPrdInput = {
650
+ export type ShareUpdateWithoutDesignInput = {
651
651
  id?: Prisma.StringFieldUpdateOperationsInput | string
652
652
  token?: Prisma.StringFieldUpdateOperationsInput | string
653
653
  type?: Prisma.StringFieldUpdateOperationsInput | string
@@ -660,7 +660,7 @@ export type ShareUpdateWithoutPrdInput = {
660
660
  shareVersions?: Prisma.ShareVersionUpdateManyWithoutShareNestedInput
661
661
  }
662
662
 
663
- export type ShareUncheckedUpdateWithoutPrdInput = {
663
+ export type ShareUncheckedUpdateWithoutDesignInput = {
664
664
  id?: Prisma.StringFieldUpdateOperationsInput | string
665
665
  token?: Prisma.StringFieldUpdateOperationsInput | string
666
666
  type?: Prisma.StringFieldUpdateOperationsInput | string
@@ -673,7 +673,7 @@ export type ShareUncheckedUpdateWithoutPrdInput = {
673
673
  shareVersions?: Prisma.ShareVersionUncheckedUpdateManyWithoutShareNestedInput
674
674
  }
675
675
 
676
- export type ShareUncheckedUpdateManyWithoutPrdInput = {
676
+ export type ShareUncheckedUpdateManyWithoutDesignInput = {
677
677
  id?: Prisma.StringFieldUpdateOperationsInput | string
678
678
  token?: Prisma.StringFieldUpdateOperationsInput | string
679
679
  type?: Prisma.StringFieldUpdateOperationsInput | string
@@ -718,7 +718,7 @@ export type ShareCountOutputTypeCountShareVersionsArgs<ExtArgs extends runtime.T
718
718
 
719
719
  export type ShareSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
720
720
  id?: boolean
721
- prdId?: boolean
721
+ designId?: boolean
722
722
  token?: boolean
723
723
  type?: boolean
724
724
  status?: boolean
@@ -727,14 +727,14 @@ export type ShareSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
727
727
  expiresAt?: boolean
728
728
  createdAt?: boolean
729
729
  updatedAt?: boolean
730
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
730
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
731
731
  shareVersions?: boolean | Prisma.Share$shareVersionsArgs<ExtArgs>
732
732
  _count?: boolean | Prisma.ShareCountOutputTypeDefaultArgs<ExtArgs>
733
733
  }, ExtArgs["result"]["share"]>
734
734
 
735
735
  export type ShareSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
736
736
  id?: boolean
737
- prdId?: boolean
737
+ designId?: boolean
738
738
  token?: boolean
739
739
  type?: boolean
740
740
  status?: boolean
@@ -743,12 +743,12 @@ export type ShareSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensi
743
743
  expiresAt?: boolean
744
744
  createdAt?: boolean
745
745
  updatedAt?: boolean
746
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
746
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
747
747
  }, ExtArgs["result"]["share"]>
748
748
 
749
749
  export type ShareSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
750
750
  id?: boolean
751
- prdId?: boolean
751
+ designId?: boolean
752
752
  token?: boolean
753
753
  type?: boolean
754
754
  status?: boolean
@@ -757,12 +757,12 @@ export type ShareSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensi
757
757
  expiresAt?: boolean
758
758
  createdAt?: boolean
759
759
  updatedAt?: boolean
760
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
760
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
761
761
  }, ExtArgs["result"]["share"]>
762
762
 
763
763
  export type ShareSelectScalar = {
764
764
  id?: boolean
765
- prdId?: boolean
765
+ designId?: boolean
766
766
  token?: boolean
767
767
  type?: boolean
768
768
  status?: boolean
@@ -773,28 +773,28 @@ export type ShareSelectScalar = {
773
773
  updatedAt?: boolean
774
774
  }
775
775
 
776
- 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"]>
776
+ 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"]>
777
777
  export type ShareInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
778
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
778
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
779
779
  shareVersions?: boolean | Prisma.Share$shareVersionsArgs<ExtArgs>
780
780
  _count?: boolean | Prisma.ShareCountOutputTypeDefaultArgs<ExtArgs>
781
781
  }
782
782
  export type ShareIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
783
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
783
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
784
784
  }
785
785
  export type ShareIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
786
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
786
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
787
787
  }
788
788
 
789
789
  export type $SharePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
790
790
  name: "Share"
791
791
  objects: {
792
- prd: Prisma.$PRDPayload<ExtArgs>
792
+ design: Prisma.$DesignPayload<ExtArgs>
793
793
  shareVersions: Prisma.$ShareVersionPayload<ExtArgs>[]
794
794
  }
795
795
  scalars: runtime.Types.Extensions.GetPayloadResult<{
796
796
  id: string
797
- prdId: string
797
+ designId: string
798
798
  token: string
799
799
  type: string
800
800
  status: $Enums.ShareStatus
@@ -1197,7 +1197,7 @@ readonly fields: ShareFieldRefs;
1197
1197
  */
1198
1198
  export interface Prisma__ShareClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1199
1199
  readonly [Symbol.toStringTag]: "PrismaPromise"
1200
- 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>
1200
+ 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>
1201
1201
  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>
1202
1202
  /**
1203
1203
  * Attaches callbacks for the resolution and/or rejection of the Promise.
@@ -1229,7 +1229,7 @@ export interface Prisma__ShareClient<T, Null = never, ExtArgs extends runtime.Ty
1229
1229
  */
1230
1230
  export interface ShareFieldRefs {
1231
1231
  readonly id: Prisma.FieldRef<"Share", 'String'>
1232
- readonly prdId: Prisma.FieldRef<"Share", 'String'>
1232
+ readonly designId: Prisma.FieldRef<"Share", 'String'>
1233
1233
  readonly token: Prisma.FieldRef<"Share", 'String'>
1234
1234
  readonly type: Prisma.FieldRef<"Share", 'String'>
1235
1235
  readonly status: Prisma.FieldRef<"Share", 'ShareStatus'>
@@ -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 = {
@@ -412,7 +412,7 @@ export type ShareVersionScalarWhereInput = {
412
412
 
413
413
  export type ShareVersionCreateWithoutShareInput = {
414
414
  id?: string
415
- version: Prisma.PRDVersionCreateNestedOneWithoutShareVersionsInput
415
+ version: Prisma.DesignVersionCreateNestedOneWithoutShareVersionsInput
416
416
  }
417
417
 
418
418
  export type ShareVersionUncheckedCreateWithoutShareInput = {
@@ -473,7 +473,7 @@ export type ShareVersionCreateManyShareInput = {
473
473
 
474
474
  export type ShareVersionUpdateWithoutShareInput = {
475
475
  id?: Prisma.StringFieldUpdateOperationsInput | string
476
- version?: Prisma.PRDVersionUpdateOneRequiredWithoutShareVersionsNestedInput
476
+ version?: Prisma.DesignVersionUpdateOneRequiredWithoutShareVersionsNestedInput
477
477
  }
478
478
 
479
479
  export type ShareVersionUncheckedUpdateWithoutShareInput = {
@@ -493,7 +493,7 @@ export type ShareVersionSelect<ExtArgs extends runtime.Types.Extensions.Internal
493
493
  shareId?: boolean
494
494
  versionId?: boolean
495
495
  share?: boolean | Prisma.ShareDefaultArgs<ExtArgs>
496
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
496
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
497
497
  }, ExtArgs["result"]["shareVersion"]>
498
498
 
499
499
  export type ShareVersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -501,7 +501,7 @@ export type ShareVersionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.
501
501
  shareId?: boolean
502
502
  versionId?: boolean
503
503
  share?: boolean | Prisma.ShareDefaultArgs<ExtArgs>
504
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
504
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
505
505
  }, ExtArgs["result"]["shareVersion"]>
506
506
 
507
507
  export type ShareVersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
@@ -509,7 +509,7 @@ export type ShareVersionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.
509
509
  shareId?: boolean
510
510
  versionId?: boolean
511
511
  share?: boolean | Prisma.ShareDefaultArgs<ExtArgs>
512
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
512
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
513
513
  }, ExtArgs["result"]["shareVersion"]>
514
514
 
515
515
  export type ShareVersionSelectScalar = {
@@ -521,22 +521,22 @@ export type ShareVersionSelectScalar = {
521
521
  export type ShareVersionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "shareId" | "versionId", ExtArgs["result"]["shareVersion"]>
522
522
  export type ShareVersionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
523
523
  share?: boolean | Prisma.ShareDefaultArgs<ExtArgs>
524
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
524
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
525
525
  }
526
526
  export type ShareVersionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
527
527
  share?: boolean | Prisma.ShareDefaultArgs<ExtArgs>
528
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
528
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
529
529
  }
530
530
  export type ShareVersionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
531
531
  share?: boolean | Prisma.ShareDefaultArgs<ExtArgs>
532
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
532
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
533
533
  }
534
534
 
535
535
  export type $ShareVersionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
536
536
  name: "ShareVersion"
537
537
  objects: {
538
538
  share: Prisma.$SharePayload<ExtArgs>
539
- version: Prisma.$PRDVersionPayload<ExtArgs>
539
+ version: Prisma.$DesignVersionPayload<ExtArgs>
540
540
  }
541
541
  scalars: runtime.Types.Extensions.GetPayloadResult<{
542
542
  id: string
@@ -937,7 +937,7 @@ readonly fields: ShareVersionFieldRefs;
937
937
  export interface Prisma__ShareVersionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
938
938
  readonly [Symbol.toStringTag]: "PrismaPromise"
939
939
  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>
940
- 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>
940
+ 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>
941
941
  /**
942
942
  * Attaches callbacks for the resolution and/or rejection of the Promise.
943
943
  * @param onfulfilled The callback to execute when the Promise is resolved.