@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 AggregateReview = {
26
26
 
27
27
  export type ReviewMinAggregateOutputType = {
28
28
  id: string | null
29
- prdId: string | null
29
+ designId: string | null
30
30
  versionId: string | null
31
31
  status: $Enums.ReviewStatus | null
32
32
  reviewerId: string | null
@@ -37,7 +37,7 @@ export type ReviewMinAggregateOutputType = {
37
37
 
38
38
  export type ReviewMaxAggregateOutputType = {
39
39
  id: string | null
40
- prdId: string | null
40
+ designId: string | null
41
41
  versionId: string | null
42
42
  status: $Enums.ReviewStatus | null
43
43
  reviewerId: string | null
@@ -48,7 +48,7 @@ export type ReviewMaxAggregateOutputType = {
48
48
 
49
49
  export type ReviewCountAggregateOutputType = {
50
50
  id: number
51
- prdId: number
51
+ designId: number
52
52
  versionId: number
53
53
  status: number
54
54
  reviewerId: number
@@ -61,7 +61,7 @@ export type ReviewCountAggregateOutputType = {
61
61
 
62
62
  export type ReviewMinAggregateInputType = {
63
63
  id?: true
64
- prdId?: true
64
+ designId?: true
65
65
  versionId?: true
66
66
  status?: true
67
67
  reviewerId?: true
@@ -72,7 +72,7 @@ export type ReviewMinAggregateInputType = {
72
72
 
73
73
  export type ReviewMaxAggregateInputType = {
74
74
  id?: true
75
- prdId?: true
75
+ designId?: true
76
76
  versionId?: true
77
77
  status?: true
78
78
  reviewerId?: true
@@ -83,7 +83,7 @@ export type ReviewMaxAggregateInputType = {
83
83
 
84
84
  export type ReviewCountAggregateInputType = {
85
85
  id?: true
86
- prdId?: true
86
+ designId?: true
87
87
  versionId?: true
88
88
  status?: true
89
89
  reviewerId?: true
@@ -167,7 +167,7 @@ export type ReviewGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalA
167
167
 
168
168
  export type ReviewGroupByOutputType = {
169
169
  id: string
170
- prdId: string
170
+ designId: string
171
171
  versionId: string
172
172
  status: $Enums.ReviewStatus
173
173
  reviewerId: string | null
@@ -199,56 +199,56 @@ export type ReviewWhereInput = {
199
199
  OR?: Prisma.ReviewWhereInput[]
200
200
  NOT?: Prisma.ReviewWhereInput | Prisma.ReviewWhereInput[]
201
201
  id?: Prisma.StringFilter<"Review"> | string
202
- prdId?: Prisma.StringFilter<"Review"> | string
202
+ designId?: Prisma.StringFilter<"Review"> | string
203
203
  versionId?: Prisma.StringFilter<"Review"> | string
204
204
  status?: Prisma.EnumReviewStatusFilter<"Review"> | $Enums.ReviewStatus
205
205
  reviewerId?: Prisma.StringNullableFilter<"Review"> | string | null
206
206
  notes?: Prisma.StringNullableFilter<"Review"> | string | null
207
207
  createdAt?: Prisma.DateTimeFilter<"Review"> | Date | string
208
208
  completedAt?: Prisma.DateTimeNullableFilter<"Review"> | Date | string | null
209
- prd?: Prisma.XOR<Prisma.PRDScalarRelationFilter, Prisma.PRDWhereInput>
210
- version?: Prisma.XOR<Prisma.PRDVersionScalarRelationFilter, Prisma.PRDVersionWhereInput>
209
+ design?: Prisma.XOR<Prisma.DesignScalarRelationFilter, Prisma.DesignWhereInput>
210
+ version?: Prisma.XOR<Prisma.DesignVersionScalarRelationFilter, Prisma.DesignVersionWhereInput>
211
211
  reviewer?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
212
212
  comments?: Prisma.ReviewCommentListRelationFilter
213
213
  }
214
214
 
215
215
  export type ReviewOrderByWithRelationInput = {
216
216
  id?: Prisma.SortOrder
217
- prdId?: Prisma.SortOrder
217
+ designId?: Prisma.SortOrder
218
218
  versionId?: Prisma.SortOrder
219
219
  status?: Prisma.SortOrder
220
220
  reviewerId?: Prisma.SortOrderInput | Prisma.SortOrder
221
221
  notes?: Prisma.SortOrderInput | Prisma.SortOrder
222
222
  createdAt?: Prisma.SortOrder
223
223
  completedAt?: Prisma.SortOrderInput | Prisma.SortOrder
224
- prd?: Prisma.PRDOrderByWithRelationInput
225
- version?: Prisma.PRDVersionOrderByWithRelationInput
224
+ design?: Prisma.DesignOrderByWithRelationInput
225
+ version?: Prisma.DesignVersionOrderByWithRelationInput
226
226
  reviewer?: Prisma.UserOrderByWithRelationInput
227
227
  comments?: Prisma.ReviewCommentOrderByRelationAggregateInput
228
228
  }
229
229
 
230
230
  export type ReviewWhereUniqueInput = Prisma.AtLeast<{
231
231
  id?: string
232
- prdId_versionId?: Prisma.ReviewPrdIdVersionIdCompoundUniqueInput
232
+ designId_versionId?: Prisma.ReviewDesignIdVersionIdCompoundUniqueInput
233
233
  AND?: Prisma.ReviewWhereInput | Prisma.ReviewWhereInput[]
234
234
  OR?: Prisma.ReviewWhereInput[]
235
235
  NOT?: Prisma.ReviewWhereInput | Prisma.ReviewWhereInput[]
236
- prdId?: Prisma.StringFilter<"Review"> | string
236
+ designId?: Prisma.StringFilter<"Review"> | string
237
237
  versionId?: Prisma.StringFilter<"Review"> | string
238
238
  status?: Prisma.EnumReviewStatusFilter<"Review"> | $Enums.ReviewStatus
239
239
  reviewerId?: Prisma.StringNullableFilter<"Review"> | string | null
240
240
  notes?: Prisma.StringNullableFilter<"Review"> | string | null
241
241
  createdAt?: Prisma.DateTimeFilter<"Review"> | Date | string
242
242
  completedAt?: Prisma.DateTimeNullableFilter<"Review"> | Date | string | null
243
- prd?: Prisma.XOR<Prisma.PRDScalarRelationFilter, Prisma.PRDWhereInput>
244
- version?: Prisma.XOR<Prisma.PRDVersionScalarRelationFilter, Prisma.PRDVersionWhereInput>
243
+ design?: Prisma.XOR<Prisma.DesignScalarRelationFilter, Prisma.DesignWhereInput>
244
+ version?: Prisma.XOR<Prisma.DesignVersionScalarRelationFilter, Prisma.DesignVersionWhereInput>
245
245
  reviewer?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
246
246
  comments?: Prisma.ReviewCommentListRelationFilter
247
- }, "id" | "prdId_versionId">
247
+ }, "id" | "designId_versionId">
248
248
 
249
249
  export type ReviewOrderByWithAggregationInput = {
250
250
  id?: Prisma.SortOrder
251
- prdId?: Prisma.SortOrder
251
+ designId?: Prisma.SortOrder
252
252
  versionId?: Prisma.SortOrder
253
253
  status?: Prisma.SortOrder
254
254
  reviewerId?: Prisma.SortOrderInput | Prisma.SortOrder
@@ -265,7 +265,7 @@ export type ReviewScalarWhereWithAggregatesInput = {
265
265
  OR?: Prisma.ReviewScalarWhereWithAggregatesInput[]
266
266
  NOT?: Prisma.ReviewScalarWhereWithAggregatesInput | Prisma.ReviewScalarWhereWithAggregatesInput[]
267
267
  id?: Prisma.StringWithAggregatesFilter<"Review"> | string
268
- prdId?: Prisma.StringWithAggregatesFilter<"Review"> | string
268
+ designId?: Prisma.StringWithAggregatesFilter<"Review"> | string
269
269
  versionId?: Prisma.StringWithAggregatesFilter<"Review"> | string
270
270
  status?: Prisma.EnumReviewStatusWithAggregatesFilter<"Review"> | $Enums.ReviewStatus
271
271
  reviewerId?: Prisma.StringNullableWithAggregatesFilter<"Review"> | string | null
@@ -280,15 +280,15 @@ export type ReviewCreateInput = {
280
280
  notes?: string | null
281
281
  createdAt?: Date | string
282
282
  completedAt?: Date | string | null
283
- prd: Prisma.PRDCreateNestedOneWithoutReviewsInput
284
- version: Prisma.PRDVersionCreateNestedOneWithoutReviewsInput
283
+ design: Prisma.DesignCreateNestedOneWithoutReviewsInput
284
+ version: Prisma.DesignVersionCreateNestedOneWithoutReviewsInput
285
285
  reviewer?: Prisma.UserCreateNestedOneWithoutReviewsInput
286
286
  comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
287
287
  }
288
288
 
289
289
  export type ReviewUncheckedCreateInput = {
290
290
  id?: string
291
- prdId: string
291
+ designId: string
292
292
  versionId: string
293
293
  status?: $Enums.ReviewStatus
294
294
  reviewerId?: string | null
@@ -304,15 +304,15 @@ export type ReviewUpdateInput = {
304
304
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
305
305
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
306
306
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
307
- prd?: Prisma.PRDUpdateOneRequiredWithoutReviewsNestedInput
308
- version?: Prisma.PRDVersionUpdateOneRequiredWithoutReviewsNestedInput
307
+ design?: Prisma.DesignUpdateOneRequiredWithoutReviewsNestedInput
308
+ version?: Prisma.DesignVersionUpdateOneRequiredWithoutReviewsNestedInput
309
309
  reviewer?: Prisma.UserUpdateOneWithoutReviewsNestedInput
310
310
  comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
311
311
  }
312
312
 
313
313
  export type ReviewUncheckedUpdateInput = {
314
314
  id?: Prisma.StringFieldUpdateOperationsInput | string
315
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
315
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
316
316
  versionId?: Prisma.StringFieldUpdateOperationsInput | string
317
317
  status?: Prisma.EnumReviewStatusFieldUpdateOperationsInput | $Enums.ReviewStatus
318
318
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -324,7 +324,7 @@ export type ReviewUncheckedUpdateInput = {
324
324
 
325
325
  export type ReviewCreateManyInput = {
326
326
  id?: string
327
- prdId: string
327
+ designId: string
328
328
  versionId: string
329
329
  status?: $Enums.ReviewStatus
330
330
  reviewerId?: string | null
@@ -343,7 +343,7 @@ export type ReviewUpdateManyMutationInput = {
343
343
 
344
344
  export type ReviewUncheckedUpdateManyInput = {
345
345
  id?: Prisma.StringFieldUpdateOperationsInput | string
346
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
346
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
347
347
  versionId?: Prisma.StringFieldUpdateOperationsInput | string
348
348
  status?: Prisma.EnumReviewStatusFieldUpdateOperationsInput | $Enums.ReviewStatus
349
349
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -362,14 +362,14 @@ export type ReviewOrderByRelationAggregateInput = {
362
362
  _count?: Prisma.SortOrder
363
363
  }
364
364
 
365
- export type ReviewPrdIdVersionIdCompoundUniqueInput = {
366
- prdId: string
365
+ export type ReviewDesignIdVersionIdCompoundUniqueInput = {
366
+ designId: string
367
367
  versionId: string
368
368
  }
369
369
 
370
370
  export type ReviewCountOrderByAggregateInput = {
371
371
  id?: Prisma.SortOrder
372
- prdId?: Prisma.SortOrder
372
+ designId?: Prisma.SortOrder
373
373
  versionId?: Prisma.SortOrder
374
374
  status?: Prisma.SortOrder
375
375
  reviewerId?: Prisma.SortOrder
@@ -380,7 +380,7 @@ export type ReviewCountOrderByAggregateInput = {
380
380
 
381
381
  export type ReviewMaxOrderByAggregateInput = {
382
382
  id?: Prisma.SortOrder
383
- prdId?: Prisma.SortOrder
383
+ designId?: Prisma.SortOrder
384
384
  versionId?: Prisma.SortOrder
385
385
  status?: Prisma.SortOrder
386
386
  reviewerId?: Prisma.SortOrder
@@ -391,7 +391,7 @@ export type ReviewMaxOrderByAggregateInput = {
391
391
 
392
392
  export type ReviewMinOrderByAggregateInput = {
393
393
  id?: Prisma.SortOrder
394
- prdId?: Prisma.SortOrder
394
+ designId?: Prisma.SortOrder
395
395
  versionId?: Prisma.SortOrder
396
396
  status?: Prisma.SortOrder
397
397
  reviewerId?: Prisma.SortOrder
@@ -447,45 +447,45 @@ export type ReviewUncheckedUpdateManyWithoutReviewerNestedInput = {
447
447
  deleteMany?: Prisma.ReviewScalarWhereInput | Prisma.ReviewScalarWhereInput[]
448
448
  }
449
449
 
450
- export type ReviewCreateNestedManyWithoutPrdInput = {
451
- create?: Prisma.XOR<Prisma.ReviewCreateWithoutPrdInput, Prisma.ReviewUncheckedCreateWithoutPrdInput> | Prisma.ReviewCreateWithoutPrdInput[] | Prisma.ReviewUncheckedCreateWithoutPrdInput[]
452
- connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutPrdInput | Prisma.ReviewCreateOrConnectWithoutPrdInput[]
453
- createMany?: Prisma.ReviewCreateManyPrdInputEnvelope
450
+ export type ReviewCreateNestedManyWithoutDesignInput = {
451
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutDesignInput, Prisma.ReviewUncheckedCreateWithoutDesignInput> | Prisma.ReviewCreateWithoutDesignInput[] | Prisma.ReviewUncheckedCreateWithoutDesignInput[]
452
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutDesignInput | Prisma.ReviewCreateOrConnectWithoutDesignInput[]
453
+ createMany?: Prisma.ReviewCreateManyDesignInputEnvelope
454
454
  connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
455
455
  }
456
456
 
457
- export type ReviewUncheckedCreateNestedManyWithoutPrdInput = {
458
- create?: Prisma.XOR<Prisma.ReviewCreateWithoutPrdInput, Prisma.ReviewUncheckedCreateWithoutPrdInput> | Prisma.ReviewCreateWithoutPrdInput[] | Prisma.ReviewUncheckedCreateWithoutPrdInput[]
459
- connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutPrdInput | Prisma.ReviewCreateOrConnectWithoutPrdInput[]
460
- createMany?: Prisma.ReviewCreateManyPrdInputEnvelope
457
+ export type ReviewUncheckedCreateNestedManyWithoutDesignInput = {
458
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutDesignInput, Prisma.ReviewUncheckedCreateWithoutDesignInput> | Prisma.ReviewCreateWithoutDesignInput[] | Prisma.ReviewUncheckedCreateWithoutDesignInput[]
459
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutDesignInput | Prisma.ReviewCreateOrConnectWithoutDesignInput[]
460
+ createMany?: Prisma.ReviewCreateManyDesignInputEnvelope
461
461
  connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
462
462
  }
463
463
 
464
- export type ReviewUpdateManyWithoutPrdNestedInput = {
465
- create?: Prisma.XOR<Prisma.ReviewCreateWithoutPrdInput, Prisma.ReviewUncheckedCreateWithoutPrdInput> | Prisma.ReviewCreateWithoutPrdInput[] | Prisma.ReviewUncheckedCreateWithoutPrdInput[]
466
- connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutPrdInput | Prisma.ReviewCreateOrConnectWithoutPrdInput[]
467
- upsert?: Prisma.ReviewUpsertWithWhereUniqueWithoutPrdInput | Prisma.ReviewUpsertWithWhereUniqueWithoutPrdInput[]
468
- createMany?: Prisma.ReviewCreateManyPrdInputEnvelope
464
+ export type ReviewUpdateManyWithoutDesignNestedInput = {
465
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutDesignInput, Prisma.ReviewUncheckedCreateWithoutDesignInput> | Prisma.ReviewCreateWithoutDesignInput[] | Prisma.ReviewUncheckedCreateWithoutDesignInput[]
466
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutDesignInput | Prisma.ReviewCreateOrConnectWithoutDesignInput[]
467
+ upsert?: Prisma.ReviewUpsertWithWhereUniqueWithoutDesignInput | Prisma.ReviewUpsertWithWhereUniqueWithoutDesignInput[]
468
+ createMany?: Prisma.ReviewCreateManyDesignInputEnvelope
469
469
  set?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
470
470
  disconnect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
471
471
  delete?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
472
472
  connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
473
- update?: Prisma.ReviewUpdateWithWhereUniqueWithoutPrdInput | Prisma.ReviewUpdateWithWhereUniqueWithoutPrdInput[]
474
- updateMany?: Prisma.ReviewUpdateManyWithWhereWithoutPrdInput | Prisma.ReviewUpdateManyWithWhereWithoutPrdInput[]
473
+ update?: Prisma.ReviewUpdateWithWhereUniqueWithoutDesignInput | Prisma.ReviewUpdateWithWhereUniqueWithoutDesignInput[]
474
+ updateMany?: Prisma.ReviewUpdateManyWithWhereWithoutDesignInput | Prisma.ReviewUpdateManyWithWhereWithoutDesignInput[]
475
475
  deleteMany?: Prisma.ReviewScalarWhereInput | Prisma.ReviewScalarWhereInput[]
476
476
  }
477
477
 
478
- export type ReviewUncheckedUpdateManyWithoutPrdNestedInput = {
479
- create?: Prisma.XOR<Prisma.ReviewCreateWithoutPrdInput, Prisma.ReviewUncheckedCreateWithoutPrdInput> | Prisma.ReviewCreateWithoutPrdInput[] | Prisma.ReviewUncheckedCreateWithoutPrdInput[]
480
- connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutPrdInput | Prisma.ReviewCreateOrConnectWithoutPrdInput[]
481
- upsert?: Prisma.ReviewUpsertWithWhereUniqueWithoutPrdInput | Prisma.ReviewUpsertWithWhereUniqueWithoutPrdInput[]
482
- createMany?: Prisma.ReviewCreateManyPrdInputEnvelope
478
+ export type ReviewUncheckedUpdateManyWithoutDesignNestedInput = {
479
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutDesignInput, Prisma.ReviewUncheckedCreateWithoutDesignInput> | Prisma.ReviewCreateWithoutDesignInput[] | Prisma.ReviewUncheckedCreateWithoutDesignInput[]
480
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutDesignInput | Prisma.ReviewCreateOrConnectWithoutDesignInput[]
481
+ upsert?: Prisma.ReviewUpsertWithWhereUniqueWithoutDesignInput | Prisma.ReviewUpsertWithWhereUniqueWithoutDesignInput[]
482
+ createMany?: Prisma.ReviewCreateManyDesignInputEnvelope
483
483
  set?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
484
484
  disconnect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
485
485
  delete?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
486
486
  connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
487
- update?: Prisma.ReviewUpdateWithWhereUniqueWithoutPrdInput | Prisma.ReviewUpdateWithWhereUniqueWithoutPrdInput[]
488
- updateMany?: Prisma.ReviewUpdateManyWithWhereWithoutPrdInput | Prisma.ReviewUpdateManyWithWhereWithoutPrdInput[]
487
+ update?: Prisma.ReviewUpdateWithWhereUniqueWithoutDesignInput | Prisma.ReviewUpdateWithWhereUniqueWithoutDesignInput[]
488
+ updateMany?: Prisma.ReviewUpdateManyWithWhereWithoutDesignInput | Prisma.ReviewUpdateManyWithWhereWithoutDesignInput[]
489
489
  deleteMany?: Prisma.ReviewScalarWhereInput | Prisma.ReviewScalarWhereInput[]
490
490
  }
491
491
 
@@ -555,14 +555,14 @@ export type ReviewCreateWithoutReviewerInput = {
555
555
  notes?: string | null
556
556
  createdAt?: Date | string
557
557
  completedAt?: Date | string | null
558
- prd: Prisma.PRDCreateNestedOneWithoutReviewsInput
559
- version: Prisma.PRDVersionCreateNestedOneWithoutReviewsInput
558
+ design: Prisma.DesignCreateNestedOneWithoutReviewsInput
559
+ version: Prisma.DesignVersionCreateNestedOneWithoutReviewsInput
560
560
  comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
561
561
  }
562
562
 
563
563
  export type ReviewUncheckedCreateWithoutReviewerInput = {
564
564
  id?: string
565
- prdId: string
565
+ designId: string
566
566
  versionId: string
567
567
  status?: $Enums.ReviewStatus
568
568
  notes?: string | null
@@ -602,7 +602,7 @@ export type ReviewScalarWhereInput = {
602
602
  OR?: Prisma.ReviewScalarWhereInput[]
603
603
  NOT?: Prisma.ReviewScalarWhereInput | Prisma.ReviewScalarWhereInput[]
604
604
  id?: Prisma.StringFilter<"Review"> | string
605
- prdId?: Prisma.StringFilter<"Review"> | string
605
+ designId?: Prisma.StringFilter<"Review"> | string
606
606
  versionId?: Prisma.StringFilter<"Review"> | string
607
607
  status?: Prisma.EnumReviewStatusFilter<"Review"> | $Enums.ReviewStatus
608
608
  reviewerId?: Prisma.StringNullableFilter<"Review"> | string | null
@@ -611,18 +611,18 @@ export type ReviewScalarWhereInput = {
611
611
  completedAt?: Prisma.DateTimeNullableFilter<"Review"> | Date | string | null
612
612
  }
613
613
 
614
- export type ReviewCreateWithoutPrdInput = {
614
+ export type ReviewCreateWithoutDesignInput = {
615
615
  id?: string
616
616
  status?: $Enums.ReviewStatus
617
617
  notes?: string | null
618
618
  createdAt?: Date | string
619
619
  completedAt?: Date | string | null
620
- version: Prisma.PRDVersionCreateNestedOneWithoutReviewsInput
620
+ version: Prisma.DesignVersionCreateNestedOneWithoutReviewsInput
621
621
  reviewer?: Prisma.UserCreateNestedOneWithoutReviewsInput
622
622
  comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
623
623
  }
624
624
 
625
- export type ReviewUncheckedCreateWithoutPrdInput = {
625
+ export type ReviewUncheckedCreateWithoutDesignInput = {
626
626
  id?: string
627
627
  versionId: string
628
628
  status?: $Enums.ReviewStatus
@@ -633,30 +633,30 @@ export type ReviewUncheckedCreateWithoutPrdInput = {
633
633
  comments?: Prisma.ReviewCommentUncheckedCreateNestedManyWithoutReviewInput
634
634
  }
635
635
 
636
- export type ReviewCreateOrConnectWithoutPrdInput = {
636
+ export type ReviewCreateOrConnectWithoutDesignInput = {
637
637
  where: Prisma.ReviewWhereUniqueInput
638
- create: Prisma.XOR<Prisma.ReviewCreateWithoutPrdInput, Prisma.ReviewUncheckedCreateWithoutPrdInput>
638
+ create: Prisma.XOR<Prisma.ReviewCreateWithoutDesignInput, Prisma.ReviewUncheckedCreateWithoutDesignInput>
639
639
  }
640
640
 
641
- export type ReviewCreateManyPrdInputEnvelope = {
642
- data: Prisma.ReviewCreateManyPrdInput | Prisma.ReviewCreateManyPrdInput[]
641
+ export type ReviewCreateManyDesignInputEnvelope = {
642
+ data: Prisma.ReviewCreateManyDesignInput | Prisma.ReviewCreateManyDesignInput[]
643
643
  skipDuplicates?: boolean
644
644
  }
645
645
 
646
- export type ReviewUpsertWithWhereUniqueWithoutPrdInput = {
646
+ export type ReviewUpsertWithWhereUniqueWithoutDesignInput = {
647
647
  where: Prisma.ReviewWhereUniqueInput
648
- update: Prisma.XOR<Prisma.ReviewUpdateWithoutPrdInput, Prisma.ReviewUncheckedUpdateWithoutPrdInput>
649
- create: Prisma.XOR<Prisma.ReviewCreateWithoutPrdInput, Prisma.ReviewUncheckedCreateWithoutPrdInput>
648
+ update: Prisma.XOR<Prisma.ReviewUpdateWithoutDesignInput, Prisma.ReviewUncheckedUpdateWithoutDesignInput>
649
+ create: Prisma.XOR<Prisma.ReviewCreateWithoutDesignInput, Prisma.ReviewUncheckedCreateWithoutDesignInput>
650
650
  }
651
651
 
652
- export type ReviewUpdateWithWhereUniqueWithoutPrdInput = {
652
+ export type ReviewUpdateWithWhereUniqueWithoutDesignInput = {
653
653
  where: Prisma.ReviewWhereUniqueInput
654
- data: Prisma.XOR<Prisma.ReviewUpdateWithoutPrdInput, Prisma.ReviewUncheckedUpdateWithoutPrdInput>
654
+ data: Prisma.XOR<Prisma.ReviewUpdateWithoutDesignInput, Prisma.ReviewUncheckedUpdateWithoutDesignInput>
655
655
  }
656
656
 
657
- export type ReviewUpdateManyWithWhereWithoutPrdInput = {
657
+ export type ReviewUpdateManyWithWhereWithoutDesignInput = {
658
658
  where: Prisma.ReviewScalarWhereInput
659
- data: Prisma.XOR<Prisma.ReviewUpdateManyMutationInput, Prisma.ReviewUncheckedUpdateManyWithoutPrdInput>
659
+ data: Prisma.XOR<Prisma.ReviewUpdateManyMutationInput, Prisma.ReviewUncheckedUpdateManyWithoutDesignInput>
660
660
  }
661
661
 
662
662
  export type ReviewCreateWithoutVersionInput = {
@@ -665,14 +665,14 @@ export type ReviewCreateWithoutVersionInput = {
665
665
  notes?: string | null
666
666
  createdAt?: Date | string
667
667
  completedAt?: Date | string | null
668
- prd: Prisma.PRDCreateNestedOneWithoutReviewsInput
668
+ design: Prisma.DesignCreateNestedOneWithoutReviewsInput
669
669
  reviewer?: Prisma.UserCreateNestedOneWithoutReviewsInput
670
670
  comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
671
671
  }
672
672
 
673
673
  export type ReviewUncheckedCreateWithoutVersionInput = {
674
674
  id?: string
675
- prdId: string
675
+ designId: string
676
676
  status?: $Enums.ReviewStatus
677
677
  reviewerId?: string | null
678
678
  notes?: string | null
@@ -713,14 +713,14 @@ export type ReviewCreateWithoutCommentsInput = {
713
713
  notes?: string | null
714
714
  createdAt?: Date | string
715
715
  completedAt?: Date | string | null
716
- prd: Prisma.PRDCreateNestedOneWithoutReviewsInput
717
- version: Prisma.PRDVersionCreateNestedOneWithoutReviewsInput
716
+ design: Prisma.DesignCreateNestedOneWithoutReviewsInput
717
+ version: Prisma.DesignVersionCreateNestedOneWithoutReviewsInput
718
718
  reviewer?: Prisma.UserCreateNestedOneWithoutReviewsInput
719
719
  }
720
720
 
721
721
  export type ReviewUncheckedCreateWithoutCommentsInput = {
722
722
  id?: string
723
- prdId: string
723
+ designId: string
724
724
  versionId: string
725
725
  status?: $Enums.ReviewStatus
726
726
  reviewerId?: string | null
@@ -751,14 +751,14 @@ export type ReviewUpdateWithoutCommentsInput = {
751
751
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
752
752
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
753
753
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
754
- prd?: Prisma.PRDUpdateOneRequiredWithoutReviewsNestedInput
755
- version?: Prisma.PRDVersionUpdateOneRequiredWithoutReviewsNestedInput
754
+ design?: Prisma.DesignUpdateOneRequiredWithoutReviewsNestedInput
755
+ version?: Prisma.DesignVersionUpdateOneRequiredWithoutReviewsNestedInput
756
756
  reviewer?: Prisma.UserUpdateOneWithoutReviewsNestedInput
757
757
  }
758
758
 
759
759
  export type ReviewUncheckedUpdateWithoutCommentsInput = {
760
760
  id?: Prisma.StringFieldUpdateOperationsInput | string
761
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
761
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
762
762
  versionId?: Prisma.StringFieldUpdateOperationsInput | string
763
763
  status?: Prisma.EnumReviewStatusFieldUpdateOperationsInput | $Enums.ReviewStatus
764
764
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -769,7 +769,7 @@ export type ReviewUncheckedUpdateWithoutCommentsInput = {
769
769
 
770
770
  export type ReviewCreateManyReviewerInput = {
771
771
  id?: string
772
- prdId: string
772
+ designId: string
773
773
  versionId: string
774
774
  status?: $Enums.ReviewStatus
775
775
  notes?: string | null
@@ -783,14 +783,14 @@ export type ReviewUpdateWithoutReviewerInput = {
783
783
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
784
784
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
785
785
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
786
- prd?: Prisma.PRDUpdateOneRequiredWithoutReviewsNestedInput
787
- version?: Prisma.PRDVersionUpdateOneRequiredWithoutReviewsNestedInput
786
+ design?: Prisma.DesignUpdateOneRequiredWithoutReviewsNestedInput
787
+ version?: Prisma.DesignVersionUpdateOneRequiredWithoutReviewsNestedInput
788
788
  comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
789
789
  }
790
790
 
791
791
  export type ReviewUncheckedUpdateWithoutReviewerInput = {
792
792
  id?: Prisma.StringFieldUpdateOperationsInput | string
793
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
793
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
794
794
  versionId?: Prisma.StringFieldUpdateOperationsInput | string
795
795
  status?: Prisma.EnumReviewStatusFieldUpdateOperationsInput | $Enums.ReviewStatus
796
796
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -801,7 +801,7 @@ export type ReviewUncheckedUpdateWithoutReviewerInput = {
801
801
 
802
802
  export type ReviewUncheckedUpdateManyWithoutReviewerInput = {
803
803
  id?: Prisma.StringFieldUpdateOperationsInput | string
804
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
804
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
805
805
  versionId?: Prisma.StringFieldUpdateOperationsInput | string
806
806
  status?: Prisma.EnumReviewStatusFieldUpdateOperationsInput | $Enums.ReviewStatus
807
807
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -809,7 +809,7 @@ export type ReviewUncheckedUpdateManyWithoutReviewerInput = {
809
809
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
810
810
  }
811
811
 
812
- export type ReviewCreateManyPrdInput = {
812
+ export type ReviewCreateManyDesignInput = {
813
813
  id?: string
814
814
  versionId: string
815
815
  status?: $Enums.ReviewStatus
@@ -819,18 +819,18 @@ export type ReviewCreateManyPrdInput = {
819
819
  completedAt?: Date | string | null
820
820
  }
821
821
 
822
- export type ReviewUpdateWithoutPrdInput = {
822
+ export type ReviewUpdateWithoutDesignInput = {
823
823
  id?: Prisma.StringFieldUpdateOperationsInput | string
824
824
  status?: Prisma.EnumReviewStatusFieldUpdateOperationsInput | $Enums.ReviewStatus
825
825
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
826
826
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
827
827
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
828
- version?: Prisma.PRDVersionUpdateOneRequiredWithoutReviewsNestedInput
828
+ version?: Prisma.DesignVersionUpdateOneRequiredWithoutReviewsNestedInput
829
829
  reviewer?: Prisma.UserUpdateOneWithoutReviewsNestedInput
830
830
  comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
831
831
  }
832
832
 
833
- export type ReviewUncheckedUpdateWithoutPrdInput = {
833
+ export type ReviewUncheckedUpdateWithoutDesignInput = {
834
834
  id?: Prisma.StringFieldUpdateOperationsInput | string
835
835
  versionId?: Prisma.StringFieldUpdateOperationsInput | string
836
836
  status?: Prisma.EnumReviewStatusFieldUpdateOperationsInput | $Enums.ReviewStatus
@@ -841,7 +841,7 @@ export type ReviewUncheckedUpdateWithoutPrdInput = {
841
841
  comments?: Prisma.ReviewCommentUncheckedUpdateManyWithoutReviewNestedInput
842
842
  }
843
843
 
844
- export type ReviewUncheckedUpdateManyWithoutPrdInput = {
844
+ export type ReviewUncheckedUpdateManyWithoutDesignInput = {
845
845
  id?: Prisma.StringFieldUpdateOperationsInput | string
846
846
  versionId?: Prisma.StringFieldUpdateOperationsInput | string
847
847
  status?: Prisma.EnumReviewStatusFieldUpdateOperationsInput | $Enums.ReviewStatus
@@ -853,7 +853,7 @@ export type ReviewUncheckedUpdateManyWithoutPrdInput = {
853
853
 
854
854
  export type ReviewCreateManyVersionInput = {
855
855
  id?: string
856
- prdId: string
856
+ designId: string
857
857
  status?: $Enums.ReviewStatus
858
858
  reviewerId?: string | null
859
859
  notes?: string | null
@@ -867,14 +867,14 @@ export type ReviewUpdateWithoutVersionInput = {
867
867
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
868
868
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
869
869
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
870
- prd?: Prisma.PRDUpdateOneRequiredWithoutReviewsNestedInput
870
+ design?: Prisma.DesignUpdateOneRequiredWithoutReviewsNestedInput
871
871
  reviewer?: Prisma.UserUpdateOneWithoutReviewsNestedInput
872
872
  comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
873
873
  }
874
874
 
875
875
  export type ReviewUncheckedUpdateWithoutVersionInput = {
876
876
  id?: Prisma.StringFieldUpdateOperationsInput | string
877
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
877
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
878
878
  status?: Prisma.EnumReviewStatusFieldUpdateOperationsInput | $Enums.ReviewStatus
879
879
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
880
880
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -885,7 +885,7 @@ export type ReviewUncheckedUpdateWithoutVersionInput = {
885
885
 
886
886
  export type ReviewUncheckedUpdateManyWithoutVersionInput = {
887
887
  id?: Prisma.StringFieldUpdateOperationsInput | string
888
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
888
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
889
889
  status?: Prisma.EnumReviewStatusFieldUpdateOperationsInput | $Enums.ReviewStatus
890
890
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
891
891
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -926,15 +926,15 @@ export type ReviewCountOutputTypeCountCommentsArgs<ExtArgs extends runtime.Types
926
926
 
927
927
  export type ReviewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
928
928
  id?: boolean
929
- prdId?: boolean
929
+ designId?: boolean
930
930
  versionId?: boolean
931
931
  status?: boolean
932
932
  reviewerId?: boolean
933
933
  notes?: boolean
934
934
  createdAt?: boolean
935
935
  completedAt?: boolean
936
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
937
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
936
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
937
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
938
938
  reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
939
939
  comments?: boolean | Prisma.Review$commentsArgs<ExtArgs>
940
940
  _count?: boolean | Prisma.ReviewCountOutputTypeDefaultArgs<ExtArgs>
@@ -942,35 +942,35 @@ export type ReviewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
942
942
 
943
943
  export type ReviewSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
944
944
  id?: boolean
945
- prdId?: boolean
945
+ designId?: boolean
946
946
  versionId?: boolean
947
947
  status?: boolean
948
948
  reviewerId?: boolean
949
949
  notes?: boolean
950
950
  createdAt?: boolean
951
951
  completedAt?: boolean
952
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
953
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
952
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
953
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
954
954
  reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
955
955
  }, ExtArgs["result"]["review"]>
956
956
 
957
957
  export type ReviewSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
958
958
  id?: boolean
959
- prdId?: boolean
959
+ designId?: boolean
960
960
  versionId?: boolean
961
961
  status?: boolean
962
962
  reviewerId?: boolean
963
963
  notes?: boolean
964
964
  createdAt?: boolean
965
965
  completedAt?: boolean
966
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
967
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
966
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
967
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
968
968
  reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
969
969
  }, ExtArgs["result"]["review"]>
970
970
 
971
971
  export type ReviewSelectScalar = {
972
972
  id?: boolean
973
- prdId?: boolean
973
+ designId?: boolean
974
974
  versionId?: boolean
975
975
  status?: boolean
976
976
  reviewerId?: boolean
@@ -979,36 +979,36 @@ export type ReviewSelectScalar = {
979
979
  completedAt?: boolean
980
980
  }
981
981
 
982
- export type ReviewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "prdId" | "versionId" | "status" | "reviewerId" | "notes" | "createdAt" | "completedAt", ExtArgs["result"]["review"]>
982
+ export type ReviewOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "designId" | "versionId" | "status" | "reviewerId" | "notes" | "createdAt" | "completedAt", ExtArgs["result"]["review"]>
983
983
  export type ReviewInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
984
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
985
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
984
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
985
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
986
986
  reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
987
987
  comments?: boolean | Prisma.Review$commentsArgs<ExtArgs>
988
988
  _count?: boolean | Prisma.ReviewCountOutputTypeDefaultArgs<ExtArgs>
989
989
  }
990
990
  export type ReviewIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
991
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
992
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
991
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
992
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
993
993
  reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
994
994
  }
995
995
  export type ReviewIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
996
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
997
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
996
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
997
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
998
998
  reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
999
999
  }
1000
1000
 
1001
1001
  export type $ReviewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1002
1002
  name: "Review"
1003
1003
  objects: {
1004
- prd: Prisma.$PRDPayload<ExtArgs>
1005
- version: Prisma.$PRDVersionPayload<ExtArgs>
1004
+ design: Prisma.$DesignPayload<ExtArgs>
1005
+ version: Prisma.$DesignVersionPayload<ExtArgs>
1006
1006
  reviewer: Prisma.$UserPayload<ExtArgs> | null
1007
1007
  comments: Prisma.$ReviewCommentPayload<ExtArgs>[]
1008
1008
  }
1009
1009
  scalars: runtime.Types.Extensions.GetPayloadResult<{
1010
1010
  id: string
1011
- prdId: string
1011
+ designId: string
1012
1012
  versionId: string
1013
1013
  status: $Enums.ReviewStatus
1014
1014
  reviewerId: string | null
@@ -1409,8 +1409,8 @@ readonly fields: ReviewFieldRefs;
1409
1409
  */
1410
1410
  export interface Prisma__ReviewClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1411
1411
  readonly [Symbol.toStringTag]: "PrismaPromise"
1412
- 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>
1413
- 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>
1412
+ 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>
1413
+ 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>
1414
1414
  reviewer<T extends Prisma.Review$reviewerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Review$reviewerArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1415
1415
  comments<T extends Prisma.Review$commentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Review$commentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReviewCommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1416
1416
  /**
@@ -1443,7 +1443,7 @@ export interface Prisma__ReviewClient<T, Null = never, ExtArgs extends runtime.T
1443
1443
  */
1444
1444
  export interface ReviewFieldRefs {
1445
1445
  readonly id: Prisma.FieldRef<"Review", 'String'>
1446
- readonly prdId: Prisma.FieldRef<"Review", 'String'>
1446
+ readonly designId: Prisma.FieldRef<"Review", 'String'>
1447
1447
  readonly versionId: Prisma.FieldRef<"Review", 'String'>
1448
1448
  readonly status: Prisma.FieldRef<"Review", 'ReviewStatus'>
1449
1449
  readonly reviewerId: Prisma.FieldRef<"Review", 'String'>