@allbluecn/database 0.3.14 → 0.4.1

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 (190) hide show
  1. package/desktop-init.ts +128 -0
  2. package/generated/browser.ts +494 -0
  3. package/generated/client.ts +518 -0
  4. package/generated/commonInputTypes.ts +1056 -0
  5. package/generated/enums.ts +93 -0
  6. package/generated/internal/class.ts +1144 -0
  7. package/generated/internal/prismaNamespace.ts +9603 -0
  8. package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
  9. package/generated/models/Account.ts +1648 -0
  10. package/generated/models/AgentConversation.ts +1651 -0
  11. package/generated/models/AgentMessage.ts +1409 -0
  12. package/generated/models/AiProvider.ts +1607 -0
  13. package/generated/models/AiProviderConfig.ts +1514 -0
  14. package/generated/models/AiUsageLog.ts +1863 -0
  15. package/generated/models/AnyHubApp.ts +1911 -0
  16. package/generated/models/AnyHubMarketApp.ts +2008 -0
  17. package/generated/models/AnyHubPermission.ts +1422 -0
  18. package/generated/models/AnyHubRecommendation.ts +1870 -0
  19. package/generated/models/AnyHubRecommender.ts +1471 -0
  20. package/generated/models/Artboard.ts +1811 -0
  21. package/generated/models/ArtboardExport.ts +1548 -0
  22. package/generated/models/ArticleFavorite.ts +1352 -0
  23. package/generated/models/AuditLog.ts +1533 -0
  24. package/generated/models/Block.ts +1650 -0
  25. package/generated/models/BlockComponent.ts +1734 -0
  26. package/generated/models/BlockInstance.ts +2043 -0
  27. package/generated/models/BookmarkCategory.ts +1670 -0
  28. package/generated/models/ChatInterrupt.ts +1699 -0
  29. package/generated/models/ChatMessage.ts +1438 -0
  30. package/generated/models/ChatRun.ts +1632 -0
  31. package/generated/models/ChatThread.ts +2133 -0
  32. package/generated/models/Comment.ts +2206 -0
  33. package/generated/models/CommentIgnore.ts +1430 -0
  34. package/generated/models/CommentReaction.ts +1472 -0
  35. package/generated/models/ComplianceExport.ts +1345 -0
  36. package/generated/models/Component.ts +2345 -0
  37. package/generated/models/ComponentInstance.ts +2102 -0
  38. package/generated/models/ComponentTag.ts +1281 -0
  39. package/generated/models/CustomRole.ts +1560 -0
  40. package/generated/models/DesignProject.ts +1643 -0
  41. package/generated/models/DictionaryTerm.ts +1642 -0
  42. package/generated/models/GenerationRun.ts +1543 -0
  43. package/generated/models/IndustryCompliance.ts +1797 -0
  44. package/generated/models/InvitationCode.ts +1417 -0
  45. package/generated/models/InvitationUse.ts +1424 -0
  46. package/generated/models/Invoice.ts +1710 -0
  47. package/generated/models/KnowledgeBase.ts +1671 -0
  48. package/generated/models/KnowledgeDocument.ts +2458 -0
  49. package/generated/models/KnowledgeShareRecord.ts +1352 -0
  50. package/generated/models/Label.ts +1482 -0
  51. package/generated/models/LegalRegulation.ts +1873 -0
  52. package/generated/models/LicenseActivation.ts +1415 -0
  53. package/generated/models/LicenseKey.ts +1884 -0
  54. package/generated/models/LoginLog.ts +1450 -0
  55. package/generated/models/MonitoringErrorReport.ts +1299 -0
  56. package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
  57. package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
  58. package/generated/models/MonitoringRequestLog.ts +1283 -0
  59. package/generated/models/PRD.ts +2805 -0
  60. package/generated/models/PRDPage.ts +2402 -0
  61. package/generated/models/PRDTag.ts +1430 -0
  62. package/generated/models/PRDVersion.ts +2121 -0
  63. package/generated/models/PageVersion.ts +1523 -0
  64. package/generated/models/PasswordResetToken.ts +1380 -0
  65. package/generated/models/Plan.ts +2069 -0
  66. package/generated/models/Project.ts +2148 -0
  67. package/generated/models/ProjectActivity.ts +1582 -0
  68. package/generated/models/ProjectMember.ts +1512 -0
  69. package/generated/models/ProviderEvent.ts +1227 -0
  70. package/generated/models/Reference.ts +1177 -0
  71. package/generated/models/Review.ts +1912 -0
  72. package/generated/models/ReviewComment.ts +1904 -0
  73. package/generated/models/RoleAssignment.ts +1430 -0
  74. package/generated/models/SequenceCounter.ts +1137 -0
  75. package/generated/models/Share.ts +1681 -0
  76. package/generated/models/ShareVersion.ts +1389 -0
  77. package/generated/models/SsoMapping.ts +1512 -0
  78. package/generated/models/SsoProvider.ts +1639 -0
  79. package/generated/models/Story.ts +5234 -0
  80. package/generated/models/StoryActivity.ts +1664 -0
  81. package/generated/models/StoryAttachment.ts +1467 -0
  82. package/generated/models/StoryComment.ts +1992 -0
  83. package/generated/models/StoryDependency.ts +1517 -0
  84. package/generated/models/StoryDocLink.ts +1430 -0
  85. package/generated/models/StoryFilterView.ts +1587 -0
  86. package/generated/models/StoryLabel.ts +1349 -0
  87. package/generated/models/StoryLink.ts +1415 -0
  88. package/generated/models/StoryPrdLink.ts +1430 -0
  89. package/generated/models/StoryReaction.ts +1472 -0
  90. package/generated/models/Subscription.ts +2147 -0
  91. package/generated/models/SystemSetting.ts +1217 -0
  92. package/generated/models/Tag.ts +1655 -0
  93. package/generated/models/TeamInvitation.ts +1526 -0
  94. package/generated/models/TeamMembership.ts +1436 -0
  95. package/generated/models/Template.ts +1391 -0
  96. package/generated/models/TemplateBlock.ts +1664 -0
  97. package/generated/models/ThirdPartyDependency.ts +1473 -0
  98. package/generated/models/UsageRecord.ts +1505 -0
  99. package/generated/models/User.ts +20998 -0
  100. package/generated/models/UserAgent.ts +1900 -0
  101. package/generated/models/UserSkill.ts +1456 -0
  102. package/generated/models/WebsiteBookmark.ts +2219 -0
  103. package/generated/models/Workspace.ts +2279 -0
  104. package/generated/models.ts +106 -0
  105. package/generated-sqlite/browser.ts +399 -0
  106. package/generated-sqlite/client.ts +423 -0
  107. package/generated-sqlite/commonInputTypes.ts +608 -0
  108. package/generated-sqlite/enums.ts +15 -0
  109. package/generated-sqlite/internal/class.ts +954 -0
  110. package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
  111. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
  112. package/generated-sqlite/models/AgentConversation.ts +1647 -0
  113. package/generated-sqlite/models/AgentMessage.ts +1406 -0
  114. package/generated-sqlite/models/AiProvider.ts +1605 -0
  115. package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
  116. package/generated-sqlite/models/AiUsageLog.ts +1845 -0
  117. package/generated-sqlite/models/AnyHubApp.ts +1908 -0
  118. package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
  119. package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
  120. package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
  121. package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
  122. package/generated-sqlite/models/Artboard.ts +1808 -0
  123. package/generated-sqlite/models/ArtboardExport.ts +1545 -0
  124. package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
  125. package/generated-sqlite/models/AuditLog.ts +1287 -0
  126. package/generated-sqlite/models/Block.ts +1648 -0
  127. package/generated-sqlite/models/BlockComponent.ts +1730 -0
  128. package/generated-sqlite/models/BlockInstance.ts +2039 -0
  129. package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
  130. package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
  131. package/generated-sqlite/models/ChatMessage.ts +1435 -0
  132. package/generated-sqlite/models/ChatRun.ts +1629 -0
  133. package/generated-sqlite/models/ChatThread.ts +2129 -0
  134. package/generated-sqlite/models/Comment.ts +2201 -0
  135. package/generated-sqlite/models/CommentIgnore.ts +1426 -0
  136. package/generated-sqlite/models/ComplianceExport.ts +1343 -0
  137. package/generated-sqlite/models/Component.ts +2326 -0
  138. package/generated-sqlite/models/ComponentInstance.ts +2097 -0
  139. package/generated-sqlite/models/ComponentTag.ts +1278 -0
  140. package/generated-sqlite/models/CustomRole.ts +1209 -0
  141. package/generated-sqlite/models/DesignProject.ts +1640 -0
  142. package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
  143. package/generated-sqlite/models/GenerationRun.ts +1540 -0
  144. package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
  145. package/generated-sqlite/models/InvitationCode.ts +1415 -0
  146. package/generated-sqlite/models/InvitationUse.ts +1420 -0
  147. package/generated-sqlite/models/Invoice.ts +1707 -0
  148. package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
  149. package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
  150. package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
  151. package/generated-sqlite/models/LegalRegulation.ts +1870 -0
  152. package/generated-sqlite/models/LicenseActivation.ts +1203 -0
  153. package/generated-sqlite/models/LicenseKey.ts +1443 -0
  154. package/generated-sqlite/models/LoginLog.ts +1447 -0
  155. package/generated-sqlite/models/PRD.ts +2616 -0
  156. package/generated-sqlite/models/PRDPage.ts +2398 -0
  157. package/generated-sqlite/models/PRDTag.ts +1426 -0
  158. package/generated-sqlite/models/PRDVersion.ts +2117 -0
  159. package/generated-sqlite/models/PageVersion.ts +1528 -0
  160. package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
  161. package/generated-sqlite/models/Plan.ts +2060 -0
  162. package/generated-sqlite/models/Project.ts +1994 -0
  163. package/generated-sqlite/models/ProjectActivity.ts +1578 -0
  164. package/generated-sqlite/models/ProjectMember.ts +1508 -0
  165. package/generated-sqlite/models/ProviderEvent.ts +1225 -0
  166. package/generated-sqlite/models/Reference.ts +1175 -0
  167. package/generated-sqlite/models/Review.ts +1903 -0
  168. package/generated-sqlite/models/ReviewComment.ts +1899 -0
  169. package/generated-sqlite/models/RoleAssignment.ts +1125 -0
  170. package/generated-sqlite/models/Share.ts +1674 -0
  171. package/generated-sqlite/models/ShareVersion.ts +1385 -0
  172. package/generated-sqlite/models/SsoMapping.ts +1181 -0
  173. package/generated-sqlite/models/SsoProvider.ts +1266 -0
  174. package/generated-sqlite/models/Subscription.ts +2137 -0
  175. package/generated-sqlite/models/SystemSetting.ts +1215 -0
  176. package/generated-sqlite/models/Tag.ts +1652 -0
  177. package/generated-sqlite/models/TeamInvitation.ts +1523 -0
  178. package/generated-sqlite/models/TeamMembership.ts +1433 -0
  179. package/generated-sqlite/models/Template.ts +1389 -0
  180. package/generated-sqlite/models/TemplateBlock.ts +1660 -0
  181. package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
  182. package/generated-sqlite/models/UsageRecord.ts +1498 -0
  183. package/generated-sqlite/models/User.ts +13558 -0
  184. package/generated-sqlite/models/UserAgent.ts +1897 -0
  185. package/generated-sqlite/models/UserSkill.ts +1453 -0
  186. package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
  187. package/generated-sqlite/models/Workspace.ts +1824 -0
  188. package/generated-sqlite/models.ts +87 -0
  189. package/package.json +7 -3
  190. package/LICENSE +0 -661
@@ -0,0 +1,1903 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `Review` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model Review
17
+ *
18
+ */
19
+ export type ReviewModel = runtime.Types.Result.DefaultSelection<Prisma.$ReviewPayload>
20
+
21
+ export type AggregateReview = {
22
+ _count: ReviewCountAggregateOutputType | null
23
+ _min: ReviewMinAggregateOutputType | null
24
+ _max: ReviewMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type ReviewMinAggregateOutputType = {
28
+ id: string | null
29
+ prdId: string | null
30
+ versionId: string | null
31
+ status: string | null
32
+ reviewerId: string | null
33
+ notes: string | null
34
+ createdAt: Date | null
35
+ completedAt: Date | null
36
+ }
37
+
38
+ export type ReviewMaxAggregateOutputType = {
39
+ id: string | null
40
+ prdId: string | null
41
+ versionId: string | null
42
+ status: string | null
43
+ reviewerId: string | null
44
+ notes: string | null
45
+ createdAt: Date | null
46
+ completedAt: Date | null
47
+ }
48
+
49
+ export type ReviewCountAggregateOutputType = {
50
+ id: number
51
+ prdId: number
52
+ versionId: number
53
+ status: number
54
+ reviewerId: number
55
+ notes: number
56
+ createdAt: number
57
+ completedAt: number
58
+ _all: number
59
+ }
60
+
61
+
62
+ export type ReviewMinAggregateInputType = {
63
+ id?: true
64
+ prdId?: true
65
+ versionId?: true
66
+ status?: true
67
+ reviewerId?: true
68
+ notes?: true
69
+ createdAt?: true
70
+ completedAt?: true
71
+ }
72
+
73
+ export type ReviewMaxAggregateInputType = {
74
+ id?: true
75
+ prdId?: true
76
+ versionId?: true
77
+ status?: true
78
+ reviewerId?: true
79
+ notes?: true
80
+ createdAt?: true
81
+ completedAt?: true
82
+ }
83
+
84
+ export type ReviewCountAggregateInputType = {
85
+ id?: true
86
+ prdId?: true
87
+ versionId?: true
88
+ status?: true
89
+ reviewerId?: true
90
+ notes?: true
91
+ createdAt?: true
92
+ completedAt?: true
93
+ _all?: true
94
+ }
95
+
96
+ export type ReviewAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
97
+ /**
98
+ * Filter which Review to aggregate.
99
+ */
100
+ where?: Prisma.ReviewWhereInput
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
103
+ *
104
+ * Determine the order of Reviews to fetch.
105
+ */
106
+ orderBy?: Prisma.ReviewOrderByWithRelationInput | Prisma.ReviewOrderByWithRelationInput[]
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
109
+ *
110
+ * Sets the start position
111
+ */
112
+ cursor?: Prisma.ReviewWhereUniqueInput
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
115
+ *
116
+ * Take `±n` Reviews from the position of the cursor.
117
+ */
118
+ take?: number
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
121
+ *
122
+ * Skip the first `n` Reviews.
123
+ */
124
+ skip?: number
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
127
+ *
128
+ * Count returned Reviews
129
+ **/
130
+ _count?: true | ReviewCountAggregateInputType
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
133
+ *
134
+ * Select which fields to find the minimum value
135
+ **/
136
+ _min?: ReviewMinAggregateInputType
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Select which fields to find the maximum value
141
+ **/
142
+ _max?: ReviewMaxAggregateInputType
143
+ }
144
+
145
+ export type GetReviewAggregateType<T extends ReviewAggregateArgs> = {
146
+ [P in keyof T & keyof AggregateReview]: P extends '_count' | 'count'
147
+ ? T[P] extends true
148
+ ? number
149
+ : Prisma.GetScalarType<T[P], AggregateReview[P]>
150
+ : Prisma.GetScalarType<T[P], AggregateReview[P]>
151
+ }
152
+
153
+
154
+
155
+
156
+ export type ReviewGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
157
+ where?: Prisma.ReviewWhereInput
158
+ orderBy?: Prisma.ReviewOrderByWithAggregationInput | Prisma.ReviewOrderByWithAggregationInput[]
159
+ by: Prisma.ReviewScalarFieldEnum[] | Prisma.ReviewScalarFieldEnum
160
+ having?: Prisma.ReviewScalarWhereWithAggregatesInput
161
+ take?: number
162
+ skip?: number
163
+ _count?: ReviewCountAggregateInputType | true
164
+ _min?: ReviewMinAggregateInputType
165
+ _max?: ReviewMaxAggregateInputType
166
+ }
167
+
168
+ export type ReviewGroupByOutputType = {
169
+ id: string
170
+ prdId: string
171
+ versionId: string
172
+ status: string
173
+ reviewerId: string | null
174
+ notes: string | null
175
+ createdAt: Date
176
+ completedAt: Date | null
177
+ _count: ReviewCountAggregateOutputType | null
178
+ _min: ReviewMinAggregateOutputType | null
179
+ _max: ReviewMaxAggregateOutputType | null
180
+ }
181
+
182
+ export type GetReviewGroupByPayload<T extends ReviewGroupByArgs> = Prisma.PrismaPromise<
183
+ Array<
184
+ Prisma.PickEnumerable<ReviewGroupByOutputType, T['by']> &
185
+ {
186
+ [P in ((keyof T) & (keyof ReviewGroupByOutputType))]: P extends '_count'
187
+ ? T[P] extends boolean
188
+ ? number
189
+ : Prisma.GetScalarType<T[P], ReviewGroupByOutputType[P]>
190
+ : Prisma.GetScalarType<T[P], ReviewGroupByOutputType[P]>
191
+ }
192
+ >
193
+ >
194
+
195
+
196
+
197
+ export type ReviewWhereInput = {
198
+ AND?: Prisma.ReviewWhereInput | Prisma.ReviewWhereInput[]
199
+ OR?: Prisma.ReviewWhereInput[]
200
+ NOT?: Prisma.ReviewWhereInput | Prisma.ReviewWhereInput[]
201
+ id?: Prisma.StringFilter<"Review"> | string
202
+ prdId?: Prisma.StringFilter<"Review"> | string
203
+ versionId?: Prisma.StringFilter<"Review"> | string
204
+ status?: Prisma.StringFilter<"Review"> | string
205
+ reviewerId?: Prisma.StringNullableFilter<"Review"> | string | null
206
+ notes?: Prisma.StringNullableFilter<"Review"> | string | null
207
+ createdAt?: Prisma.DateTimeFilter<"Review"> | Date | string
208
+ completedAt?: Prisma.DateTimeNullableFilter<"Review"> | Date | string | null
209
+ prd?: Prisma.XOR<Prisma.PRDScalarRelationFilter, Prisma.PRDWhereInput>
210
+ version?: Prisma.XOR<Prisma.PRDVersionScalarRelationFilter, Prisma.PRDVersionWhereInput>
211
+ reviewer?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
212
+ comments?: Prisma.ReviewCommentListRelationFilter
213
+ }
214
+
215
+ export type ReviewOrderByWithRelationInput = {
216
+ id?: Prisma.SortOrder
217
+ prdId?: Prisma.SortOrder
218
+ versionId?: Prisma.SortOrder
219
+ status?: Prisma.SortOrder
220
+ reviewerId?: Prisma.SortOrderInput | Prisma.SortOrder
221
+ notes?: Prisma.SortOrderInput | Prisma.SortOrder
222
+ createdAt?: Prisma.SortOrder
223
+ completedAt?: Prisma.SortOrderInput | Prisma.SortOrder
224
+ prd?: Prisma.PRDOrderByWithRelationInput
225
+ version?: Prisma.PRDVersionOrderByWithRelationInput
226
+ reviewer?: Prisma.UserOrderByWithRelationInput
227
+ comments?: Prisma.ReviewCommentOrderByRelationAggregateInput
228
+ }
229
+
230
+ export type ReviewWhereUniqueInput = Prisma.AtLeast<{
231
+ id?: string
232
+ prdId_versionId?: Prisma.ReviewPrdIdVersionIdCompoundUniqueInput
233
+ AND?: Prisma.ReviewWhereInput | Prisma.ReviewWhereInput[]
234
+ OR?: Prisma.ReviewWhereInput[]
235
+ NOT?: Prisma.ReviewWhereInput | Prisma.ReviewWhereInput[]
236
+ prdId?: Prisma.StringFilter<"Review"> | string
237
+ versionId?: Prisma.StringFilter<"Review"> | string
238
+ status?: Prisma.StringFilter<"Review"> | string
239
+ reviewerId?: Prisma.StringNullableFilter<"Review"> | string | null
240
+ notes?: Prisma.StringNullableFilter<"Review"> | string | null
241
+ createdAt?: Prisma.DateTimeFilter<"Review"> | Date | string
242
+ completedAt?: Prisma.DateTimeNullableFilter<"Review"> | Date | string | null
243
+ prd?: Prisma.XOR<Prisma.PRDScalarRelationFilter, Prisma.PRDWhereInput>
244
+ version?: Prisma.XOR<Prisma.PRDVersionScalarRelationFilter, Prisma.PRDVersionWhereInput>
245
+ reviewer?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
246
+ comments?: Prisma.ReviewCommentListRelationFilter
247
+ }, "id" | "prdId_versionId">
248
+
249
+ export type ReviewOrderByWithAggregationInput = {
250
+ id?: Prisma.SortOrder
251
+ prdId?: Prisma.SortOrder
252
+ versionId?: Prisma.SortOrder
253
+ status?: Prisma.SortOrder
254
+ reviewerId?: Prisma.SortOrderInput | Prisma.SortOrder
255
+ notes?: Prisma.SortOrderInput | Prisma.SortOrder
256
+ createdAt?: Prisma.SortOrder
257
+ completedAt?: Prisma.SortOrderInput | Prisma.SortOrder
258
+ _count?: Prisma.ReviewCountOrderByAggregateInput
259
+ _max?: Prisma.ReviewMaxOrderByAggregateInput
260
+ _min?: Prisma.ReviewMinOrderByAggregateInput
261
+ }
262
+
263
+ export type ReviewScalarWhereWithAggregatesInput = {
264
+ AND?: Prisma.ReviewScalarWhereWithAggregatesInput | Prisma.ReviewScalarWhereWithAggregatesInput[]
265
+ OR?: Prisma.ReviewScalarWhereWithAggregatesInput[]
266
+ NOT?: Prisma.ReviewScalarWhereWithAggregatesInput | Prisma.ReviewScalarWhereWithAggregatesInput[]
267
+ id?: Prisma.StringWithAggregatesFilter<"Review"> | string
268
+ prdId?: Prisma.StringWithAggregatesFilter<"Review"> | string
269
+ versionId?: Prisma.StringWithAggregatesFilter<"Review"> | string
270
+ status?: Prisma.StringWithAggregatesFilter<"Review"> | string
271
+ reviewerId?: Prisma.StringNullableWithAggregatesFilter<"Review"> | string | null
272
+ notes?: Prisma.StringNullableWithAggregatesFilter<"Review"> | string | null
273
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Review"> | Date | string
274
+ completedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Review"> | Date | string | null
275
+ }
276
+
277
+ export type ReviewCreateInput = {
278
+ id?: string
279
+ status?: string
280
+ notes?: string | null
281
+ createdAt?: Date | string
282
+ completedAt?: Date | string | null
283
+ prd: Prisma.PRDCreateNestedOneWithoutReviewsInput
284
+ version: Prisma.PRDVersionCreateNestedOneWithoutReviewsInput
285
+ reviewer?: Prisma.UserCreateNestedOneWithoutReviewsInput
286
+ comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
287
+ }
288
+
289
+ export type ReviewUncheckedCreateInput = {
290
+ id?: string
291
+ prdId: string
292
+ versionId: string
293
+ status?: string
294
+ reviewerId?: string | null
295
+ notes?: string | null
296
+ createdAt?: Date | string
297
+ completedAt?: Date | string | null
298
+ comments?: Prisma.ReviewCommentUncheckedCreateNestedManyWithoutReviewInput
299
+ }
300
+
301
+ export type ReviewUpdateInput = {
302
+ id?: Prisma.StringFieldUpdateOperationsInput | string
303
+ status?: Prisma.StringFieldUpdateOperationsInput | string
304
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
305
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
306
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
307
+ prd?: Prisma.PRDUpdateOneRequiredWithoutReviewsNestedInput
308
+ version?: Prisma.PRDVersionUpdateOneRequiredWithoutReviewsNestedInput
309
+ reviewer?: Prisma.UserUpdateOneWithoutReviewsNestedInput
310
+ comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
311
+ }
312
+
313
+ export type ReviewUncheckedUpdateInput = {
314
+ id?: Prisma.StringFieldUpdateOperationsInput | string
315
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
316
+ versionId?: Prisma.StringFieldUpdateOperationsInput | string
317
+ status?: Prisma.StringFieldUpdateOperationsInput | string
318
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
319
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
320
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
321
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
322
+ comments?: Prisma.ReviewCommentUncheckedUpdateManyWithoutReviewNestedInput
323
+ }
324
+
325
+ export type ReviewCreateManyInput = {
326
+ id?: string
327
+ prdId: string
328
+ versionId: string
329
+ status?: string
330
+ reviewerId?: string | null
331
+ notes?: string | null
332
+ createdAt?: Date | string
333
+ completedAt?: Date | string | null
334
+ }
335
+
336
+ export type ReviewUpdateManyMutationInput = {
337
+ id?: Prisma.StringFieldUpdateOperationsInput | string
338
+ status?: Prisma.StringFieldUpdateOperationsInput | string
339
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
340
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
341
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
342
+ }
343
+
344
+ export type ReviewUncheckedUpdateManyInput = {
345
+ id?: Prisma.StringFieldUpdateOperationsInput | string
346
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
347
+ versionId?: Prisma.StringFieldUpdateOperationsInput | string
348
+ status?: Prisma.StringFieldUpdateOperationsInput | string
349
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
350
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
351
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
352
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
353
+ }
354
+
355
+ export type ReviewListRelationFilter = {
356
+ every?: Prisma.ReviewWhereInput
357
+ some?: Prisma.ReviewWhereInput
358
+ none?: Prisma.ReviewWhereInput
359
+ }
360
+
361
+ export type ReviewOrderByRelationAggregateInput = {
362
+ _count?: Prisma.SortOrder
363
+ }
364
+
365
+ export type ReviewPrdIdVersionIdCompoundUniqueInput = {
366
+ prdId: string
367
+ versionId: string
368
+ }
369
+
370
+ export type ReviewCountOrderByAggregateInput = {
371
+ id?: Prisma.SortOrder
372
+ prdId?: Prisma.SortOrder
373
+ versionId?: Prisma.SortOrder
374
+ status?: Prisma.SortOrder
375
+ reviewerId?: Prisma.SortOrder
376
+ notes?: Prisma.SortOrder
377
+ createdAt?: Prisma.SortOrder
378
+ completedAt?: Prisma.SortOrder
379
+ }
380
+
381
+ export type ReviewMaxOrderByAggregateInput = {
382
+ id?: Prisma.SortOrder
383
+ prdId?: Prisma.SortOrder
384
+ versionId?: Prisma.SortOrder
385
+ status?: Prisma.SortOrder
386
+ reviewerId?: Prisma.SortOrder
387
+ notes?: Prisma.SortOrder
388
+ createdAt?: Prisma.SortOrder
389
+ completedAt?: Prisma.SortOrder
390
+ }
391
+
392
+ export type ReviewMinOrderByAggregateInput = {
393
+ id?: Prisma.SortOrder
394
+ prdId?: Prisma.SortOrder
395
+ versionId?: Prisma.SortOrder
396
+ status?: Prisma.SortOrder
397
+ reviewerId?: Prisma.SortOrder
398
+ notes?: Prisma.SortOrder
399
+ createdAt?: Prisma.SortOrder
400
+ completedAt?: Prisma.SortOrder
401
+ }
402
+
403
+ export type ReviewScalarRelationFilter = {
404
+ is?: Prisma.ReviewWhereInput
405
+ isNot?: Prisma.ReviewWhereInput
406
+ }
407
+
408
+ export type ReviewCreateNestedManyWithoutReviewerInput = {
409
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutReviewerInput, Prisma.ReviewUncheckedCreateWithoutReviewerInput> | Prisma.ReviewCreateWithoutReviewerInput[] | Prisma.ReviewUncheckedCreateWithoutReviewerInput[]
410
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutReviewerInput | Prisma.ReviewCreateOrConnectWithoutReviewerInput[]
411
+ createMany?: Prisma.ReviewCreateManyReviewerInputEnvelope
412
+ connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
413
+ }
414
+
415
+ export type ReviewUncheckedCreateNestedManyWithoutReviewerInput = {
416
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutReviewerInput, Prisma.ReviewUncheckedCreateWithoutReviewerInput> | Prisma.ReviewCreateWithoutReviewerInput[] | Prisma.ReviewUncheckedCreateWithoutReviewerInput[]
417
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutReviewerInput | Prisma.ReviewCreateOrConnectWithoutReviewerInput[]
418
+ createMany?: Prisma.ReviewCreateManyReviewerInputEnvelope
419
+ connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
420
+ }
421
+
422
+ export type ReviewUpdateManyWithoutReviewerNestedInput = {
423
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutReviewerInput, Prisma.ReviewUncheckedCreateWithoutReviewerInput> | Prisma.ReviewCreateWithoutReviewerInput[] | Prisma.ReviewUncheckedCreateWithoutReviewerInput[]
424
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutReviewerInput | Prisma.ReviewCreateOrConnectWithoutReviewerInput[]
425
+ upsert?: Prisma.ReviewUpsertWithWhereUniqueWithoutReviewerInput | Prisma.ReviewUpsertWithWhereUniqueWithoutReviewerInput[]
426
+ createMany?: Prisma.ReviewCreateManyReviewerInputEnvelope
427
+ set?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
428
+ disconnect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
429
+ delete?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
430
+ connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
431
+ update?: Prisma.ReviewUpdateWithWhereUniqueWithoutReviewerInput | Prisma.ReviewUpdateWithWhereUniqueWithoutReviewerInput[]
432
+ updateMany?: Prisma.ReviewUpdateManyWithWhereWithoutReviewerInput | Prisma.ReviewUpdateManyWithWhereWithoutReviewerInput[]
433
+ deleteMany?: Prisma.ReviewScalarWhereInput | Prisma.ReviewScalarWhereInput[]
434
+ }
435
+
436
+ export type ReviewUncheckedUpdateManyWithoutReviewerNestedInput = {
437
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutReviewerInput, Prisma.ReviewUncheckedCreateWithoutReviewerInput> | Prisma.ReviewCreateWithoutReviewerInput[] | Prisma.ReviewUncheckedCreateWithoutReviewerInput[]
438
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutReviewerInput | Prisma.ReviewCreateOrConnectWithoutReviewerInput[]
439
+ upsert?: Prisma.ReviewUpsertWithWhereUniqueWithoutReviewerInput | Prisma.ReviewUpsertWithWhereUniqueWithoutReviewerInput[]
440
+ createMany?: Prisma.ReviewCreateManyReviewerInputEnvelope
441
+ set?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
442
+ disconnect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
443
+ delete?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
444
+ connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
445
+ update?: Prisma.ReviewUpdateWithWhereUniqueWithoutReviewerInput | Prisma.ReviewUpdateWithWhereUniqueWithoutReviewerInput[]
446
+ updateMany?: Prisma.ReviewUpdateManyWithWhereWithoutReviewerInput | Prisma.ReviewUpdateManyWithWhereWithoutReviewerInput[]
447
+ deleteMany?: Prisma.ReviewScalarWhereInput | Prisma.ReviewScalarWhereInput[]
448
+ }
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
454
+ connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
455
+ }
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
461
+ connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
462
+ }
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
469
+ set?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
470
+ disconnect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
471
+ delete?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
472
+ connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
473
+ update?: Prisma.ReviewUpdateWithWhereUniqueWithoutPrdInput | Prisma.ReviewUpdateWithWhereUniqueWithoutPrdInput[]
474
+ updateMany?: Prisma.ReviewUpdateManyWithWhereWithoutPrdInput | Prisma.ReviewUpdateManyWithWhereWithoutPrdInput[]
475
+ deleteMany?: Prisma.ReviewScalarWhereInput | Prisma.ReviewScalarWhereInput[]
476
+ }
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
483
+ set?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
484
+ disconnect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
485
+ delete?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
486
+ connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
487
+ update?: Prisma.ReviewUpdateWithWhereUniqueWithoutPrdInput | Prisma.ReviewUpdateWithWhereUniqueWithoutPrdInput[]
488
+ updateMany?: Prisma.ReviewUpdateManyWithWhereWithoutPrdInput | Prisma.ReviewUpdateManyWithWhereWithoutPrdInput[]
489
+ deleteMany?: Prisma.ReviewScalarWhereInput | Prisma.ReviewScalarWhereInput[]
490
+ }
491
+
492
+ export type ReviewCreateNestedManyWithoutVersionInput = {
493
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutVersionInput, Prisma.ReviewUncheckedCreateWithoutVersionInput> | Prisma.ReviewCreateWithoutVersionInput[] | Prisma.ReviewUncheckedCreateWithoutVersionInput[]
494
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutVersionInput | Prisma.ReviewCreateOrConnectWithoutVersionInput[]
495
+ createMany?: Prisma.ReviewCreateManyVersionInputEnvelope
496
+ connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
497
+ }
498
+
499
+ export type ReviewUncheckedCreateNestedManyWithoutVersionInput = {
500
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutVersionInput, Prisma.ReviewUncheckedCreateWithoutVersionInput> | Prisma.ReviewCreateWithoutVersionInput[] | Prisma.ReviewUncheckedCreateWithoutVersionInput[]
501
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutVersionInput | Prisma.ReviewCreateOrConnectWithoutVersionInput[]
502
+ createMany?: Prisma.ReviewCreateManyVersionInputEnvelope
503
+ connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
504
+ }
505
+
506
+ export type ReviewUpdateManyWithoutVersionNestedInput = {
507
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutVersionInput, Prisma.ReviewUncheckedCreateWithoutVersionInput> | Prisma.ReviewCreateWithoutVersionInput[] | Prisma.ReviewUncheckedCreateWithoutVersionInput[]
508
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutVersionInput | Prisma.ReviewCreateOrConnectWithoutVersionInput[]
509
+ upsert?: Prisma.ReviewUpsertWithWhereUniqueWithoutVersionInput | Prisma.ReviewUpsertWithWhereUniqueWithoutVersionInput[]
510
+ createMany?: Prisma.ReviewCreateManyVersionInputEnvelope
511
+ set?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
512
+ disconnect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
513
+ delete?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
514
+ connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
515
+ update?: Prisma.ReviewUpdateWithWhereUniqueWithoutVersionInput | Prisma.ReviewUpdateWithWhereUniqueWithoutVersionInput[]
516
+ updateMany?: Prisma.ReviewUpdateManyWithWhereWithoutVersionInput | Prisma.ReviewUpdateManyWithWhereWithoutVersionInput[]
517
+ deleteMany?: Prisma.ReviewScalarWhereInput | Prisma.ReviewScalarWhereInput[]
518
+ }
519
+
520
+ export type ReviewUncheckedUpdateManyWithoutVersionNestedInput = {
521
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutVersionInput, Prisma.ReviewUncheckedCreateWithoutVersionInput> | Prisma.ReviewCreateWithoutVersionInput[] | Prisma.ReviewUncheckedCreateWithoutVersionInput[]
522
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutVersionInput | Prisma.ReviewCreateOrConnectWithoutVersionInput[]
523
+ upsert?: Prisma.ReviewUpsertWithWhereUniqueWithoutVersionInput | Prisma.ReviewUpsertWithWhereUniqueWithoutVersionInput[]
524
+ createMany?: Prisma.ReviewCreateManyVersionInputEnvelope
525
+ set?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
526
+ disconnect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
527
+ delete?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
528
+ connect?: Prisma.ReviewWhereUniqueInput | Prisma.ReviewWhereUniqueInput[]
529
+ update?: Prisma.ReviewUpdateWithWhereUniqueWithoutVersionInput | Prisma.ReviewUpdateWithWhereUniqueWithoutVersionInput[]
530
+ updateMany?: Prisma.ReviewUpdateManyWithWhereWithoutVersionInput | Prisma.ReviewUpdateManyWithWhereWithoutVersionInput[]
531
+ deleteMany?: Prisma.ReviewScalarWhereInput | Prisma.ReviewScalarWhereInput[]
532
+ }
533
+
534
+ export type ReviewCreateNestedOneWithoutCommentsInput = {
535
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutCommentsInput, Prisma.ReviewUncheckedCreateWithoutCommentsInput>
536
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutCommentsInput
537
+ connect?: Prisma.ReviewWhereUniqueInput
538
+ }
539
+
540
+ export type ReviewUpdateOneRequiredWithoutCommentsNestedInput = {
541
+ create?: Prisma.XOR<Prisma.ReviewCreateWithoutCommentsInput, Prisma.ReviewUncheckedCreateWithoutCommentsInput>
542
+ connectOrCreate?: Prisma.ReviewCreateOrConnectWithoutCommentsInput
543
+ upsert?: Prisma.ReviewUpsertWithoutCommentsInput
544
+ connect?: Prisma.ReviewWhereUniqueInput
545
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ReviewUpdateToOneWithWhereWithoutCommentsInput, Prisma.ReviewUpdateWithoutCommentsInput>, Prisma.ReviewUncheckedUpdateWithoutCommentsInput>
546
+ }
547
+
548
+ export type ReviewCreateWithoutReviewerInput = {
549
+ id?: string
550
+ status?: string
551
+ notes?: string | null
552
+ createdAt?: Date | string
553
+ completedAt?: Date | string | null
554
+ prd: Prisma.PRDCreateNestedOneWithoutReviewsInput
555
+ version: Prisma.PRDVersionCreateNestedOneWithoutReviewsInput
556
+ comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
557
+ }
558
+
559
+ export type ReviewUncheckedCreateWithoutReviewerInput = {
560
+ id?: string
561
+ prdId: string
562
+ versionId: string
563
+ status?: string
564
+ notes?: string | null
565
+ createdAt?: Date | string
566
+ completedAt?: Date | string | null
567
+ comments?: Prisma.ReviewCommentUncheckedCreateNestedManyWithoutReviewInput
568
+ }
569
+
570
+ export type ReviewCreateOrConnectWithoutReviewerInput = {
571
+ where: Prisma.ReviewWhereUniqueInput
572
+ create: Prisma.XOR<Prisma.ReviewCreateWithoutReviewerInput, Prisma.ReviewUncheckedCreateWithoutReviewerInput>
573
+ }
574
+
575
+ export type ReviewCreateManyReviewerInputEnvelope = {
576
+ data: Prisma.ReviewCreateManyReviewerInput | Prisma.ReviewCreateManyReviewerInput[]
577
+ }
578
+
579
+ export type ReviewUpsertWithWhereUniqueWithoutReviewerInput = {
580
+ where: Prisma.ReviewWhereUniqueInput
581
+ update: Prisma.XOR<Prisma.ReviewUpdateWithoutReviewerInput, Prisma.ReviewUncheckedUpdateWithoutReviewerInput>
582
+ create: Prisma.XOR<Prisma.ReviewCreateWithoutReviewerInput, Prisma.ReviewUncheckedCreateWithoutReviewerInput>
583
+ }
584
+
585
+ export type ReviewUpdateWithWhereUniqueWithoutReviewerInput = {
586
+ where: Prisma.ReviewWhereUniqueInput
587
+ data: Prisma.XOR<Prisma.ReviewUpdateWithoutReviewerInput, Prisma.ReviewUncheckedUpdateWithoutReviewerInput>
588
+ }
589
+
590
+ export type ReviewUpdateManyWithWhereWithoutReviewerInput = {
591
+ where: Prisma.ReviewScalarWhereInput
592
+ data: Prisma.XOR<Prisma.ReviewUpdateManyMutationInput, Prisma.ReviewUncheckedUpdateManyWithoutReviewerInput>
593
+ }
594
+
595
+ export type ReviewScalarWhereInput = {
596
+ AND?: Prisma.ReviewScalarWhereInput | Prisma.ReviewScalarWhereInput[]
597
+ OR?: Prisma.ReviewScalarWhereInput[]
598
+ NOT?: Prisma.ReviewScalarWhereInput | Prisma.ReviewScalarWhereInput[]
599
+ id?: Prisma.StringFilter<"Review"> | string
600
+ prdId?: Prisma.StringFilter<"Review"> | string
601
+ versionId?: Prisma.StringFilter<"Review"> | string
602
+ status?: Prisma.StringFilter<"Review"> | string
603
+ reviewerId?: Prisma.StringNullableFilter<"Review"> | string | null
604
+ notes?: Prisma.StringNullableFilter<"Review"> | string | null
605
+ createdAt?: Prisma.DateTimeFilter<"Review"> | Date | string
606
+ completedAt?: Prisma.DateTimeNullableFilter<"Review"> | Date | string | null
607
+ }
608
+
609
+ export type ReviewCreateWithoutPrdInput = {
610
+ id?: string
611
+ status?: string
612
+ notes?: string | null
613
+ createdAt?: Date | string
614
+ completedAt?: Date | string | null
615
+ version: Prisma.PRDVersionCreateNestedOneWithoutReviewsInput
616
+ reviewer?: Prisma.UserCreateNestedOneWithoutReviewsInput
617
+ comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
618
+ }
619
+
620
+ export type ReviewUncheckedCreateWithoutPrdInput = {
621
+ id?: string
622
+ versionId: string
623
+ status?: string
624
+ reviewerId?: string | null
625
+ notes?: string | null
626
+ createdAt?: Date | string
627
+ completedAt?: Date | string | null
628
+ comments?: Prisma.ReviewCommentUncheckedCreateNestedManyWithoutReviewInput
629
+ }
630
+
631
+ export type ReviewCreateOrConnectWithoutPrdInput = {
632
+ where: Prisma.ReviewWhereUniqueInput
633
+ create: Prisma.XOR<Prisma.ReviewCreateWithoutPrdInput, Prisma.ReviewUncheckedCreateWithoutPrdInput>
634
+ }
635
+
636
+ export type ReviewCreateManyPrdInputEnvelope = {
637
+ data: Prisma.ReviewCreateManyPrdInput | Prisma.ReviewCreateManyPrdInput[]
638
+ }
639
+
640
+ export type ReviewUpsertWithWhereUniqueWithoutPrdInput = {
641
+ where: Prisma.ReviewWhereUniqueInput
642
+ update: Prisma.XOR<Prisma.ReviewUpdateWithoutPrdInput, Prisma.ReviewUncheckedUpdateWithoutPrdInput>
643
+ create: Prisma.XOR<Prisma.ReviewCreateWithoutPrdInput, Prisma.ReviewUncheckedCreateWithoutPrdInput>
644
+ }
645
+
646
+ export type ReviewUpdateWithWhereUniqueWithoutPrdInput = {
647
+ where: Prisma.ReviewWhereUniqueInput
648
+ data: Prisma.XOR<Prisma.ReviewUpdateWithoutPrdInput, Prisma.ReviewUncheckedUpdateWithoutPrdInput>
649
+ }
650
+
651
+ export type ReviewUpdateManyWithWhereWithoutPrdInput = {
652
+ where: Prisma.ReviewScalarWhereInput
653
+ data: Prisma.XOR<Prisma.ReviewUpdateManyMutationInput, Prisma.ReviewUncheckedUpdateManyWithoutPrdInput>
654
+ }
655
+
656
+ export type ReviewCreateWithoutVersionInput = {
657
+ id?: string
658
+ status?: string
659
+ notes?: string | null
660
+ createdAt?: Date | string
661
+ completedAt?: Date | string | null
662
+ prd: Prisma.PRDCreateNestedOneWithoutReviewsInput
663
+ reviewer?: Prisma.UserCreateNestedOneWithoutReviewsInput
664
+ comments?: Prisma.ReviewCommentCreateNestedManyWithoutReviewInput
665
+ }
666
+
667
+ export type ReviewUncheckedCreateWithoutVersionInput = {
668
+ id?: string
669
+ prdId: string
670
+ status?: string
671
+ reviewerId?: string | null
672
+ notes?: string | null
673
+ createdAt?: Date | string
674
+ completedAt?: Date | string | null
675
+ comments?: Prisma.ReviewCommentUncheckedCreateNestedManyWithoutReviewInput
676
+ }
677
+
678
+ export type ReviewCreateOrConnectWithoutVersionInput = {
679
+ where: Prisma.ReviewWhereUniqueInput
680
+ create: Prisma.XOR<Prisma.ReviewCreateWithoutVersionInput, Prisma.ReviewUncheckedCreateWithoutVersionInput>
681
+ }
682
+
683
+ export type ReviewCreateManyVersionInputEnvelope = {
684
+ data: Prisma.ReviewCreateManyVersionInput | Prisma.ReviewCreateManyVersionInput[]
685
+ }
686
+
687
+ export type ReviewUpsertWithWhereUniqueWithoutVersionInput = {
688
+ where: Prisma.ReviewWhereUniqueInput
689
+ update: Prisma.XOR<Prisma.ReviewUpdateWithoutVersionInput, Prisma.ReviewUncheckedUpdateWithoutVersionInput>
690
+ create: Prisma.XOR<Prisma.ReviewCreateWithoutVersionInput, Prisma.ReviewUncheckedCreateWithoutVersionInput>
691
+ }
692
+
693
+ export type ReviewUpdateWithWhereUniqueWithoutVersionInput = {
694
+ where: Prisma.ReviewWhereUniqueInput
695
+ data: Prisma.XOR<Prisma.ReviewUpdateWithoutVersionInput, Prisma.ReviewUncheckedUpdateWithoutVersionInput>
696
+ }
697
+
698
+ export type ReviewUpdateManyWithWhereWithoutVersionInput = {
699
+ where: Prisma.ReviewScalarWhereInput
700
+ data: Prisma.XOR<Prisma.ReviewUpdateManyMutationInput, Prisma.ReviewUncheckedUpdateManyWithoutVersionInput>
701
+ }
702
+
703
+ export type ReviewCreateWithoutCommentsInput = {
704
+ id?: string
705
+ status?: string
706
+ notes?: string | null
707
+ createdAt?: Date | string
708
+ completedAt?: Date | string | null
709
+ prd: Prisma.PRDCreateNestedOneWithoutReviewsInput
710
+ version: Prisma.PRDVersionCreateNestedOneWithoutReviewsInput
711
+ reviewer?: Prisma.UserCreateNestedOneWithoutReviewsInput
712
+ }
713
+
714
+ export type ReviewUncheckedCreateWithoutCommentsInput = {
715
+ id?: string
716
+ prdId: string
717
+ versionId: string
718
+ status?: string
719
+ reviewerId?: string | null
720
+ notes?: string | null
721
+ createdAt?: Date | string
722
+ completedAt?: Date | string | null
723
+ }
724
+
725
+ export type ReviewCreateOrConnectWithoutCommentsInput = {
726
+ where: Prisma.ReviewWhereUniqueInput
727
+ create: Prisma.XOR<Prisma.ReviewCreateWithoutCommentsInput, Prisma.ReviewUncheckedCreateWithoutCommentsInput>
728
+ }
729
+
730
+ export type ReviewUpsertWithoutCommentsInput = {
731
+ update: Prisma.XOR<Prisma.ReviewUpdateWithoutCommentsInput, Prisma.ReviewUncheckedUpdateWithoutCommentsInput>
732
+ create: Prisma.XOR<Prisma.ReviewCreateWithoutCommentsInput, Prisma.ReviewUncheckedCreateWithoutCommentsInput>
733
+ where?: Prisma.ReviewWhereInput
734
+ }
735
+
736
+ export type ReviewUpdateToOneWithWhereWithoutCommentsInput = {
737
+ where?: Prisma.ReviewWhereInput
738
+ data: Prisma.XOR<Prisma.ReviewUpdateWithoutCommentsInput, Prisma.ReviewUncheckedUpdateWithoutCommentsInput>
739
+ }
740
+
741
+ export type ReviewUpdateWithoutCommentsInput = {
742
+ id?: Prisma.StringFieldUpdateOperationsInput | string
743
+ status?: Prisma.StringFieldUpdateOperationsInput | string
744
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
745
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
746
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
747
+ prd?: Prisma.PRDUpdateOneRequiredWithoutReviewsNestedInput
748
+ version?: Prisma.PRDVersionUpdateOneRequiredWithoutReviewsNestedInput
749
+ reviewer?: Prisma.UserUpdateOneWithoutReviewsNestedInput
750
+ }
751
+
752
+ export type ReviewUncheckedUpdateWithoutCommentsInput = {
753
+ id?: Prisma.StringFieldUpdateOperationsInput | string
754
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
755
+ versionId?: Prisma.StringFieldUpdateOperationsInput | string
756
+ status?: Prisma.StringFieldUpdateOperationsInput | string
757
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
758
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
759
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
760
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
761
+ }
762
+
763
+ export type ReviewCreateManyReviewerInput = {
764
+ id?: string
765
+ prdId: string
766
+ versionId: string
767
+ status?: string
768
+ notes?: string | null
769
+ createdAt?: Date | string
770
+ completedAt?: Date | string | null
771
+ }
772
+
773
+ export type ReviewUpdateWithoutReviewerInput = {
774
+ id?: Prisma.StringFieldUpdateOperationsInput | string
775
+ status?: Prisma.StringFieldUpdateOperationsInput | string
776
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
777
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
778
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
779
+ prd?: Prisma.PRDUpdateOneRequiredWithoutReviewsNestedInput
780
+ version?: Prisma.PRDVersionUpdateOneRequiredWithoutReviewsNestedInput
781
+ comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
782
+ }
783
+
784
+ export type ReviewUncheckedUpdateWithoutReviewerInput = {
785
+ id?: Prisma.StringFieldUpdateOperationsInput | string
786
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
787
+ versionId?: Prisma.StringFieldUpdateOperationsInput | string
788
+ status?: Prisma.StringFieldUpdateOperationsInput | string
789
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
790
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
791
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
792
+ comments?: Prisma.ReviewCommentUncheckedUpdateManyWithoutReviewNestedInput
793
+ }
794
+
795
+ export type ReviewUncheckedUpdateManyWithoutReviewerInput = {
796
+ id?: Prisma.StringFieldUpdateOperationsInput | string
797
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
798
+ versionId?: Prisma.StringFieldUpdateOperationsInput | string
799
+ status?: Prisma.StringFieldUpdateOperationsInput | string
800
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
801
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
802
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
803
+ }
804
+
805
+ export type ReviewCreateManyPrdInput = {
806
+ id?: string
807
+ versionId: string
808
+ status?: string
809
+ reviewerId?: string | null
810
+ notes?: string | null
811
+ createdAt?: Date | string
812
+ completedAt?: Date | string | null
813
+ }
814
+
815
+ export type ReviewUpdateWithoutPrdInput = {
816
+ id?: Prisma.StringFieldUpdateOperationsInput | string
817
+ status?: Prisma.StringFieldUpdateOperationsInput | string
818
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
819
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
820
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
821
+ version?: Prisma.PRDVersionUpdateOneRequiredWithoutReviewsNestedInput
822
+ reviewer?: Prisma.UserUpdateOneWithoutReviewsNestedInput
823
+ comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
824
+ }
825
+
826
+ export type ReviewUncheckedUpdateWithoutPrdInput = {
827
+ id?: Prisma.StringFieldUpdateOperationsInput | string
828
+ versionId?: Prisma.StringFieldUpdateOperationsInput | string
829
+ status?: Prisma.StringFieldUpdateOperationsInput | string
830
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
831
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
832
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
833
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
834
+ comments?: Prisma.ReviewCommentUncheckedUpdateManyWithoutReviewNestedInput
835
+ }
836
+
837
+ export type ReviewUncheckedUpdateManyWithoutPrdInput = {
838
+ id?: Prisma.StringFieldUpdateOperationsInput | string
839
+ versionId?: Prisma.StringFieldUpdateOperationsInput | string
840
+ status?: Prisma.StringFieldUpdateOperationsInput | string
841
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
842
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
843
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
844
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
845
+ }
846
+
847
+ export type ReviewCreateManyVersionInput = {
848
+ id?: string
849
+ prdId: string
850
+ status?: string
851
+ reviewerId?: string | null
852
+ notes?: string | null
853
+ createdAt?: Date | string
854
+ completedAt?: Date | string | null
855
+ }
856
+
857
+ export type ReviewUpdateWithoutVersionInput = {
858
+ id?: Prisma.StringFieldUpdateOperationsInput | string
859
+ status?: Prisma.StringFieldUpdateOperationsInput | string
860
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
861
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
862
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
863
+ prd?: Prisma.PRDUpdateOneRequiredWithoutReviewsNestedInput
864
+ reviewer?: Prisma.UserUpdateOneWithoutReviewsNestedInput
865
+ comments?: Prisma.ReviewCommentUpdateManyWithoutReviewNestedInput
866
+ }
867
+
868
+ export type ReviewUncheckedUpdateWithoutVersionInput = {
869
+ id?: Prisma.StringFieldUpdateOperationsInput | string
870
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
871
+ status?: Prisma.StringFieldUpdateOperationsInput | string
872
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
873
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
874
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
875
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
876
+ comments?: Prisma.ReviewCommentUncheckedUpdateManyWithoutReviewNestedInput
877
+ }
878
+
879
+ export type ReviewUncheckedUpdateManyWithoutVersionInput = {
880
+ id?: Prisma.StringFieldUpdateOperationsInput | string
881
+ prdId?: Prisma.StringFieldUpdateOperationsInput | string
882
+ status?: Prisma.StringFieldUpdateOperationsInput | string
883
+ reviewerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
884
+ notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
885
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
886
+ completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
887
+ }
888
+
889
+
890
+ /**
891
+ * Count Type ReviewCountOutputType
892
+ */
893
+
894
+ export type ReviewCountOutputType = {
895
+ comments: number
896
+ }
897
+
898
+ export type ReviewCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
899
+ comments?: boolean | ReviewCountOutputTypeCountCommentsArgs
900
+ }
901
+
902
+ /**
903
+ * ReviewCountOutputType without action
904
+ */
905
+ export type ReviewCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
906
+ /**
907
+ * Select specific fields to fetch from the ReviewCountOutputType
908
+ */
909
+ select?: Prisma.ReviewCountOutputTypeSelect<ExtArgs> | null
910
+ }
911
+
912
+ /**
913
+ * ReviewCountOutputType without action
914
+ */
915
+ export type ReviewCountOutputTypeCountCommentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
916
+ where?: Prisma.ReviewCommentWhereInput
917
+ }
918
+
919
+
920
+ export type ReviewSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
921
+ id?: boolean
922
+ prdId?: boolean
923
+ versionId?: boolean
924
+ status?: boolean
925
+ reviewerId?: boolean
926
+ notes?: boolean
927
+ createdAt?: boolean
928
+ completedAt?: boolean
929
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
930
+ version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
931
+ reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
932
+ comments?: boolean | Prisma.Review$commentsArgs<ExtArgs>
933
+ _count?: boolean | Prisma.ReviewCountOutputTypeDefaultArgs<ExtArgs>
934
+ }, ExtArgs["result"]["review"]>
935
+
936
+ export type ReviewSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
937
+ id?: boolean
938
+ prdId?: boolean
939
+ versionId?: boolean
940
+ status?: boolean
941
+ reviewerId?: boolean
942
+ notes?: boolean
943
+ createdAt?: boolean
944
+ completedAt?: boolean
945
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
946
+ version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
947
+ reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
948
+ }, ExtArgs["result"]["review"]>
949
+
950
+ export type ReviewSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
951
+ id?: boolean
952
+ prdId?: boolean
953
+ versionId?: boolean
954
+ status?: boolean
955
+ reviewerId?: boolean
956
+ notes?: boolean
957
+ createdAt?: boolean
958
+ completedAt?: boolean
959
+ prd?: boolean | Prisma.PRDDefaultArgs<ExtArgs>
960
+ version?: boolean | Prisma.PRDVersionDefaultArgs<ExtArgs>
961
+ reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
962
+ }, ExtArgs["result"]["review"]>
963
+
964
+ export type ReviewSelectScalar = {
965
+ id?: boolean
966
+ prdId?: boolean
967
+ versionId?: boolean
968
+ status?: boolean
969
+ reviewerId?: boolean
970
+ notes?: boolean
971
+ createdAt?: boolean
972
+ completedAt?: boolean
973
+ }
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"]>
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>
979
+ reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
980
+ comments?: boolean | Prisma.Review$commentsArgs<ExtArgs>
981
+ _count?: boolean | Prisma.ReviewCountOutputTypeDefaultArgs<ExtArgs>
982
+ }
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>
986
+ reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
987
+ }
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>
991
+ reviewer?: boolean | Prisma.Review$reviewerArgs<ExtArgs>
992
+ }
993
+
994
+ export type $ReviewPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
995
+ name: "Review"
996
+ objects: {
997
+ prd: Prisma.$PRDPayload<ExtArgs>
998
+ version: Prisma.$PRDVersionPayload<ExtArgs>
999
+ reviewer: Prisma.$UserPayload<ExtArgs> | null
1000
+ comments: Prisma.$ReviewCommentPayload<ExtArgs>[]
1001
+ }
1002
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1003
+ id: string
1004
+ prdId: string
1005
+ versionId: string
1006
+ status: string
1007
+ reviewerId: string | null
1008
+ notes: string | null
1009
+ createdAt: Date
1010
+ completedAt: Date | null
1011
+ }, ExtArgs["result"]["review"]>
1012
+ composites: {}
1013
+ }
1014
+
1015
+ export type ReviewGetPayload<S extends boolean | null | undefined | ReviewDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ReviewPayload, S>
1016
+
1017
+ export type ReviewCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1018
+ Omit<ReviewFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1019
+ select?: ReviewCountAggregateInputType | true
1020
+ }
1021
+
1022
+ export interface ReviewDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1023
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Review'], meta: { name: 'Review' } }
1024
+ /**
1025
+ * Find zero or one Review that matches the filter.
1026
+ * @param {ReviewFindUniqueArgs} args - Arguments to find a Review
1027
+ * @example
1028
+ * // Get one Review
1029
+ * const review = await prisma.review.findUnique({
1030
+ * where: {
1031
+ * // ... provide filter here
1032
+ * }
1033
+ * })
1034
+ */
1035
+ findUnique<T extends ReviewFindUniqueArgs>(args: Prisma.SelectSubset<T, ReviewFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ReviewClient<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1036
+
1037
+ /**
1038
+ * Find one Review that matches the filter or throw an error with `error.code='P2025'`
1039
+ * if no matches were found.
1040
+ * @param {ReviewFindUniqueOrThrowArgs} args - Arguments to find a Review
1041
+ * @example
1042
+ * // Get one Review
1043
+ * const review = await prisma.review.findUniqueOrThrow({
1044
+ * where: {
1045
+ * // ... provide filter here
1046
+ * }
1047
+ * })
1048
+ */
1049
+ findUniqueOrThrow<T extends ReviewFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ReviewFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ReviewClient<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1050
+
1051
+ /**
1052
+ * Find the first Review that matches the filter.
1053
+ * Note, that providing `undefined` is treated as the value not being there.
1054
+ * Read more here: https://pris.ly/d/null-undefined
1055
+ * @param {ReviewFindFirstArgs} args - Arguments to find a Review
1056
+ * @example
1057
+ * // Get one Review
1058
+ * const review = await prisma.review.findFirst({
1059
+ * where: {
1060
+ * // ... provide filter here
1061
+ * }
1062
+ * })
1063
+ */
1064
+ findFirst<T extends ReviewFindFirstArgs>(args?: Prisma.SelectSubset<T, ReviewFindFirstArgs<ExtArgs>>): Prisma.Prisma__ReviewClient<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1065
+
1066
+ /**
1067
+ * Find the first Review that matches the filter or
1068
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1069
+ * Note, that providing `undefined` is treated as the value not being there.
1070
+ * Read more here: https://pris.ly/d/null-undefined
1071
+ * @param {ReviewFindFirstOrThrowArgs} args - Arguments to find a Review
1072
+ * @example
1073
+ * // Get one Review
1074
+ * const review = await prisma.review.findFirstOrThrow({
1075
+ * where: {
1076
+ * // ... provide filter here
1077
+ * }
1078
+ * })
1079
+ */
1080
+ findFirstOrThrow<T extends ReviewFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ReviewFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ReviewClient<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1081
+
1082
+ /**
1083
+ * Find zero or more Reviews that matches the filter.
1084
+ * Note, that providing `undefined` is treated as the value not being there.
1085
+ * Read more here: https://pris.ly/d/null-undefined
1086
+ * @param {ReviewFindManyArgs} args - Arguments to filter and select certain fields only.
1087
+ * @example
1088
+ * // Get all Reviews
1089
+ * const reviews = await prisma.review.findMany()
1090
+ *
1091
+ * // Get first 10 Reviews
1092
+ * const reviews = await prisma.review.findMany({ take: 10 })
1093
+ *
1094
+ * // Only select the `id`
1095
+ * const reviewWithIdOnly = await prisma.review.findMany({ select: { id: true } })
1096
+ *
1097
+ */
1098
+ findMany<T extends ReviewFindManyArgs>(args?: Prisma.SelectSubset<T, ReviewFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1099
+
1100
+ /**
1101
+ * Create a Review.
1102
+ * @param {ReviewCreateArgs} args - Arguments to create a Review.
1103
+ * @example
1104
+ * // Create one Review
1105
+ * const Review = await prisma.review.create({
1106
+ * data: {
1107
+ * // ... data to create a Review
1108
+ * }
1109
+ * })
1110
+ *
1111
+ */
1112
+ create<T extends ReviewCreateArgs>(args: Prisma.SelectSubset<T, ReviewCreateArgs<ExtArgs>>): Prisma.Prisma__ReviewClient<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1113
+
1114
+ /**
1115
+ * Create many Reviews.
1116
+ * @param {ReviewCreateManyArgs} args - Arguments to create many Reviews.
1117
+ * @example
1118
+ * // Create many Reviews
1119
+ * const review = await prisma.review.createMany({
1120
+ * data: [
1121
+ * // ... provide data here
1122
+ * ]
1123
+ * })
1124
+ *
1125
+ */
1126
+ createMany<T extends ReviewCreateManyArgs>(args?: Prisma.SelectSubset<T, ReviewCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1127
+
1128
+ /**
1129
+ * Create many Reviews and returns the data saved in the database.
1130
+ * @param {ReviewCreateManyAndReturnArgs} args - Arguments to create many Reviews.
1131
+ * @example
1132
+ * // Create many Reviews
1133
+ * const review = await prisma.review.createManyAndReturn({
1134
+ * data: [
1135
+ * // ... provide data here
1136
+ * ]
1137
+ * })
1138
+ *
1139
+ * // Create many Reviews and only return the `id`
1140
+ * const reviewWithIdOnly = await prisma.review.createManyAndReturn({
1141
+ * select: { id: true },
1142
+ * data: [
1143
+ * // ... provide data here
1144
+ * ]
1145
+ * })
1146
+ * Note, that providing `undefined` is treated as the value not being there.
1147
+ * Read more here: https://pris.ly/d/null-undefined
1148
+ *
1149
+ */
1150
+ createManyAndReturn<T extends ReviewCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ReviewCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1151
+
1152
+ /**
1153
+ * Delete a Review.
1154
+ * @param {ReviewDeleteArgs} args - Arguments to delete one Review.
1155
+ * @example
1156
+ * // Delete one Review
1157
+ * const Review = await prisma.review.delete({
1158
+ * where: {
1159
+ * // ... filter to delete one Review
1160
+ * }
1161
+ * })
1162
+ *
1163
+ */
1164
+ delete<T extends ReviewDeleteArgs>(args: Prisma.SelectSubset<T, ReviewDeleteArgs<ExtArgs>>): Prisma.Prisma__ReviewClient<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1165
+
1166
+ /**
1167
+ * Update one Review.
1168
+ * @param {ReviewUpdateArgs} args - Arguments to update one Review.
1169
+ * @example
1170
+ * // Update one Review
1171
+ * const review = await prisma.review.update({
1172
+ * where: {
1173
+ * // ... provide filter here
1174
+ * },
1175
+ * data: {
1176
+ * // ... provide data here
1177
+ * }
1178
+ * })
1179
+ *
1180
+ */
1181
+ update<T extends ReviewUpdateArgs>(args: Prisma.SelectSubset<T, ReviewUpdateArgs<ExtArgs>>): Prisma.Prisma__ReviewClient<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1182
+
1183
+ /**
1184
+ * Delete zero or more Reviews.
1185
+ * @param {ReviewDeleteManyArgs} args - Arguments to filter Reviews to delete.
1186
+ * @example
1187
+ * // Delete a few Reviews
1188
+ * const { count } = await prisma.review.deleteMany({
1189
+ * where: {
1190
+ * // ... provide filter here
1191
+ * }
1192
+ * })
1193
+ *
1194
+ */
1195
+ deleteMany<T extends ReviewDeleteManyArgs>(args?: Prisma.SelectSubset<T, ReviewDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1196
+
1197
+ /**
1198
+ * Update zero or more Reviews.
1199
+ * Note, that providing `undefined` is treated as the value not being there.
1200
+ * Read more here: https://pris.ly/d/null-undefined
1201
+ * @param {ReviewUpdateManyArgs} args - Arguments to update one or more rows.
1202
+ * @example
1203
+ * // Update many Reviews
1204
+ * const review = await prisma.review.updateMany({
1205
+ * where: {
1206
+ * // ... provide filter here
1207
+ * },
1208
+ * data: {
1209
+ * // ... provide data here
1210
+ * }
1211
+ * })
1212
+ *
1213
+ */
1214
+ updateMany<T extends ReviewUpdateManyArgs>(args: Prisma.SelectSubset<T, ReviewUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1215
+
1216
+ /**
1217
+ * Update zero or more Reviews and returns the data updated in the database.
1218
+ * @param {ReviewUpdateManyAndReturnArgs} args - Arguments to update many Reviews.
1219
+ * @example
1220
+ * // Update many Reviews
1221
+ * const review = await prisma.review.updateManyAndReturn({
1222
+ * where: {
1223
+ * // ... provide filter here
1224
+ * },
1225
+ * data: [
1226
+ * // ... provide data here
1227
+ * ]
1228
+ * })
1229
+ *
1230
+ * // Update zero or more Reviews and only return the `id`
1231
+ * const reviewWithIdOnly = await prisma.review.updateManyAndReturn({
1232
+ * select: { id: true },
1233
+ * where: {
1234
+ * // ... provide filter here
1235
+ * },
1236
+ * data: [
1237
+ * // ... provide data here
1238
+ * ]
1239
+ * })
1240
+ * Note, that providing `undefined` is treated as the value not being there.
1241
+ * Read more here: https://pris.ly/d/null-undefined
1242
+ *
1243
+ */
1244
+ updateManyAndReturn<T extends ReviewUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ReviewUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1245
+
1246
+ /**
1247
+ * Create or update one Review.
1248
+ * @param {ReviewUpsertArgs} args - Arguments to update or create a Review.
1249
+ * @example
1250
+ * // Update or create a Review
1251
+ * const review = await prisma.review.upsert({
1252
+ * create: {
1253
+ * // ... data to create a Review
1254
+ * },
1255
+ * update: {
1256
+ * // ... in case it already exists, update
1257
+ * },
1258
+ * where: {
1259
+ * // ... the filter for the Review we want to update
1260
+ * }
1261
+ * })
1262
+ */
1263
+ upsert<T extends ReviewUpsertArgs>(args: Prisma.SelectSubset<T, ReviewUpsertArgs<ExtArgs>>): Prisma.Prisma__ReviewClient<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1264
+
1265
+
1266
+ /**
1267
+ * Count the number of Reviews.
1268
+ * Note, that providing `undefined` is treated as the value not being there.
1269
+ * Read more here: https://pris.ly/d/null-undefined
1270
+ * @param {ReviewCountArgs} args - Arguments to filter Reviews to count.
1271
+ * @example
1272
+ * // Count the number of Reviews
1273
+ * const count = await prisma.review.count({
1274
+ * where: {
1275
+ * // ... the filter for the Reviews we want to count
1276
+ * }
1277
+ * })
1278
+ **/
1279
+ count<T extends ReviewCountArgs>(
1280
+ args?: Prisma.Subset<T, ReviewCountArgs>,
1281
+ ): Prisma.PrismaPromise<
1282
+ T extends runtime.Types.Utils.Record<'select', any>
1283
+ ? T['select'] extends true
1284
+ ? number
1285
+ : Prisma.GetScalarType<T['select'], ReviewCountAggregateOutputType>
1286
+ : number
1287
+ >
1288
+
1289
+ /**
1290
+ * Allows you to perform aggregations operations on a Review.
1291
+ * Note, that providing `undefined` is treated as the value not being there.
1292
+ * Read more here: https://pris.ly/d/null-undefined
1293
+ * @param {ReviewAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1294
+ * @example
1295
+ * // Ordered by age ascending
1296
+ * // Where email contains prisma.io
1297
+ * // Limited to the 10 users
1298
+ * const aggregations = await prisma.user.aggregate({
1299
+ * _avg: {
1300
+ * age: true,
1301
+ * },
1302
+ * where: {
1303
+ * email: {
1304
+ * contains: "prisma.io",
1305
+ * },
1306
+ * },
1307
+ * orderBy: {
1308
+ * age: "asc",
1309
+ * },
1310
+ * take: 10,
1311
+ * })
1312
+ **/
1313
+ aggregate<T extends ReviewAggregateArgs>(args: Prisma.Subset<T, ReviewAggregateArgs>): Prisma.PrismaPromise<GetReviewAggregateType<T>>
1314
+
1315
+ /**
1316
+ * Group by Review.
1317
+ * Note, that providing `undefined` is treated as the value not being there.
1318
+ * Read more here: https://pris.ly/d/null-undefined
1319
+ * @param {ReviewGroupByArgs} args - Group by arguments.
1320
+ * @example
1321
+ * // Group by city, order by createdAt, get count
1322
+ * const result = await prisma.user.groupBy({
1323
+ * by: ['city', 'createdAt'],
1324
+ * orderBy: {
1325
+ * createdAt: true
1326
+ * },
1327
+ * _count: {
1328
+ * _all: true
1329
+ * },
1330
+ * })
1331
+ *
1332
+ **/
1333
+ groupBy<
1334
+ T extends ReviewGroupByArgs,
1335
+ HasSelectOrTake extends Prisma.Or<
1336
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1337
+ Prisma.Extends<'take', Prisma.Keys<T>>
1338
+ >,
1339
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1340
+ ? { orderBy: ReviewGroupByArgs['orderBy'] }
1341
+ : { orderBy?: ReviewGroupByArgs['orderBy'] },
1342
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1343
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1344
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1345
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1346
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1347
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1348
+ InputErrors extends ByEmpty extends Prisma.True
1349
+ ? `Error: "by" must not be empty.`
1350
+ : HavingValid extends Prisma.False
1351
+ ? {
1352
+ [P in HavingFields]: P extends ByFields
1353
+ ? never
1354
+ : P extends string
1355
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1356
+ : [
1357
+ Error,
1358
+ 'Field ',
1359
+ P,
1360
+ ` in "having" needs to be provided in "by"`,
1361
+ ]
1362
+ }[HavingFields]
1363
+ : 'take' extends Prisma.Keys<T>
1364
+ ? 'orderBy' extends Prisma.Keys<T>
1365
+ ? ByValid extends Prisma.True
1366
+ ? {}
1367
+ : {
1368
+ [P in OrderFields]: P extends ByFields
1369
+ ? never
1370
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1371
+ }[OrderFields]
1372
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1373
+ : 'skip' extends Prisma.Keys<T>
1374
+ ? 'orderBy' extends Prisma.Keys<T>
1375
+ ? ByValid extends Prisma.True
1376
+ ? {}
1377
+ : {
1378
+ [P in OrderFields]: P extends ByFields
1379
+ ? never
1380
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1381
+ }[OrderFields]
1382
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1383
+ : ByValid extends Prisma.True
1384
+ ? {}
1385
+ : {
1386
+ [P in OrderFields]: P extends ByFields
1387
+ ? never
1388
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1389
+ }[OrderFields]
1390
+ >(args: Prisma.SubsetIntersection<T, ReviewGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetReviewGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1391
+ /**
1392
+ * Fields of the Review model
1393
+ */
1394
+ readonly fields: ReviewFieldRefs;
1395
+ }
1396
+
1397
+ /**
1398
+ * The delegate class that acts as a "Promise-like" for Review.
1399
+ * Why is this prefixed with `Prisma__`?
1400
+ * Because we want to prevent naming conflicts as mentioned in
1401
+ * https://github.com/prisma/prisma-client-js/issues/707
1402
+ */
1403
+ export interface Prisma__ReviewClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
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>
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
+ 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
+ /**
1410
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1411
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1412
+ * @param onrejected The callback to execute when the Promise is rejected.
1413
+ * @returns A Promise for the completion of which ever callback is executed.
1414
+ */
1415
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
1416
+ /**
1417
+ * Attaches a callback for only the rejection of the Promise.
1418
+ * @param onrejected The callback to execute when the Promise is rejected.
1419
+ * @returns A Promise for the completion of the callback.
1420
+ */
1421
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1422
+ /**
1423
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1424
+ * resolved value cannot be modified from the callback.
1425
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1426
+ * @returns A Promise for the completion of the callback.
1427
+ */
1428
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1429
+ }
1430
+
1431
+
1432
+
1433
+
1434
+ /**
1435
+ * Fields of the Review model
1436
+ */
1437
+ export interface ReviewFieldRefs {
1438
+ readonly id: Prisma.FieldRef<"Review", 'String'>
1439
+ readonly prdId: Prisma.FieldRef<"Review", 'String'>
1440
+ readonly versionId: Prisma.FieldRef<"Review", 'String'>
1441
+ readonly status: Prisma.FieldRef<"Review", 'String'>
1442
+ readonly reviewerId: Prisma.FieldRef<"Review", 'String'>
1443
+ readonly notes: Prisma.FieldRef<"Review", 'String'>
1444
+ readonly createdAt: Prisma.FieldRef<"Review", 'DateTime'>
1445
+ readonly completedAt: Prisma.FieldRef<"Review", 'DateTime'>
1446
+ }
1447
+
1448
+
1449
+ // Custom InputTypes
1450
+ /**
1451
+ * Review findUnique
1452
+ */
1453
+ export type ReviewFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1454
+ /**
1455
+ * Select specific fields to fetch from the Review
1456
+ */
1457
+ select?: Prisma.ReviewSelect<ExtArgs> | null
1458
+ /**
1459
+ * Omit specific fields from the Review
1460
+ */
1461
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
1462
+ /**
1463
+ * Choose, which related nodes to fetch as well
1464
+ */
1465
+ include?: Prisma.ReviewInclude<ExtArgs> | null
1466
+ /**
1467
+ * Filter, which Review to fetch.
1468
+ */
1469
+ where: Prisma.ReviewWhereUniqueInput
1470
+ }
1471
+
1472
+ /**
1473
+ * Review findUniqueOrThrow
1474
+ */
1475
+ export type ReviewFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1476
+ /**
1477
+ * Select specific fields to fetch from the Review
1478
+ */
1479
+ select?: Prisma.ReviewSelect<ExtArgs> | null
1480
+ /**
1481
+ * Omit specific fields from the Review
1482
+ */
1483
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
1484
+ /**
1485
+ * Choose, which related nodes to fetch as well
1486
+ */
1487
+ include?: Prisma.ReviewInclude<ExtArgs> | null
1488
+ /**
1489
+ * Filter, which Review to fetch.
1490
+ */
1491
+ where: Prisma.ReviewWhereUniqueInput
1492
+ }
1493
+
1494
+ /**
1495
+ * Review findFirst
1496
+ */
1497
+ export type ReviewFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1498
+ /**
1499
+ * Select specific fields to fetch from the Review
1500
+ */
1501
+ select?: Prisma.ReviewSelect<ExtArgs> | null
1502
+ /**
1503
+ * Omit specific fields from the Review
1504
+ */
1505
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
1506
+ /**
1507
+ * Choose, which related nodes to fetch as well
1508
+ */
1509
+ include?: Prisma.ReviewInclude<ExtArgs> | null
1510
+ /**
1511
+ * Filter, which Review to fetch.
1512
+ */
1513
+ where?: Prisma.ReviewWhereInput
1514
+ /**
1515
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1516
+ *
1517
+ * Determine the order of Reviews to fetch.
1518
+ */
1519
+ orderBy?: Prisma.ReviewOrderByWithRelationInput | Prisma.ReviewOrderByWithRelationInput[]
1520
+ /**
1521
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1522
+ *
1523
+ * Sets the position for searching for Reviews.
1524
+ */
1525
+ cursor?: Prisma.ReviewWhereUniqueInput
1526
+ /**
1527
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1528
+ *
1529
+ * Take `±n` Reviews from the position of the cursor.
1530
+ */
1531
+ take?: number
1532
+ /**
1533
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1534
+ *
1535
+ * Skip the first `n` Reviews.
1536
+ */
1537
+ skip?: number
1538
+ /**
1539
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1540
+ *
1541
+ * Filter by unique combinations of Reviews.
1542
+ */
1543
+ distinct?: Prisma.ReviewScalarFieldEnum | Prisma.ReviewScalarFieldEnum[]
1544
+ }
1545
+
1546
+ /**
1547
+ * Review findFirstOrThrow
1548
+ */
1549
+ export type ReviewFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1550
+ /**
1551
+ * Select specific fields to fetch from the Review
1552
+ */
1553
+ select?: Prisma.ReviewSelect<ExtArgs> | null
1554
+ /**
1555
+ * Omit specific fields from the Review
1556
+ */
1557
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
1558
+ /**
1559
+ * Choose, which related nodes to fetch as well
1560
+ */
1561
+ include?: Prisma.ReviewInclude<ExtArgs> | null
1562
+ /**
1563
+ * Filter, which Review to fetch.
1564
+ */
1565
+ where?: Prisma.ReviewWhereInput
1566
+ /**
1567
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1568
+ *
1569
+ * Determine the order of Reviews to fetch.
1570
+ */
1571
+ orderBy?: Prisma.ReviewOrderByWithRelationInput | Prisma.ReviewOrderByWithRelationInput[]
1572
+ /**
1573
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1574
+ *
1575
+ * Sets the position for searching for Reviews.
1576
+ */
1577
+ cursor?: Prisma.ReviewWhereUniqueInput
1578
+ /**
1579
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1580
+ *
1581
+ * Take `±n` Reviews from the position of the cursor.
1582
+ */
1583
+ take?: number
1584
+ /**
1585
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1586
+ *
1587
+ * Skip the first `n` Reviews.
1588
+ */
1589
+ skip?: number
1590
+ /**
1591
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1592
+ *
1593
+ * Filter by unique combinations of Reviews.
1594
+ */
1595
+ distinct?: Prisma.ReviewScalarFieldEnum | Prisma.ReviewScalarFieldEnum[]
1596
+ }
1597
+
1598
+ /**
1599
+ * Review findMany
1600
+ */
1601
+ export type ReviewFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1602
+ /**
1603
+ * Select specific fields to fetch from the Review
1604
+ */
1605
+ select?: Prisma.ReviewSelect<ExtArgs> | null
1606
+ /**
1607
+ * Omit specific fields from the Review
1608
+ */
1609
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
1610
+ /**
1611
+ * Choose, which related nodes to fetch as well
1612
+ */
1613
+ include?: Prisma.ReviewInclude<ExtArgs> | null
1614
+ /**
1615
+ * Filter, which Reviews to fetch.
1616
+ */
1617
+ where?: Prisma.ReviewWhereInput
1618
+ /**
1619
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1620
+ *
1621
+ * Determine the order of Reviews to fetch.
1622
+ */
1623
+ orderBy?: Prisma.ReviewOrderByWithRelationInput | Prisma.ReviewOrderByWithRelationInput[]
1624
+ /**
1625
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1626
+ *
1627
+ * Sets the position for listing Reviews.
1628
+ */
1629
+ cursor?: Prisma.ReviewWhereUniqueInput
1630
+ /**
1631
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1632
+ *
1633
+ * Take `±n` Reviews from the position of the cursor.
1634
+ */
1635
+ take?: number
1636
+ /**
1637
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1638
+ *
1639
+ * Skip the first `n` Reviews.
1640
+ */
1641
+ skip?: number
1642
+ /**
1643
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1644
+ *
1645
+ * Filter by unique combinations of Reviews.
1646
+ */
1647
+ distinct?: Prisma.ReviewScalarFieldEnum | Prisma.ReviewScalarFieldEnum[]
1648
+ }
1649
+
1650
+ /**
1651
+ * Review create
1652
+ */
1653
+ export type ReviewCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1654
+ /**
1655
+ * Select specific fields to fetch from the Review
1656
+ */
1657
+ select?: Prisma.ReviewSelect<ExtArgs> | null
1658
+ /**
1659
+ * Omit specific fields from the Review
1660
+ */
1661
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
1662
+ /**
1663
+ * Choose, which related nodes to fetch as well
1664
+ */
1665
+ include?: Prisma.ReviewInclude<ExtArgs> | null
1666
+ /**
1667
+ * The data needed to create a Review.
1668
+ */
1669
+ data: Prisma.XOR<Prisma.ReviewCreateInput, Prisma.ReviewUncheckedCreateInput>
1670
+ }
1671
+
1672
+ /**
1673
+ * Review createMany
1674
+ */
1675
+ export type ReviewCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1676
+ /**
1677
+ * The data used to create many Reviews.
1678
+ */
1679
+ data: Prisma.ReviewCreateManyInput | Prisma.ReviewCreateManyInput[]
1680
+ }
1681
+
1682
+ /**
1683
+ * Review createManyAndReturn
1684
+ */
1685
+ export type ReviewCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1686
+ /**
1687
+ * Select specific fields to fetch from the Review
1688
+ */
1689
+ select?: Prisma.ReviewSelectCreateManyAndReturn<ExtArgs> | null
1690
+ /**
1691
+ * Omit specific fields from the Review
1692
+ */
1693
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
1694
+ /**
1695
+ * The data used to create many Reviews.
1696
+ */
1697
+ data: Prisma.ReviewCreateManyInput | Prisma.ReviewCreateManyInput[]
1698
+ /**
1699
+ * Choose, which related nodes to fetch as well
1700
+ */
1701
+ include?: Prisma.ReviewIncludeCreateManyAndReturn<ExtArgs> | null
1702
+ }
1703
+
1704
+ /**
1705
+ * Review update
1706
+ */
1707
+ export type ReviewUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1708
+ /**
1709
+ * Select specific fields to fetch from the Review
1710
+ */
1711
+ select?: Prisma.ReviewSelect<ExtArgs> | null
1712
+ /**
1713
+ * Omit specific fields from the Review
1714
+ */
1715
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
1716
+ /**
1717
+ * Choose, which related nodes to fetch as well
1718
+ */
1719
+ include?: Prisma.ReviewInclude<ExtArgs> | null
1720
+ /**
1721
+ * The data needed to update a Review.
1722
+ */
1723
+ data: Prisma.XOR<Prisma.ReviewUpdateInput, Prisma.ReviewUncheckedUpdateInput>
1724
+ /**
1725
+ * Choose, which Review to update.
1726
+ */
1727
+ where: Prisma.ReviewWhereUniqueInput
1728
+ }
1729
+
1730
+ /**
1731
+ * Review updateMany
1732
+ */
1733
+ export type ReviewUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1734
+ /**
1735
+ * The data used to update Reviews.
1736
+ */
1737
+ data: Prisma.XOR<Prisma.ReviewUpdateManyMutationInput, Prisma.ReviewUncheckedUpdateManyInput>
1738
+ /**
1739
+ * Filter which Reviews to update
1740
+ */
1741
+ where?: Prisma.ReviewWhereInput
1742
+ /**
1743
+ * Limit how many Reviews to update.
1744
+ */
1745
+ limit?: number
1746
+ }
1747
+
1748
+ /**
1749
+ * Review updateManyAndReturn
1750
+ */
1751
+ export type ReviewUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1752
+ /**
1753
+ * Select specific fields to fetch from the Review
1754
+ */
1755
+ select?: Prisma.ReviewSelectUpdateManyAndReturn<ExtArgs> | null
1756
+ /**
1757
+ * Omit specific fields from the Review
1758
+ */
1759
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
1760
+ /**
1761
+ * The data used to update Reviews.
1762
+ */
1763
+ data: Prisma.XOR<Prisma.ReviewUpdateManyMutationInput, Prisma.ReviewUncheckedUpdateManyInput>
1764
+ /**
1765
+ * Filter which Reviews to update
1766
+ */
1767
+ where?: Prisma.ReviewWhereInput
1768
+ /**
1769
+ * Limit how many Reviews to update.
1770
+ */
1771
+ limit?: number
1772
+ /**
1773
+ * Choose, which related nodes to fetch as well
1774
+ */
1775
+ include?: Prisma.ReviewIncludeUpdateManyAndReturn<ExtArgs> | null
1776
+ }
1777
+
1778
+ /**
1779
+ * Review upsert
1780
+ */
1781
+ export type ReviewUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1782
+ /**
1783
+ * Select specific fields to fetch from the Review
1784
+ */
1785
+ select?: Prisma.ReviewSelect<ExtArgs> | null
1786
+ /**
1787
+ * Omit specific fields from the Review
1788
+ */
1789
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
1790
+ /**
1791
+ * Choose, which related nodes to fetch as well
1792
+ */
1793
+ include?: Prisma.ReviewInclude<ExtArgs> | null
1794
+ /**
1795
+ * The filter to search for the Review to update in case it exists.
1796
+ */
1797
+ where: Prisma.ReviewWhereUniqueInput
1798
+ /**
1799
+ * In case the Review found by the `where` argument doesn't exist, create a new Review with this data.
1800
+ */
1801
+ create: Prisma.XOR<Prisma.ReviewCreateInput, Prisma.ReviewUncheckedCreateInput>
1802
+ /**
1803
+ * In case the Review was found with the provided `where` argument, update it with this data.
1804
+ */
1805
+ update: Prisma.XOR<Prisma.ReviewUpdateInput, Prisma.ReviewUncheckedUpdateInput>
1806
+ }
1807
+
1808
+ /**
1809
+ * Review delete
1810
+ */
1811
+ export type ReviewDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1812
+ /**
1813
+ * Select specific fields to fetch from the Review
1814
+ */
1815
+ select?: Prisma.ReviewSelect<ExtArgs> | null
1816
+ /**
1817
+ * Omit specific fields from the Review
1818
+ */
1819
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
1820
+ /**
1821
+ * Choose, which related nodes to fetch as well
1822
+ */
1823
+ include?: Prisma.ReviewInclude<ExtArgs> | null
1824
+ /**
1825
+ * Filter which Review to delete.
1826
+ */
1827
+ where: Prisma.ReviewWhereUniqueInput
1828
+ }
1829
+
1830
+ /**
1831
+ * Review deleteMany
1832
+ */
1833
+ export type ReviewDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1834
+ /**
1835
+ * Filter which Reviews to delete
1836
+ */
1837
+ where?: Prisma.ReviewWhereInput
1838
+ /**
1839
+ * Limit how many Reviews to delete.
1840
+ */
1841
+ limit?: number
1842
+ }
1843
+
1844
+ /**
1845
+ * Review.reviewer
1846
+ */
1847
+ export type Review$reviewerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1848
+ /**
1849
+ * Select specific fields to fetch from the User
1850
+ */
1851
+ select?: Prisma.UserSelect<ExtArgs> | null
1852
+ /**
1853
+ * Omit specific fields from the User
1854
+ */
1855
+ omit?: Prisma.UserOmit<ExtArgs> | null
1856
+ /**
1857
+ * Choose, which related nodes to fetch as well
1858
+ */
1859
+ include?: Prisma.UserInclude<ExtArgs> | null
1860
+ where?: Prisma.UserWhereInput
1861
+ }
1862
+
1863
+ /**
1864
+ * Review.comments
1865
+ */
1866
+ export type Review$commentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1867
+ /**
1868
+ * Select specific fields to fetch from the ReviewComment
1869
+ */
1870
+ select?: Prisma.ReviewCommentSelect<ExtArgs> | null
1871
+ /**
1872
+ * Omit specific fields from the ReviewComment
1873
+ */
1874
+ omit?: Prisma.ReviewCommentOmit<ExtArgs> | null
1875
+ /**
1876
+ * Choose, which related nodes to fetch as well
1877
+ */
1878
+ include?: Prisma.ReviewCommentInclude<ExtArgs> | null
1879
+ where?: Prisma.ReviewCommentWhereInput
1880
+ orderBy?: Prisma.ReviewCommentOrderByWithRelationInput | Prisma.ReviewCommentOrderByWithRelationInput[]
1881
+ cursor?: Prisma.ReviewCommentWhereUniqueInput
1882
+ take?: number
1883
+ skip?: number
1884
+ distinct?: Prisma.ReviewCommentScalarFieldEnum | Prisma.ReviewCommentScalarFieldEnum[]
1885
+ }
1886
+
1887
+ /**
1888
+ * Review without action
1889
+ */
1890
+ export type ReviewDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1891
+ /**
1892
+ * Select specific fields to fetch from the Review
1893
+ */
1894
+ select?: Prisma.ReviewSelect<ExtArgs> | null
1895
+ /**
1896
+ * Omit specific fields from the Review
1897
+ */
1898
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
1899
+ /**
1900
+ * Choose, which related nodes to fetch as well
1901
+ */
1902
+ include?: Prisma.ReviewInclude<ExtArgs> | null
1903
+ }