@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: string | 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: string | 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: string
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.StringFilter<"Review"> | string
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.StringFilter<"Review"> | string
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.StringWithAggregatesFilter<"Review"> | string
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?: string
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.StringFieldUpdateOperationsInput | string
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?: string
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.StringFieldUpdateOperationsInput | string
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
 
@@ -551,14 +551,14 @@ export type ReviewCreateWithoutReviewerInput = {
551
551
  notes?: string | null
552
552
  createdAt?: Date | string
553
553
  completedAt?: Date | string | null
554
- prd: Prisma.PRDCreateNestedOneWithoutReviewsInput
555
- version: Prisma.PRDVersionCreateNestedOneWithoutReviewsInput
554
+ design: Prisma.DesignCreateNestedOneWithoutReviewsInput
555
+ version: Prisma.DesignVersionCreateNestedOneWithoutReviewsInput
556
556
  comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
557
557
  }
558
558
 
559
559
  export type ReviewUncheckedCreateWithoutReviewerInput = {
560
560
  id?: string
561
- prdId: string
561
+ designId: string
562
562
  versionId: string
563
563
  status?: string
564
564
  notes?: string | null
@@ -597,7 +597,7 @@ export type ReviewScalarWhereInput = {
597
597
  OR?: Prisma.ReviewScalarWhereInput[]
598
598
  NOT?: Prisma.ReviewScalarWhereInput | Prisma.ReviewScalarWhereInput[]
599
599
  id?: Prisma.StringFilter<"Review"> | string
600
- prdId?: Prisma.StringFilter<"Review"> | string
600
+ designId?: Prisma.StringFilter<"Review"> | string
601
601
  versionId?: Prisma.StringFilter<"Review"> | string
602
602
  status?: Prisma.StringFilter<"Review"> | string
603
603
  reviewerId?: Prisma.StringNullableFilter<"Review"> | string | null
@@ -606,18 +606,18 @@ export type ReviewScalarWhereInput = {
606
606
  completedAt?: Prisma.DateTimeNullableFilter<"Review"> | Date | string | null
607
607
  }
608
608
 
609
- export type ReviewCreateWithoutPrdInput = {
609
+ export type ReviewCreateWithoutDesignInput = {
610
610
  id?: string
611
611
  status?: string
612
612
  notes?: string | null
613
613
  createdAt?: Date | string
614
614
  completedAt?: Date | string | null
615
- version: Prisma.PRDVersionCreateNestedOneWithoutReviewsInput
615
+ version: Prisma.DesignVersionCreateNestedOneWithoutReviewsInput
616
616
  reviewer?: Prisma.UserCreateNestedOneWithoutReviewsInput
617
617
  comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
618
618
  }
619
619
 
620
- export type ReviewUncheckedCreateWithoutPrdInput = {
620
+ export type ReviewUncheckedCreateWithoutDesignInput = {
621
621
  id?: string
622
622
  versionId: string
623
623
  status?: string
@@ -628,29 +628,29 @@ export type ReviewUncheckedCreateWithoutPrdInput = {
628
628
  comments?: Prisma.ReviewCommentUncheckedCreateNestedManyWithoutReviewInput
629
629
  }
630
630
 
631
- export type ReviewCreateOrConnectWithoutPrdInput = {
631
+ export type ReviewCreateOrConnectWithoutDesignInput = {
632
632
  where: Prisma.ReviewWhereUniqueInput
633
- create: Prisma.XOR<Prisma.ReviewCreateWithoutPrdInput, Prisma.ReviewUncheckedCreateWithoutPrdInput>
633
+ create: Prisma.XOR<Prisma.ReviewCreateWithoutDesignInput, Prisma.ReviewUncheckedCreateWithoutDesignInput>
634
634
  }
635
635
 
636
- export type ReviewCreateManyPrdInputEnvelope = {
637
- data: Prisma.ReviewCreateManyPrdInput | Prisma.ReviewCreateManyPrdInput[]
636
+ export type ReviewCreateManyDesignInputEnvelope = {
637
+ data: Prisma.ReviewCreateManyDesignInput | Prisma.ReviewCreateManyDesignInput[]
638
638
  }
639
639
 
640
- export type ReviewUpsertWithWhereUniqueWithoutPrdInput = {
640
+ export type ReviewUpsertWithWhereUniqueWithoutDesignInput = {
641
641
  where: Prisma.ReviewWhereUniqueInput
642
- update: Prisma.XOR<Prisma.ReviewUpdateWithoutPrdInput, Prisma.ReviewUncheckedUpdateWithoutPrdInput>
643
- create: Prisma.XOR<Prisma.ReviewCreateWithoutPrdInput, Prisma.ReviewUncheckedCreateWithoutPrdInput>
642
+ update: Prisma.XOR<Prisma.ReviewUpdateWithoutDesignInput, Prisma.ReviewUncheckedUpdateWithoutDesignInput>
643
+ create: Prisma.XOR<Prisma.ReviewCreateWithoutDesignInput, Prisma.ReviewUncheckedCreateWithoutDesignInput>
644
644
  }
645
645
 
646
- export type ReviewUpdateWithWhereUniqueWithoutPrdInput = {
646
+ export type ReviewUpdateWithWhereUniqueWithoutDesignInput = {
647
647
  where: Prisma.ReviewWhereUniqueInput
648
- data: Prisma.XOR<Prisma.ReviewUpdateWithoutPrdInput, Prisma.ReviewUncheckedUpdateWithoutPrdInput>
648
+ data: Prisma.XOR<Prisma.ReviewUpdateWithoutDesignInput, Prisma.ReviewUncheckedUpdateWithoutDesignInput>
649
649
  }
650
650
 
651
- export type ReviewUpdateManyWithWhereWithoutPrdInput = {
651
+ export type ReviewUpdateManyWithWhereWithoutDesignInput = {
652
652
  where: Prisma.ReviewScalarWhereInput
653
- data: Prisma.XOR<Prisma.ReviewUpdateManyMutationInput, Prisma.ReviewUncheckedUpdateManyWithoutPrdInput>
653
+ data: Prisma.XOR<Prisma.ReviewUpdateManyMutationInput, Prisma.ReviewUncheckedUpdateManyWithoutDesignInput>
654
654
  }
655
655
 
656
656
  export type ReviewCreateWithoutVersionInput = {
@@ -659,14 +659,14 @@ export type ReviewCreateWithoutVersionInput = {
659
659
  notes?: string | null
660
660
  createdAt?: Date | string
661
661
  completedAt?: Date | string | null
662
- prd: Prisma.PRDCreateNestedOneWithoutReviewsInput
662
+ design: Prisma.DesignCreateNestedOneWithoutReviewsInput
663
663
  reviewer?: Prisma.UserCreateNestedOneWithoutReviewsInput
664
664
  comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
665
665
  }
666
666
 
667
667
  export type ReviewUncheckedCreateWithoutVersionInput = {
668
668
  id?: string
669
- prdId: string
669
+ designId: string
670
670
  status?: string
671
671
  reviewerId?: string | null
672
672
  notes?: string | null
@@ -706,14 +706,14 @@ export type ReviewCreateWithoutCommentsInput = {
706
706
  notes?: string | null
707
707
  createdAt?: Date | string
708
708
  completedAt?: Date | string | null
709
- prd: Prisma.PRDCreateNestedOneWithoutReviewsInput
710
- version: Prisma.PRDVersionCreateNestedOneWithoutReviewsInput
709
+ design: Prisma.DesignCreateNestedOneWithoutReviewsInput
710
+ version: Prisma.DesignVersionCreateNestedOneWithoutReviewsInput
711
711
  reviewer?: Prisma.UserCreateNestedOneWithoutReviewsInput
712
712
  }
713
713
 
714
714
  export type ReviewUncheckedCreateWithoutCommentsInput = {
715
715
  id?: string
716
- prdId: string
716
+ designId: string
717
717
  versionId: string
718
718
  status?: string
719
719
  reviewerId?: string | null
@@ -744,14 +744,14 @@ export type ReviewUpdateWithoutCommentsInput = {
744
744
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
745
745
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
746
746
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
747
- prd?: Prisma.PRDUpdateOneRequiredWithoutReviewsNestedInput
748
- version?: Prisma.PRDVersionUpdateOneRequiredWithoutReviewsNestedInput
747
+ design?: Prisma.DesignUpdateOneRequiredWithoutReviewsNestedInput
748
+ version?: Prisma.DesignVersionUpdateOneRequiredWithoutReviewsNestedInput
749
749
  reviewer?: Prisma.UserUpdateOneWithoutReviewsNestedInput
750
750
  }
751
751
 
752
752
  export type ReviewUncheckedUpdateWithoutCommentsInput = {
753
753
  id?: Prisma.StringFieldUpdateOperationsInput | string
754
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
754
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
755
755
  versionId?: Prisma.StringFieldUpdateOperationsInput | string
756
756
  status?: Prisma.StringFieldUpdateOperationsInput | string
757
757
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -762,7 +762,7 @@ export type ReviewUncheckedUpdateWithoutCommentsInput = {
762
762
 
763
763
  export type ReviewCreateManyReviewerInput = {
764
764
  id?: string
765
- prdId: string
765
+ designId: string
766
766
  versionId: string
767
767
  status?: string
768
768
  notes?: string | null
@@ -776,14 +776,14 @@ export type ReviewUpdateWithoutReviewerInput = {
776
776
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
777
777
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
778
778
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
779
- prd?: Prisma.PRDUpdateOneRequiredWithoutReviewsNestedInput
780
- version?: Prisma.PRDVersionUpdateOneRequiredWithoutReviewsNestedInput
779
+ design?: Prisma.DesignUpdateOneRequiredWithoutReviewsNestedInput
780
+ version?: Prisma.DesignVersionUpdateOneRequiredWithoutReviewsNestedInput
781
781
  comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
782
782
  }
783
783
 
784
784
  export type ReviewUncheckedUpdateWithoutReviewerInput = {
785
785
  id?: Prisma.StringFieldUpdateOperationsInput | string
786
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
786
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
787
787
  versionId?: Prisma.StringFieldUpdateOperationsInput | string
788
788
  status?: Prisma.StringFieldUpdateOperationsInput | string
789
789
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -794,7 +794,7 @@ export type ReviewUncheckedUpdateWithoutReviewerInput = {
794
794
 
795
795
  export type ReviewUncheckedUpdateManyWithoutReviewerInput = {
796
796
  id?: Prisma.StringFieldUpdateOperationsInput | string
797
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
797
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
798
798
  versionId?: Prisma.StringFieldUpdateOperationsInput | string
799
799
  status?: Prisma.StringFieldUpdateOperationsInput | string
800
800
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -802,7 +802,7 @@ export type ReviewUncheckedUpdateManyWithoutReviewerInput = {
802
802
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
803
803
  }
804
804
 
805
- export type ReviewCreateManyPrdInput = {
805
+ export type ReviewCreateManyDesignInput = {
806
806
  id?: string
807
807
  versionId: string
808
808
  status?: string
@@ -812,18 +812,18 @@ export type ReviewCreateManyPrdInput = {
812
812
  completedAt?: Date | string | null
813
813
  }
814
814
 
815
- export type ReviewUpdateWithoutPrdInput = {
815
+ export type ReviewUpdateWithoutDesignInput = {
816
816
  id?: Prisma.StringFieldUpdateOperationsInput | string
817
817
  status?: Prisma.StringFieldUpdateOperationsInput | string
818
818
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
819
819
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
820
820
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
821
- version?: Prisma.PRDVersionUpdateOneRequiredWithoutReviewsNestedInput
821
+ version?: Prisma.DesignVersionUpdateOneRequiredWithoutReviewsNestedInput
822
822
  reviewer?: Prisma.UserUpdateOneWithoutReviewsNestedInput
823
823
  comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
824
824
  }
825
825
 
826
- export type ReviewUncheckedUpdateWithoutPrdInput = {
826
+ export type ReviewUncheckedUpdateWithoutDesignInput = {
827
827
  id?: Prisma.StringFieldUpdateOperationsInput | string
828
828
  versionId?: Prisma.StringFieldUpdateOperationsInput | string
829
829
  status?: Prisma.StringFieldUpdateOperationsInput | string
@@ -834,7 +834,7 @@ export type ReviewUncheckedUpdateWithoutPrdInput = {
834
834
  comments?: Prisma.ReviewCommentUncheckedUpdateManyWithoutReviewNestedInput
835
835
  }
836
836
 
837
- export type ReviewUncheckedUpdateManyWithoutPrdInput = {
837
+ export type ReviewUncheckedUpdateManyWithoutDesignInput = {
838
838
  id?: Prisma.StringFieldUpdateOperationsInput | string
839
839
  versionId?: Prisma.StringFieldUpdateOperationsInput | string
840
840
  status?: Prisma.StringFieldUpdateOperationsInput | string
@@ -846,7 +846,7 @@ export type ReviewUncheckedUpdateManyWithoutPrdInput = {
846
846
 
847
847
  export type ReviewCreateManyVersionInput = {
848
848
  id?: string
849
- prdId: string
849
+ designId: string
850
850
  status?: string
851
851
  reviewerId?: string | null
852
852
  notes?: string | null
@@ -860,14 +860,14 @@ export type ReviewUpdateWithoutVersionInput = {
860
860
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
861
861
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
862
862
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
863
- prd?: Prisma.PRDUpdateOneRequiredWithoutReviewsNestedInput
863
+ design?: Prisma.DesignUpdateOneRequiredWithoutReviewsNestedInput
864
864
  reviewer?: Prisma.UserUpdateOneWithoutReviewsNestedInput
865
865
  comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
866
866
  }
867
867
 
868
868
  export type ReviewUncheckedUpdateWithoutVersionInput = {
869
869
  id?: Prisma.StringFieldUpdateOperationsInput | string
870
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
870
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
871
871
  status?: Prisma.StringFieldUpdateOperationsInput | string
872
872
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
873
873
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -878,7 +878,7 @@ export type ReviewUncheckedUpdateWithoutVersionInput = {
878
878
 
879
879
  export type ReviewUncheckedUpdateManyWithoutVersionInput = {
880
880
  id?: Prisma.StringFieldUpdateOperationsInput | string
881
- prdId?: Prisma.StringFieldUpdateOperationsInput | string
881
+ designId?: Prisma.StringFieldUpdateOperationsInput | string
882
882
  status?: Prisma.StringFieldUpdateOperationsInput | string
883
883
  reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
884
884
  notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -919,15 +919,15 @@ export type ReviewCountOutputTypeCountCommentsArgs<ExtArgs extends runtime.Types
919
919
 
920
920
  export type ReviewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
921
921
  id?: boolean
922
- prdId?: boolean
922
+ designId?: boolean
923
923
  versionId?: boolean
924
924
  status?: boolean
925
925
  reviewerId?: boolean
926
926
  notes?: boolean
927
927
  createdAt?: boolean
928
928
  completedAt?: boolean
929
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
930
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
929
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
930
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
931
931
  reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
932
932
  comments?: boolean | Prisma.Review$commentsArgs<ExtArgs>
933
933
  _count?: boolean | Prisma.ReviewCountOutputTypeDefaultArgs<ExtArgs>
@@ -935,35 +935,35 @@ export type ReviewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs =
935
935
 
936
936
  export type ReviewSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
937
937
  id?: boolean
938
- prdId?: boolean
938
+ designId?: boolean
939
939
  versionId?: boolean
940
940
  status?: boolean
941
941
  reviewerId?: boolean
942
942
  notes?: boolean
943
943
  createdAt?: boolean
944
944
  completedAt?: boolean
945
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
946
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
945
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
946
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
947
947
  reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
948
948
  }, ExtArgs["result"]["review"]>
949
949
 
950
950
  export type ReviewSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
951
951
  id?: boolean
952
- prdId?: boolean
952
+ designId?: boolean
953
953
  versionId?: boolean
954
954
  status?: boolean
955
955
  reviewerId?: boolean
956
956
  notes?: boolean
957
957
  createdAt?: boolean
958
958
  completedAt?: boolean
959
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
960
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
959
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
960
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
961
961
  reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
962
962
  }, ExtArgs["result"]["review"]>
963
963
 
964
964
  export type ReviewSelectScalar = {
965
965
  id?: boolean
966
- prdId?: boolean
966
+ designId?: boolean
967
967
  versionId?: boolean
968
968
  status?: boolean
969
969
  reviewerId?: boolean
@@ -972,36 +972,36 @@ export type ReviewSelectScalar = {
972
972
  completedAt?: boolean
973
973
  }
974
974
 
975
- 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"]>
975
+ 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"]>
976
976
  export type ReviewInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
977
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
978
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
977
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
978
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
979
979
  reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
980
980
  comments?: boolean | Prisma.Review$commentsArgs<ExtArgs>
981
981
  _count?: boolean | Prisma.ReviewCountOutputTypeDefaultArgs<ExtArgs>
982
982
  }
983
983
  export type ReviewIncludeCreateManyAndReturn<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
  }
988
988
  export type ReviewIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
989
- prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
990
- version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
989
+ design?: boolean | Prisma.DesignDefaultArgs<ExtArgs>
990
+ version?: boolean | Prisma.DesignVersionDefaultArgs<ExtArgs>
991
991
  reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
992
992
  }
993
993
 
994
994
  export type $ReviewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
995
995
  name: "Review"
996
996
  objects: {
997
- prd: Prisma.$PRDPayload<ExtArgs>
998
- version: Prisma.$PRDVersionPayload<ExtArgs>
997
+ design: Prisma.$DesignPayload<ExtArgs>
998
+ version: Prisma.$DesignVersionPayload<ExtArgs>
999
999
  reviewer: Prisma.$UserPayload<ExtArgs> | null
1000
1000
  comments: Prisma.$ReviewCommentPayload<ExtArgs>[]
1001
1001
  }
1002
1002
  scalars: runtime.Types.Extensions.GetPayloadResult<{
1003
1003
  id: string
1004
- prdId: string
1004
+ designId: string
1005
1005
  versionId: string
1006
1006
  status: string
1007
1007
  reviewerId: string | null
@@ -1402,8 +1402,8 @@ readonly fields: ReviewFieldRefs;
1402
1402
  */
1403
1403
  export interface Prisma__ReviewClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1404
1404
  readonly [Symbol.toStringTag]: "PrismaPromise"
1405
- 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>
1406
- 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>
1405
+ 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>
1406
+ 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>
1407
1407
  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>
1408
1408
  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>
1409
1409
  /**
@@ -1436,7 +1436,7 @@ export interface Prisma__ReviewClient<T, Null = never, ExtArgs extends runtime.T
1436
1436
  */
1437
1437
  export interface ReviewFieldRefs {
1438
1438
  readonly id: Prisma.FieldRef<"Review", 'String'>
1439
- readonly prdId: Prisma.FieldRef<"Review", 'String'>
1439
+ readonly designId: Prisma.FieldRef<"Review", 'String'>
1440
1440
  readonly versionId: Prisma.FieldRef<"Review", 'String'>
1441
1441
  readonly status: Prisma.FieldRef<"Review", 'String'>
1442
1442
  readonly reviewerId: Prisma.FieldRef<"Review", 'String'>